Vulnerability in PHP
CVE-2009-3557
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.
Published · last modified .
CVSS v2 metric
CVSS v2 base score 5.0 (Medium). Vector: AV:N/AC:L/Au:N/C:N/I:P/A:N. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.021, 82.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- PHP — versions 1.0, 2.0, 2.0b10
Weakness classification (CWE)
References
- [oss-security] 20091120 Re: CVE request: php 5.3.1 update (mailing-list, Patch)
- www.php.net/releases/5_2_12.php
- secunia.com/advisories/40262 (third-party-advisory)
- securityreason.com/securityalert/6601 (Exploit, third-party-advisory)
- [php-announce] 20091119 5.3.1 Release announcement (mailing-list)
- HPSBUX02543 (vendor-advisory)
- MDVSA-2009:285 (vendor-advisory)
- secunia.com/advisories/37821 (third-party-advisory)
- APPLE-SA-2010-03-29-1 (vendor-advisory)
- svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/file.c