The (1) MySQL and (2) MySQLi extensions in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, allow remote attackers to bypass safe_mode and open_basedir restrictions via MySQL LOCAL INFILE operations, as demonstrated by a query with LOAD DATA LOCAL INFILE.
secunia.com/advisories/26642
secunia.com/advisories/26822
secunia.com/advisories/26838
secunia.com/advisories/27102
secunia.com/advisories/27377
secunia.com/advisories/28318
securityreason.com/securityalert/3102
secweb.se/en/advisories/php-mysql-safe-mode-bypass-vulnerability/
www.gentoo.org/security/en/glsa/glsa-200710-02.xml
www.php.net/ChangeLog-4.php
www.php.net/ChangeLog-5.php#5.2.4
www.php.net/releases/4_4_8.php
www.php.net/releases/5_2_4.php
www.trustix.org/errata/2007/0026/
www.vupen.com/english/advisories/2007/3023
www.vupen.com/english/advisories/2008/0059
exchange.xforce.ibmcloud.com/vulnerabilities/36384
exchange.xforce.ibmcloud.com/vulnerabilities/39402
issues.rpath.com/browse/RPL-1693
issues.rpath.com/browse/RPL-1702
www.exploit-db.com/exploits/4392