php: safe_mode / open_basedir security fixes in 5.3.1
Published Nov 23, 2009
5.0
MEDIUMCVSS 2.0
EPSS 2.10%
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
No data.
- ≤ 5.2.11
- 1.0
- 2.0
- 2.0b10
- 3.0
- 3.0.1
- 3.0.2
- 3.0.3
- 3.0.4
- 3.0.5
- 3.0.6
- 3.0.7
- 3.0.8
- 3.0.9
- 3.0.10
- 3.0.11
- 3.0.12
- 3.0.13
- 3.0.14
- 3.0.15
- 3.0.16
- 3.0.17
- 3.0.18
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0.0
- 4.0.1
- 4.0.2
- 4.0.3
- 4.0.4
- 4.0.5
- 4.0.6
- 4.0.7
- 4.1.0
- 4.1.1
- 4.1.2
- 4.2.0
- 4.2.1
- 4.2.2
- 4.2.3
- 4.3.0
- 4.3.1
- 4.3.2
- 4.3.7
- 4.3.10
- 4.3.11
- 4.4.2
- 4.4.7
- 4.4.8
- 4.4.9
- 5.0.0
- 5.0.0
- 5.0.3
- 5.1.1
- 5.2.1
- 5.2.5
- 5.2.6
- 5.2.10
- 5.3.0
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
Red Hat statement
We do not consider safe_mode / open_basedir restriction bypass issues being security sensitive. For more details see https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=169857#c1 and https://www.php.net/security-note.php
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:N/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (11 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 2.10% (0.02096) | 81.00th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.10% (0.02096) | 79.17th | v5 (v2026.06.15) |
| Mar 30, 2025 | 3.50% (0.03500) | 86.48th | v4 (v2025.03.14) |
| Mar 29, 2025 | 8.67% (0.08674) | 87.21th | v4 (v2025.03.14) |
| Mar 17, 2025 | 3.50% (0.03500) | 86.81th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.70% (0.00696) | 80.90th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.70% (0.00696) | 79.60th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.70% (0.00696) | 77.13th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.69% (0.02686) | 82.85th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.69% (0.02686) | 81.17th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.69% (0.02686) | 62.66th | v2 (v2022.01.01) |
References (26)
- http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html vendor-advisoryx_refsource_APPLE
- http://marc.info/?l=bugtraq&m=127680701405735&w=2 vendor-advisoryx_refsource_HP
- http://news.php.net/php.announce/79 mailing-listx_refsource_MLIST
- http://secunia.com/advisories/37412 third-party-advisoryx_refsource_SECUNIAVendor Advisory
- http://secunia.com/advisories/37821 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/40262 third-party-advisoryx_refsource_SECUNIA
- http://securityreason.com/securityalert/6601 third-party-advisoryx_refsource_SREASONExploit
- http://support.apple.com/kb/HT4077 x_refsource_CONFIRM
- http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/file.c?view=log x_refsource_CONFIRM
- http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/file.c?view=log x_refsource_CONFIRM
- http://svn.php.net/viewvc?view=revision&revision=288945 x_refsource_CONFIRM
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:285 vendor-advisoryx_refsource_MANDRIVA
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:302 vendor-advisoryx_refsource_MANDRIVA
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:303 vendor-advisoryx_refsource_MANDRIVA
- http://www.openwall.com/lists/oss-security/2009/11/20/2 mailing-listx_refsource_MLISTPatch
- http://www.openwall.com/lists/oss-security/2009/11/20/3 mailing-listx_refsource_MLISTPatch
- http://www.openwall.com/lists/oss-security/2009/11/20/5 mailing-listx_refsource_MLISTPatch
- http://www.php.net/ChangeLog-5.php x_refsource_CONFIRMPatchVendor Advisory
- http://www.php.net/releases/5_2_12.php x_refsource_CONFIRM
- http://www.php.net/releases/5_3_1.php x_refsource_CONFIRMPatchVendor Advisory
- http://www.vupen.com/english/advisories/2009/3593 vdb-entryx_refsource_VUPEN
- https://access.redhat.com/security/cve/CVE-2009-3557 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=539529 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2009-3557
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7396 vdb-entrysignaturex_refsource_OVAL
- https://www.cve.org/CVERecord?id=CVE-2009-3557
Change history (0)
No recorded changes yet.