The MySQL extension in PHP 5.2.4 and earlier allows remote attackers to bypass safe_mode and open_basedir restrictions via the MySQL (1) LOAD_FILE, (2) INTO DUMPFILE, and (3) INTO OUTFILE functions, a different issue than CVE-2007-3997.
https://exchange.xforce.ibmcloud.com/vulnerabilities/36555
http://www.securityfocus.com/archive/1/479189/100/200/threaded
http://www.securityfocus.com/archive/1/479187/100/200/threaded
http://www.securityfocus.com/archive/1/479082/100/0/threaded