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...
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.
Exploit likelihood
What each source reports
NVD Score used
5.0
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.
- Record
CVE-2009-3557- CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:P/A:N - Weakness
- CWE-264
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2009-3557- Updated
- 2026-11-02
EUVDEUVD-2009-3538 No score
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.
- Record
EUVD-2009-3538- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-6p2r-x9m6-65cq No score
The tempnam function in ext/standard/file.c in PHP before 5.2.12 and 5.3.x before 5.3.1 allows...
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.
- Record
GHSA-6p2r-x9m6-65cq- Updated
- 2026-11-02
Affected products
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2009-3557 is a medium vulnerability (CVSS 5.0) in Php, published November 23, 2009. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.10%, the 81st percentile. No source names a fixed version.
References
openwall.com/lists/oss-security/2009/11/20/3
php.net/releases/5_2_12.php
secunia.com/advisories/40262
securityreason.com/securityalert/6601
news.php.net/php.announce/79
marc.info?l=bugtraq&m=127680701405735&w=2
Show 18 moreShow less
mandriva.com/security/advisories?name=MDVSA-2009:285
secunia.com/advisories/37821
lists.apple.com/archives/security-announce/2010//Mar/msg00001.html
svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/file.c?view=log
php.net/ChangeLog-5.php
support.apple.com/kb/HT4077
openwall.com/lists/oss-security/2009/11/20/2
php.net/releases/5_3_1.php
vupen.com/english/advisories/2009/3593
openwall.com/lists/oss-security/2009/11/20/5
secunia.com/advisories/37412
mandriva.com/security/advisories?name=MDVSA-2009:302
oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7396
svn.php.net/viewvc?view=revision&revision=288945
mandriva.com/security/advisories?name=MDVSA-2009:303
svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/file.c?view=log
nvd.nist.gov/vuln/detail/CVE-2009-3557
github.com/advisories/GHSA-6p2r-x9m6-65cq