What’s Vulnerable › Vulnerabilities
CVE-2009-3557
- Severity: medium (CVSS 5.0 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.1% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2009-11-23 · updated 2026-06-16
- Weakness: CWE-264
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.
Affected products
- PHP: through 5.2.11; 1.0, 2.0, 2.0b10, 3.0, 3.0.1, 3.0.2 (+56)
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/37412
- http://secunia.com/advisories/37821
- http://secunia.com/advisories/40262
- http://securityreason.com/securityalert/6601
- 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.mandriva.com/security/advisories?name=MDVSA-2009:285
Get alerted when CVE-2009-3557 or the next vulnerability affects your stack