CVE-2009-4018 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...
HighCVSS 7.5
EPSS 11.3%
Public exploit
- Published
- Updated
- Exploit status
- Public exploit available
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| PHP | <= 5.2.10 | No fix listed |
| PHP | = 1.0 | No fix listed |
| PHP | = 2.0 | No fix listed |
| PHP | = 2.0b10 | No fix listed |
| PHP | = 3.0 | No fix listed |
| PHP | = 3.0.1 | No fix listed |
| PHP | = 3.0.2 | No fix listed |
| PHP | = 3.0.3 | No fix listed |
| PHP | = 3.0.4 | No fix listed |
| PHP | = 3.0.5 | No fix listed |
| PHP | = 3.0.6 | No fix listed |
| PHP | = 3.0.7 | No fix listed |
| PHP | = 3.0.8 | No fix listed |
| PHP | = 3.0.9 | No fix listed |
| PHP | = 3.0.10 | No fix listed |
| PHP | = 3.0.11 | No fix listed |
| PHP | = 3.0.12 | No fix listed |
| PHP | = 3.0.13 | No fix listed |
| PHP | = 3.0.14 | No fix listed |
| PHP | = 3.0.15 | No fix listed |
| PHP | = 3.0.16 | No fix listed |
| PHP | = 3.0.17 | No fix listed |
| PHP | = 3.0.18 | No fix listed |
| PHP | = 4 | No fix listed |
| PHP | = 4.0 | No fix listed |
Show 85 more
| Product | Affected versions | Fixed in |
|---|---|---|
| PHP | = 4.0-beta_4_patch1 | No fix listed |
| PHP | = 4.0-beta1 | No fix listed |
| PHP | = 4.0-beta2 | No fix listed |
| PHP | = 4.0-beta3 | No fix listed |
| PHP | = 4.0-beta4 | No fix listed |
| PHP | = 4.0-rc1 | No fix listed |
| PHP | = 4.0-rc2 | No fix listed |
| PHP | = 4.0.0 | No fix listed |
| PHP | = 4.0.1 | No fix listed |
| PHP | = 4.0.1-patch1 | No fix listed |
| PHP | = 4.0.1-patch2 | No fix listed |
| PHP | = 4.0.2 | No fix listed |
| PHP | = 4.0.3 | No fix listed |
| PHP | = 4.0.3-patch1 | No fix listed |
| PHP | = 4.0.4 | No fix listed |
| PHP | = 4.0.4-patch1 | No fix listed |
| PHP | = 4.0.5 | No fix listed |
| PHP | = 4.0.6 | No fix listed |
| PHP | = 4.0.7 | No fix listed |
| PHP | = 4.0.7-rc1 | No fix listed |
| PHP | = 4.0.7-rc2 | No fix listed |
| PHP | = 4.0.7-rc3 | No fix listed |
| PHP | = 4.0.7-rc4 | No fix listed |
| PHP | = 4.1.0 | No fix listed |
| PHP | = 4.1.1 | No fix listed |
| PHP | = 4.1.2 | No fix listed |
| PHP | = 4.2 | No fix listed |
| PHP | = 4.2.0 | No fix listed |
| PHP | = 4.2.1 | No fix listed |
| PHP | = 4.2.2 | No fix listed |
| PHP | = 4.2.3 | No fix listed |
| PHP | = 4.3.0 | No fix listed |
| PHP | = 4.3.1 | No fix listed |
| PHP | = 4.3.2 | No fix listed |
| PHP | = 4.3.3 | No fix listed |
| PHP | = 4.3.4 | No fix listed |
| PHP | = 4.3.5 | No fix listed |
| PHP | = 4.3.6 | No fix listed |
| PHP | = 4.3.7 | No fix listed |
| PHP | = 4.3.8 | No fix listed |
| PHP | = 4.3.9 | No fix listed |
| PHP | = 4.3.10 | No fix listed |
| PHP | = 4.3.11 | No fix listed |
| PHP | = 4.4.0 | No fix listed |
| PHP | = 4.4.1 | No fix listed |
| PHP | = 4.4.2 | No fix listed |
| PHP | = 4.4.3 | No fix listed |
| PHP | = 4.4.4 | No fix listed |
| PHP | = 4.4.5 | No fix listed |
| PHP | = 4.4.6 | No fix listed |
| PHP | = 4.4.7 | No fix listed |
| PHP | = 4.4.8 | No fix listed |
| PHP | = 4.4.9 | No fix listed |
| PHP | = 5 | No fix listed |
| PHP | = 5.0-rc1 | No fix listed |
| PHP | = 5.0-rc2 | No fix listed |
| PHP | = 5.0-rc3 | No fix listed |
| PHP | = 5.0.0 | No fix listed |
| PHP | = 5.0.0-beta1 | No fix listed |
| PHP | = 5.0.0-beta2 | No fix listed |
| PHP | = 5.0.0-beta3 | No fix listed |
| PHP | = 5.0.0-beta4 | No fix listed |
| PHP | = 5.0.0-rc1 | No fix listed |
| PHP | = 5.0.0-rc2 | No fix listed |
| PHP | = 5.0.0-rc3 | No fix listed |
| PHP | = 5.0.1 | No fix listed |
| PHP | = 5.0.2 | No fix listed |
| PHP | = 5.0.3 | No fix listed |
| PHP | = 5.0.4 | No fix listed |
| PHP | = 5.0.5 | No fix listed |
| PHP | = 5.1.0 | No fix listed |
| PHP | = 5.1.1 | No fix listed |
| PHP | = 5.1.2 | No fix listed |
| PHP | = 5.1.3 | No fix listed |
| PHP | = 5.1.4 | No fix listed |
| PHP | = 5.1.5 | No fix listed |
| PHP | = 5.1.6 | No fix listed |
| PHP | = 5.2.0 | No fix listed |
| PHP | = 5.2.2 | No fix listed |
| PHP | = 5.2.4 | No fix listed |
| PHP | = 5.2.6 | No fix listed |
| PHP | = 5.2.7 | No fix listed |
| PHP | = 5.2.8 | No fix listed |
| PHP | = 5.2.9 | No fix listed |
| PHP | = 5.3.0 | No fix listed |
References
- bugs.php.net exploit patch
- HPSBUX02543 vendor-advisory
- [oss-security] 20091122 Re: CVE request: php 5.3.1 update mailing-list patch
- [oss-security] 20091123 Re: CVE request: php 5.3.1 - proc_open() bypass PHP Bug #49026 [was: Re: CVE request: php 5.3.1 update] mailing-list patch
- 40262 third-party-advisory
- 41480 third-party-advisory
- 41490 third-party-advisory
- svn.php.net patch
- svn.php.net patch
- svn.php.net patch
- HPSBMA02568 vendor-advisory
- MDVSA-2009:303 vendor-advisory
- [oss-security] 20091123 Re: CVE request: php 5.3.1 - proc_open() bypass PHP Bug #49026 [was: Re: CVE request: php 5.3.1 update] mailing-list patch
- www.php.net
- 37138 vdb-entry
- oval:org.mitre.oval:def:7256 signature vdb-entry