CVE-2009-4018
Description
The proc_open function in ext/standard/proc_open.c in PHP before 5.2.11 and 5.3.x before 5.3.1 does not enforce the (1) safe_mode_allowed_env_vars and (2) safe_mode_protected_env_vars directives, which allows context-dependent attackers to execute programs with an arbitrary environment via the env parameter, as demonstrated by a crafted value of the LD_LIBRARY_PATH environment variable.
Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
11.341%
chance of exploitation in the next 30 days
higher than 96.1% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Exploit-DB: 1
Weakness
Timeline
- 2009-11-27Published by the CNA19:00 UTC
- 2010-03-05First Exploit-DB entry (EDB-ID 11636)98 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 11636 | webapps | php | 2010-03-05 | no |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| php php | 1.0no fix listed2.0no fix listed2.0b10no fix listed3.0no fix listed3.0.1no fix listed(+81 more) | not listednot listednot listednot listednot listed |
References
- http://bugs.php.net/bug.php?id=49026
- http://marc.info/?l=oss-security&m=125886770008678&w=2
- http://marc.info/?l=oss-security&m=125897935330618&w=2
- http://svn.php.net/viewvc/?view=revision&revision=286360
- http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/proc_open.c?r1=286360&r2=286359&pathrev=286360
- http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/proc_open.c?r1=286360&r2=286359&pathrev=286360
- http://www.openwall.com/lists/oss-security/2009/11/23/15
- http://marc.info/?l=bugtraq&m=127680701405735&w=2
- http://www.itrc.hp.com/service/cki/docDisplay.do?docId=emr_na-c02512995
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:303
- http://secunia.com/advisories/40262
- http://secunia.com/advisories/41480
- http://secunia.com/advisories/41490
- http://www.php.net/ChangeLog-5.php
- http://www.securityfocus.com/bid/37138
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7256
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2009-4018'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2009-4018'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2009-4018'curl 'https://api.contrastcyber.com/cve_products/CVE-2009-4018'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).