CVE-2009-3557
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.
Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
2.096%
chance of exploitation in the next 30 days
higher than 82% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Weakness
Timeline
- 2009-11-23Published by the CNA17:00 UTC
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| php php | 1.0no fix listed2.0no fix listed2.0b10no fix listed3.0no fix listed3.0.1no fix listed(+52 more) | not listednot listednot listednot listednot listed |
References
- http://www.openwall.com/lists/oss-security/2009/11/20/2
- http://www.openwall.com/lists/oss-security/2009/11/20/3
- http://www.openwall.com/lists/oss-security/2009/11/20/5
- http://www.php.net/ChangeLog-5.php
- http://www.php.net/releases/5_3_1.php
- http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html
- http://marc.info/?l=bugtraq&m=127680701405735&w=2
- http://secunia.com/advisories/37412
- 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://securityreason.com/securityalert/6601
- http://news.php.net/php.announce/79
- http://secunia.com/advisories/37821
- http://secunia.com/advisories/40262
- http://support.apple.com/kb/HT4077
- http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/file.c?view=log
- http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/file.c?view=log
- http://svn.php.net/viewvc?view=revision&revision=288945
- http://www.php.net/releases/5_2_12.php
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2009-3557'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2009-3557'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2009-3557'curl 'https://api.contrastcyber.com/cve_products/CVE-2009-3557'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).