7.5
HIGH
CVE-2009-4018
"Apache PHP Arbitrary Environment Variables Command Execution Vulnerability"
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.

INFO

Published Date :

Nov. 29, 2009, 1:07 p.m.

Last Modified :

April 9, 2025, 12:30 a.m.

Remotely Exploitable :

Yes !

Impact Score :

6.4

Exploitability Score :

10.0
Affected Products

The following products are affected by CVE-2009-4018 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Php php
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2009-4018.

URL Resource
http://bugs.php.net/bug.php?id=49026 Exploit Patch
http://marc.info/?l=bugtraq&m=127680701405735&w=2
http://marc.info/?l=bugtraq&m=127680701405735&w=2
http://marc.info/?l=oss-security&m=125886770008678&w=2 Patch
http://marc.info/?l=oss-security&m=125897935330618&w=2 Patch
http://secunia.com/advisories/40262
http://secunia.com/advisories/41480
http://secunia.com/advisories/41490
http://svn.php.net/viewvc/?view=revision&revision=286360 Patch
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/proc_open.c?r1=286360&r2=286359&pathrev=286360 Patch
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/proc_open.c?r1=286360&r2=286359&pathrev=286360 Patch
http://www.itrc.hp.com/service/cki/docDisplay.do?docId=emr_na-c02512995
http://www.itrc.hp.com/service/cki/docDisplay.do?docId=emr_na-c02512995
http://www.mandriva.com/security/advisories?name=MDVSA-2009:303
http://www.openwall.com/lists/oss-security/2009/11/23/15 Patch
http://www.php.net/ChangeLog-5.php
http://www.securityfocus.com/bid/37138
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7256
http://bugs.php.net/bug.php?id=49026 Exploit Patch
http://marc.info/?l=bugtraq&m=127680701405735&w=2
http://marc.info/?l=bugtraq&m=127680701405735&w=2
http://marc.info/?l=oss-security&m=125886770008678&w=2 Patch
http://marc.info/?l=oss-security&m=125897935330618&w=2 Patch
http://secunia.com/advisories/40262
http://secunia.com/advisories/41480
http://secunia.com/advisories/41490
http://svn.php.net/viewvc/?view=revision&revision=286360 Patch
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/proc_open.c?r1=286360&r2=286359&pathrev=286360 Patch
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/proc_open.c?r1=286360&r2=286359&pathrev=286360 Patch
http://www.itrc.hp.com/service/cki/docDisplay.do?docId=emr_na-c02512995
http://www.itrc.hp.com/service/cki/docDisplay.do?docId=emr_na-c02512995
http://www.mandriva.com/security/advisories?name=MDVSA-2009:303
http://www.openwall.com/lists/oss-security/2009/11/23/15 Patch
http://www.php.net/ChangeLog-5.php
http://www.securityfocus.com/bid/37138
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7256

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2009-4018 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2009-4018 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://bugs.php.net/bug.php?id=49026
    Added Reference http://marc.info/?l=bugtraq&m=127680701405735&w=2
    Added Reference http://marc.info/?l=bugtraq&m=127680701405735&w=2
    Added Reference http://marc.info/?l=oss-security&m=125886770008678&w=2
    Added Reference http://marc.info/?l=oss-security&m=125897935330618&w=2
    Added Reference http://secunia.com/advisories/40262
    Added Reference http://secunia.com/advisories/41480
    Added Reference http://secunia.com/advisories/41490
    Added Reference http://svn.php.net/viewvc/?view=revision&revision=286360
    Added Reference http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/proc_open.c?r1=286360&r2=286359&pathrev=286360
    Added Reference http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/proc_open.c?r1=286360&r2=286359&pathrev=286360
    Added Reference http://www.itrc.hp.com/service/cki/docDisplay.do?docId=emr_na-c02512995
    Added Reference http://www.itrc.hp.com/service/cki/docDisplay.do?docId=emr_na-c02512995
    Added Reference http://www.mandriva.com/security/advisories?name=MDVSA-2009:303
    Added Reference http://www.openwall.com/lists/oss-security/2009/11/23/15
    Added Reference http://www.php.net/ChangeLog-5.php
    Added Reference http://www.securityfocus.com/bid/37138
    Added Reference https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7256
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CPE Deprecation Remap by [email protected]

    Oct. 30, 2018

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:php:php:4.2.4:*:*:*:*:*:*:* OR *cpe:2.3:a:php:php:4.2.0:*:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Oct. 30, 2018

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:php:php:4.2:*:*:*:*:*:*:* OR *cpe:2.3:a:php:php:4.2.0:*:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Oct. 30, 2018

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:php:php:5.1:*:*:*:*:*:*:* OR *cpe:2.3:a:php:php:5.1.0:*:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Oct. 30, 2018

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:php:php:4.3:*:*:*:*:*:*:* OR *cpe:2.3:a:php:php:4.3.0:*:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Oct. 30, 2018

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:php:php:4.1.3:*:*:*:*:*:*:* OR *cpe:2.3:a:php:php:4.1.0:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Sep. 19, 2017

    Action Type Old Value New Value
    Removed Reference http://oval.mitre.org/repository/data/getDef?id=oval:org.mitre.oval:def:7256 [No Types Assigned]
    Added Reference https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7256 [No Types Assigned]
  • Initial Analysis by [email protected]

    Nov. 30, 2009

    Action Type Old Value New Value
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2009-4018 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2009-4018 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

17.76 }} -7.52%

score

0.94588

percentile

CVSS2 - Vulnerability Scoring System
Access Vector
Access Complexity
Authentication
Confidentiality
Integrity
Availability