CVE-2009-4018 in the critical feed json
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_e…
published 2009-11-27 16 y ago modified 2026-06-16 4 mo ago also EUVD-2009-3989
- cvss
- 7.5
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 11.3%
- EPSS 11.3% chance of exploitation in 30 days, percentile 96%
- public exploits
- 1
- Exploit-DB
Summary
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.
Patch / fix
- svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/proc_open… patch
- marc.info/?l=oss-security&m=125897935330618&w=2 patch
- openwall.com/lists/oss-security/2009/11/23/15 patch
- bugs.php.net/bug.php?id=49026 patch
- marc.info/?l=oss-security&m=125886770008678&w=2 patch
- svn.php.net/viewvc/?view=revision&revision=286360 patch
- svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/proc_open… patch
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2009-4018 updated cvss 3.3
php: proc_open() safe mode restriction bypass
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- Published
- First public exploit (EDB-11636)
Exploit prediction
11.34% chance of exploitation in the next 30 days, higher than 96% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- EDB-11636 Kolang 4.3.10 < 5.3.0 - 'proc_open()' PHP 'safe_mode' Bypass webapps, 2010-03-05
- bugs.php.net http://bugs.php.net/bug.php?id=49026 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-264 Permissions, Privileges, and Access Controls
- Technology feeds
References
-
svn.php.net
/viewvc/php/php-src/branches/PHP_5_2/ext/standard/proc_open.c?r1=286360&r2=286359&pathrev=286360
patch
-
marc.info
/?l=oss-security&m=125897935330618&w=2
mailing-list, patch
-
openwall.com
/lists/oss-security/2009/11/23/15
mailing-list, patch
-
bugs.php.net
/bug.php?id=49026
exploit, patch
-
marc.info
/?l=oss-security&m=125886770008678&w=2
mailing-list, patch
-
svn.php.net
/viewvc/?view=revision&revision=286360
patch
-
svn.php.net
/viewvc/php/php-src/branches/PHP_5_3/ext/standard/proc_open.c?r1=286360&r2=286359&pathrev=286360
patch
-
marc.info
/?l=bugtraq&m=127680701405735&w=2
vendor-advisory
-
itrc.hp.com
/service/cki/docDisplay.do?docId=emr_na-c02512995
vendor-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2009:303
vendor-advisory
-
secunia.com
/advisories/40262
third-party-advisory
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7256
vdb-entry, signature
-
secunia.com
/advisories/41490
third-party-advisory
- php.net /ChangeLog-5.php
-
securityfocus.com
/bid/37138
vdb-entry
-
secunia.com
/advisories/41480
third-party-advisory
Sources
- CVE List CVE-2009-4018
- NVD CVE-2009-4018
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.