CVE-2009-4018
Summary
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.
Impact & exploitability
AV:N/AC:L/Au:N/C:P/I:P/A:P
Affected products we track (1)
Recommendation
Apply the vendor fix promptly. Open any affected product above for its exact safe version.
Official patch: http://bugs.php.net/bug.php?id=49026 ↗
Additional information
- NVD record
- http://bugs.php.net/bug.php?id=49026Patch
- http://marc.info/?l=oss-security&m=125886770008678&w=2Patch
- http://marc.info/?l=oss-security&m=125897935330618&w=2Patch
- http://svn.php.net/viewvc/?view=revision&revision=286360Patch
- http://marc.info/?l=bugtraq&m=127680701405735&w=2
- http://secunia.com/advisories/40262
- http://secunia.com/advisories/41480
- http://secunia.com/advisories/41490