Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Php | Php | <= 5.2.11 |
Related Weaknesses (CWE)
References
- http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html
- http://marc.info/?l=bugtraq&m=127680701405735&w=2
- http://news.php.net/php.announce/79
- http://secunia.com/advisories/37412Vendor Advisory
- http://secunia.com/advisories/37821
- http://secunia.com/advisories/40262
- http://securityreason.com/securityalert/6601Exploit
- http://support.apple.com/kb/HT4077
- http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/file.c?view=
- http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/file.c?view=
- http://svn.php.net/viewvc?view=revision&revision=288945
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:285
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:302
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:303
- http://www.openwall.com/lists/oss-security/2009/11/20/2Patch
FAQ
What is CVE-2009-3557?
CVE-2009-3557 is a vulnerability with a CVSS score of 5.0 (MEDIUM). 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...
How severe is CVE-2009-3557?
CVE-2009-3557 has been rated MEDIUM with a CVSS base score of 5.0/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2009-3557?
Check the references section above for vendor advisories and patch information. Affected products include: Php Php.