{"id":"CVE-2009-4018","published":"2009-11-27T19:00:00Z","modified":"2024-08-07T06:45:50Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.11341,"percentile":0.96085,"provenance":"source"},"cwes":[],"references":[{"url":"http://secunia.com/advisories/40262","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7256","tags":["vdb-entry","signature","x_refsource_OVAL"]},{"url":"http://marc.info/?l=bugtraq&m=127680701405735&w=2","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/proc_open.c?r1=286360&r2=286359&pathrev=286360","tags":["x_refsource_CONFIRM"]},{"url":"http://marc.info/?l=oss-security&m=125897935330618&w=2","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://secunia.com/advisories/41490","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.openwall.com/lists/oss-security/2009/11/23/15","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.itrc.hp.com/service/cki/docDisplay.do?docId=emr_na-c02512995","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://www.php.net/ChangeLog-5.php","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securityfocus.com/bid/37138","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://bugs.php.net/bug.php?id=49026","tags":["x_refsource_CONFIRM"]},{"url":"http://secunia.com/advisories/41480","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://marc.info/?l=oss-security&m=125886770008678&w=2","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://svn.php.net/viewvc/?view=revision&revision=286360","tags":["x_refsource_CONFIRM"]},{"url":"http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/proc_open.c?r1=286360&r2=286359&pathrev=286360","tags":["x_refsource_CONFIRM"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2009:303","tags":["vendor-advisory","x_refsource_MANDRIVA"]}],"priority":{"score":24.2,"factors":[{"name":"EPSS percentile","points":19.22},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2010-03-05"},"first":{"date":"2010-03-05","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/11636"},"provenance":"source"},"summary":{"text":"The proc_open function in ext/standard/proc_open.c in PHP (before 5.2.11 and 5.3.x before 5.3.1) fails to enforce the safe_mode_allowed_env_vars and safe_mode_protected_env_vars directives. An attacker in a context where they can influence the env parameter, such as through crafted input like a malicious LD_LIBRARY_PATH value, can execute programs with an arbitrary environment.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:51:12Z"},"euvd":{"id":"EUVD-2009-3989","exploited":false,"provenance":"source"},"exploits":[{"id":11636,"url":"https://www.exploit-db.com/exploits/11636","title":"Kolang 4.3.10 < 5.3.0 - 'proc_open()' PHP 'safe_mode' Bypass","date":"2010-03-05","verified":false,"provenance":"source"}]}