Description
The tempnam function in ext/standard/file.c in PHP before 5.2.12 and 5.3.x before 5.3.1 allows context-dependent attackers to bypass safe_mode restrictions, and create files in group-writable or world-writable directories, via the dir and prefix arguments.
References
- [oss-security] 20091120 Re: CVE request: php 5.3.1 update mailing-list
- http://www.php.net/releases/5_2_12.php
- 40262 third-party-advisory
- 6601 third-party-advisory
- [php-announce] 20091119 5.3.1 Release announcement mailing-list
- HPSBUX02543 vendor-advisory
- MDVSA-2009:285 vendor-advisory
- 37821 third-party-advisory
- APPLE-SA-2010-03-29-1 vendor-advisory
- http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/file.c?view=log
- http://www.php.net/ChangeLog-5.php
- http://support.apple.com/kb/HT4077
- [oss-security] 20091120 CVE request: php 5.3.1 update mailing-list
- http://www.php.net/releases/5_3_1.php
- ADV-2009-3593 vdb-entry
- [oss-security] 20091120 Re: CVE request: php 5.3.1 update mailing-list
- 37412 third-party-advisory
- MDVSA-2009:302 vendor-advisory
- oval:org.mitre.oval:def:7396 vdb-entry signature
- http://svn.php.net/viewvc?view=revision&revision=288945
- MDVSA-2009:303 vendor-advisory
- http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/file.c?view=log