CVE-2009-3557
publishedphp: safe_mode / open_basedir security fixes in 5.3.1
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | redhat |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | redhat · cna |
Weaknesses
1- n/a
References
22- APPLE-SA-2010-03-29-1 http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html
- HPSBUX02543 http://marc.info/?l=bugtraq&m=127680701405735&w=2
- [php-announce] 20091119 5.3.1 Release announcement http://news.php.net/php.announce/79
- 37412 http://secunia.com/advisories/37412
- 37821 http://secunia.com/advisories/37821
- 40262 http://secunia.com/advisories/40262
- 6601 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
- MDVSA-2009:285 http://www.mandriva.com/security/advisories?name=MDVSA-2009:285
- MDVSA-2009:302 http://www.mandriva.com/security/advisories?name=MDVSA-2009:302
- MDVSA-2009:303 http://www.mandriva.com/security/advisories?name=MDVSA-2009:303
- [oss-security] 20091120 CVE request: php 5.3.1 update http://www.openwall.com/lists/oss-security/2009/11/20/2
- [oss-security] 20091120 Re: CVE request: php 5.3.1 update http://www.openwall.com/lists/oss-security/2009/11/20/3
- [oss-security] 20091120 Re: CVE request: php 5.3.1 update http://www.openwall.com/lists/oss-security/2009/11/20/5
- http://www.php.net/ChangeLog-5.php
- http://www.php.net/releases/5_2_12.php
- http://www.php.net/releases/5_3_1.php
- ADV-2009-3593 http://www.vupen.com/english/advisories/2009/3593
- oval:org.mitre.oval:def:7396 https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7396
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 4b25f1e34d9f0a38f2cbe5f0adea0411acadd1b4fd0009757e9513cbddcbead7
- Ingested
- 23 Sep 2026, 07:38:40 UTC
- Source record
- Official CVE record