CVE-2009-4018
published 2009-11-29CVE-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)…
PriorityP352high7.5CVSS 2.0
AVNACLAuNCPIPAP
EXPLOIT
EPSS
11.34%
95.4th percentile
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
86 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| php | php | <= 5.2.10 | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
CVSS provenance
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
vendor_redhat7.5HIGH
vendor_ubuntu6.4MEDIUM
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-64wx-q8pj-gj2r: The proc_open function in ext/standard/proc_open
ghsa_unreviewed·2022-05-02
CVE-2009-4018 [HIGH] GHSA-64wx-q8pj-gj2r: The proc_open function in ext/standard/proc_open
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.
Ubuntu
PHP vulnerabilities
vendor_ubuntu·2009-11-26·CVSS 6.4
CVE-2009-4018 [MEDIUM] PHP vulnerabilities
Title: PHP vulnerabilities
Summary: PHP vulnerabilities
Maksymilian Arciemowicz discovered that PHP did not properly validate
arguments to the dba_replace function. If a script passed untrusted input
to the dba_replace function, an attacker could truncate the database. This
issue only applied to Ubuntu 6.06 LTS, 8.04 LTS, and 8.10. (CVE-2008-7068)
It was discovered that PHP's php_openssl_apply_verification_policy
function did not correctly handle SSL certificates with zero bytes in the
Common Name. A remote attacker could exploit this to perform a
machine-in-the-middle attack to view sensitive information or alter
encrypted communications. (CVE-2009-3291)
It was discovered that PHP did not properly handle certain malformed images
when being parsed by the Exif module. A remote attacker
Red Hat
php: proc_open() safe mode restriction bypass
vendor_redhat·2009-07-23·CVSS 7.5
CVE-2009-4018 [HIGH] php: proc_open() safe mode restriction bypass
php: proc_open() safe mode restriction bypass
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.
Statement: We do not consider safe_mode / open_basedir restriction bypass issues being security sensitive. For more details see https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=169857#c1 and https://www.php.net/security-note.php
No detection rules found.
http://bugs.php.net/bug.php?id=49026http://marc.info/?l=bugtraq&m=127680701405735&w=2http://marc.info/?l=oss-security&m=125886770008678&w=2http://marc.info/?l=oss-security&m=125897935330618&w=2http://secunia.com/advisories/40262http://secunia.com/advisories/41480http://secunia.com/advisories/41490http://svn.php.net/viewvc/?view=revision&revision=286360http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/proc_open.c?r1=286360&r2=286359&pathrev=286360http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/proc_open.c?r1=286360&r2=286359&pathrev=286360http://www.itrc.hp.com/service/cki/docDisplay.do?docId=emr_na-c02512995http://www.mandriva.com/security/advisories?name=MDVSA-2009:303http://www.openwall.com/lists/oss-security/2009/11/23/15http://www.php.net/ChangeLog-5.phphttp://www.securityfocus.com/bid/37138https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7256http://bugs.php.net/bug.php?id=49026http://marc.info/?l=bugtraq&m=127680701405735&w=2http://marc.info/?l=oss-security&m=125886770008678&w=2http://marc.info/?l=oss-security&m=125897935330618&w=2http://secunia.com/advisories/40262http://secunia.com/advisories/41480http://secunia.com/advisories/41490http://svn.php.net/viewvc/?view=revision&revision=286360http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/proc_open.c?r1=286360&r2=286359&pathrev=286360http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/proc_open.c?r1=286360&r2=286359&pathrev=286360http://www.itrc.hp.com/service/cki/docDisplay.do?docId=emr_na-c02512995http://www.mandriva.com/security/advisories?name=MDVSA-2009:303http://www.openwall.com/lists/oss-security/2009/11/23/15http://www.php.net/ChangeLog-5.phphttp://www.securityfocus.com/bid/37138https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7256
2009-11-29
Published