Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Php | Php | <= 5.2.10 |
Related Weaknesses (CWE)
References
- http://bugs.php.net/bug.php?id=49026ExploitPatch
- http://marc.info/?l=bugtraq&m=127680701405735&w=2
- http://marc.info/?l=oss-security&m=125886770008678&w=2Patch
- http://marc.info/?l=oss-security&m=125897935330618&w=2Patch
- http://secunia.com/advisories/40262
- http://secunia.com/advisories/41480
- http://secunia.com/advisories/41490
- http://svn.php.net/viewvc/?view=revision&revision=286360Patch
- http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/proc_open.c?Patch
- http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/proc_open.c?Patch
- http://www.itrc.hp.com/service/cki/docDisplay.do?docId=emr_na-c02512995
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:303
- http://www.openwall.com/lists/oss-security/2009/11/23/15Patch
- http://www.php.net/ChangeLog-5.php
- http://www.securityfocus.com/bid/37138
FAQ
What is CVE-2009-4018?
CVE-2009-4018 is a vulnerability with a CVSS score of 7.5 (HIGH). 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, whic...
How severe is CVE-2009-4018?
CVE-2009-4018 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2009-4018?
Check the references section above for vendor advisories and patch information. Affected products include: Php Php.