php: safe_mode / open_basedir security fixes in 5.3.1
Published Nov 23, 2009
6.8
MEDIUMCVSS 2.0
EPSS 2.08%
Description
The posix_mkfifo function in ext/posix/posix.c in PHP before 5.2.12 and 5.3.x before 5.3.1 allows context-dependent attackers to bypass open_basedir restrictions, and create FIFO files, via the pathname and mode arguments, as demonstrated by creating a .htaccess file.
Affected products
No data.
- ≤ 5.2.10
- 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
- 5.0.0
- 5.0.0
- 5.0.3
- 5.1.1
- 5.2.1
- 5.2.5
- 5.2.6
- 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:M/Au:N/C:P/I:P/A:P
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.08% (0.02081) | 80.85th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.08% (0.02081) | 79.00th | v5 (v2026.06.15) |
| Mar 30, 2025 | 4.44% (0.04443) | 88.00th | v4 (v2025.03.14) |
| Mar 29, 2025 | 10.81% (0.10812) | 88.89th | v4 (v2025.03.14) |
| Mar 17, 2025 | 4.44% (0.04443) | 88.30th | v4 (v2025.03.14) |
| Dec 12, 2024 | 1.93% (0.01932) | 89.11th | v3 (v2023.03.01) |
| Jul 13, 2024 | 1.93% (0.01932) | 88.79th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.93% (0.01932) | 86.78th | 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 (23)
- http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html vendor-advisoryx_refsource_APPLE
- 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://securityreason.com/securityalert/6600 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/posix/posix.c?view=log x_refsource_CONFIRM
- http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/posix/posix.c?view=log x_refsource_CONFIRM
- http://svn.php.net/viewvc?view=revision&revision=288943 x_refsource_CONFIRMPatch
- 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_CONFIRM
- http://www.php.net/releases/5_2_12.php x_refsource_CONFIRM
- http://www.php.net/releases/5_3_1.php x_refsource_CONFIRM
- http://www.vupen.com/english/advisories/2009/3593 vdb-entryx_refsource_VUPEN
- https://access.redhat.com/security/cve/CVE-2009-3558 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=539529 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2009-3558
- https://www.cve.org/CVERecord?id=CVE-2009-3558
Change history (0)
No recorded changes yet.