Vulnerabilities · 2009 · Php
CVE-2009-4018
Php vulnerability
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
Php. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Php runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- bugs.php.net/bug.php?id=49026 · Exploit
- marc.info/?l=oss-security&m=125886770008678&w=2 · Patch
- marc.info/?l=oss-security&m=125897935330618&w=2 · Patch
- svn.php.net/viewvc/?view=revision&revision=286360 · Patch
- svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/proc_open.c?r1=286360&r2=2863 · Patch
- svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/proc_open.c?r1=286360&r2=2863 · Patch
- www.openwall.com/lists/oss-security/2009/11/23/15 · Patch
- marc.info/?l=bugtraq&m=127680701405735&w=2
- nvd.nist.gov/vuln/detail/CVE-2009-4018
- cve.org/CVERecord?id=CVE-2009-4018
More vulnerabilities in Php products
CVE-2025-14180CVE-2025-14178CVE-2025-14177CVE-2025-6491CVE-2025-1861CVE-2025-1736CVE-2025-1735CVE-2025-1734All 740
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.