Vulnerability in PHP
CVE-2009-4018
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.
Published · last modified .
CVSS v2 metric
CVSS v2 base score 7.5 (High). Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS: 0.113 (95.8th percentile), scored .
Moderate probability of exploitation in the next 30 days — watch for active exploitation reports. 96th percentile — 95.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.113 · newest: 0.113 · change: 0.000
Affected products
- PHP — versions 1.0, 2.0, 2.0b10
Weakness classification (CWE)
References
- secunia.com/advisories/40262 (third-party-advisory)
- oval.cisecurity.org/repository/search/definition/oval:org.mitre.oval:def:7256 (signature, vdb-entry)
- marc.info/ (vendor-advisory)
- svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/proc_open.c (Patch)
- marc.info/ (mailing-list, Patch)
- secunia.com/advisories/41490 (third-party-advisory)
- www.openwall.com/lists/oss-security/2009/11/23/15 (mailing-list, Patch)
- www.itrc.hp.com/service/cki/docDisplay.do (vendor-advisory)
- www.php.net/ChangeLog-5.php
- www.securityfocus.com/bid/37138 (vdb-entry)