CVE-2009-3558
MEDIUM
6.8
CVSS 2.0
Description
The posix_mkfifo function in ext/posix/posix.c in PHP before 5.2.12 and 5.3.x before 5.3.1 allows context-dependent attackers to bypass open_basedir restrictions, and create FIFO files, via the pathname and mode arguments, as demonstrated by creating a .htaccess file.
Affected products and versions
- PHP — Up to and including 5.2.10
- PHP versions 1.0, 2.0, 2.0b10, 3.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.10, 3.0.11, 3.0.12, 3.0.13, 3.0.14, 3.0.15, 3.0.16, 3.0.17, 3.0.18, 4.0, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.0.6, 4.0.7, 4.0beta1, 4.0beta2, 4.0beta3, 4.0beta4, 4.0beta_4_patch1, 4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.3.0, 4.3.1, 4.3.2, 4.3.7, 4.3.10, 4.3.11, 4.4.2, 4.4.7, 4.4.8, 5.0.0, 5.0.0beta4, 5.0.3, 5.1.1, 5.2.1, 5.2.5, 5.2.6, 5.3.0
References
- lists.apple.com http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html
- news.php.net http://news.php.net/php.announce/79
- secunia.com http://secunia.com/advisories/37412 Vendor Advisory
- secunia.com http://secunia.com/advisories/37821
- securityreason.com http://securityreason.com/securityalert/6600 Exploit
- support.apple.com http://support.apple.com/kb/HT4077
- svn.php.net http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/posix/posix.c?view=log
- svn.php.net http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/posix/posix.c?view=log
- svn.php.net http://svn.php.net/viewvc?view=revision&revision=288943 Patch
- www.mandriva.com http://www.mandriva.com/security/advisories?name=MDVSA-2009:285
- www.mandriva.com http://www.mandriva.com/security/advisories?name=MDVSA-2009:302
- www.mandriva.com http://www.mandriva.com/security/advisories?name=MDVSA-2009:303
- www.openwall.com http://www.openwall.com/lists/oss-security/2009/11/20/2 Patch
- www.openwall.com http://www.openwall.com/lists/oss-security/2009/11/20/3 Patch
- www.openwall.com http://www.openwall.com/lists/oss-security/2009/11/20/5 Patch
- www.php.net http://www.php.net/ChangeLog-5.php
- www.php.net http://www.php.net/releases/5_2_12.php
- www.php.net http://www.php.net/releases/5_3_1.php
- www.vupen.com http://www.vupen.com/english/advisories/2009/3593
- nvd.nist.gov Official NVD record