{"id":"CVE-2009-4018","aliases":["EUVD-2009-3989","GHSA-64wx-q8pj-gj2r"],"status":"published","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...","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":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.11341,"percentile":0.96013,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-264"],"published":"2009-11-27T19:00:00Z","modified":"2026-06-16T23:12:50Z","exploits":[{"source":"exploitdb","id":"EDB-11636","title":"Kolang 4.3.10 \u003c 5.3.0 - 'proc_open()' PHP 'safe_mode' Bypass","type":"webapps","platform":"php","date":"2010-03-05","url":"https://www.exploit-db.com/exploits/11636"}],"products":[{"vendor":"php","product":"php"}],"references":[{"url":"http://secunia.com/advisories/40262","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7256","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"]},{"url":"http://marc.info/?l=bugtraq\u0026m=127680701405735\u0026w=2","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/proc_open.c?r1=286360\u0026r2=286359\u0026pathrev=286360","tags":["x_refsource_CONFIRM","x_transferred","Patch"]},{"url":"http://marc.info/?l=oss-security\u0026m=125897935330618\u0026w=2","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch"]},{"url":"http://secunia.com/advisories/41490","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2009/11/23/15","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch"]},{"url":"http://www.itrc.hp.com/service/cki/docDisplay.do?docId=emr_na-c02512995","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://www.php.net/ChangeLog-5.php","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.securityfocus.com/bid/37138","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://bugs.php.net/bug.php?id=49026","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch"]},{"url":"http://secunia.com/advisories/41480","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://marc.info/?l=oss-security\u0026m=125886770008678\u0026w=2","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch"]},{"url":"http://svn.php.net/viewvc/?view=revision\u0026revision=286360","tags":["x_refsource_CONFIRM","x_transferred","Patch"]},{"url":"http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/proc_open.c?r1=286360\u0026r2=286359\u0026pathrev=286360","tags":["x_refsource_CONFIRM","x_transferred","Patch"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2009:303","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2009-4018"},{"url":"https://github.com/advisories/GHSA-64wx-q8pj-gj2r"}],"sources":{"cve":[{"id":"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.","status":"published","published":"2009-11-27T19:00:00Z","modified":"2024-08-07T06:45:50.944Z","updated_at":"2026-11-02T14:33:24.451733Z"}],"euvd":[{"id":"EUVD-2009-3989","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.","status":"published","published":"2009-11-27T19:00:00Z","modified":"2024-08-07T06:45:50Z","updated_at":"2026-11-03T01:39:11.734855Z"}],"ghsa":[{"id":"GHSA-64wx-q8pj-gj2r","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...","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.","status":"published","published":"2022-05-02T03:50:42Z","modified":"2023-01-31T05:09:22Z","updated_at":"2026-11-02T14:49:30.42259Z"}],"nvd":[{"id":"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.","status":"published","published":"2009-11-29T13:07:32.017Z","modified":"2026-06-16T23:12:50.42Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-264"],"updated_at":"2026-11-02T14:01:37.939838Z"}]}}
