CVE-2009-4018

N/A Unknown
Published: November 29, 2009 Modified: April 23, 2026
View on NVD

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
http://bugs.php.net/bug.php?id=49026
Source: secalert@redhat.com
Exploit Patch
http://secunia.com/advisories/40262
Source: secalert@redhat.com
http://secunia.com/advisories/41480
Source: secalert@redhat.com
http://secunia.com/advisories/41490
Source: secalert@redhat.com
http://www.php.net/ChangeLog-5.php
Source: secalert@redhat.com
http://www.securityfocus.com/bid/37138
Source: secalert@redhat.com
http://bugs.php.net/bug.php?id=49026
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Patch
http://marc.info/?l=bugtraq&m=127680701405735&w=2
Source: af854a3a-2127-422b-91ae-364da2661108
http://marc.info/?l=oss-security&m=125886770008678&w=2
Source: af854a3a-2127-422b-91ae-364da2661108
Patch
http://marc.info/?l=oss-security&m=125897935330618&w=2
Source: af854a3a-2127-422b-91ae-364da2661108
Patch
http://secunia.com/advisories/40262
Source: af854a3a-2127-422b-91ae-364da2661108
http://secunia.com/advisories/41480
Source: af854a3a-2127-422b-91ae-364da2661108
http://secunia.com/advisories/41490
Source: af854a3a-2127-422b-91ae-364da2661108
http://svn.php.net/viewvc/?view=revision&revision=286360
Source: af854a3a-2127-422b-91ae-364da2661108
Patch
http://www.mandriva.com/security/advisories?name=MDVSA-2009:303
Source: af854a3a-2127-422b-91ae-364da2661108
http://www.openwall.com/lists/oss-security/2009/11/23/15
Source: af854a3a-2127-422b-91ae-364da2661108
Patch
http://www.php.net/ChangeLog-5.php
Source: af854a3a-2127-422b-91ae-364da2661108
http://www.securityfocus.com/bid/37138
Source: af854a3a-2127-422b-91ae-364da2661108

32 reference(s) from NVD

Quick Stats

CVSS v3 Score
N/A / 10.0
EPSS (Exploit Probability)
22.3%
96th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

php