CVE-2009-4018

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.

Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
11.341%
chance of exploitation in the next 30 days
higher than 96.1% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Exploit-DB: 1

Weakness

Timeline

  1. 2009-11-27Published by the CNA19:00 UTC
  2. 2010-03-05First Exploit-DB entry (EDB-ID 11636)98 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

Exploit-DBTypePlatformPublishedEDB-verified
EDB-ID 11636webappsphp2010-03-05no

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
php php1.0no fix listed2.0no fix listed2.0b10no fix listed3.0no fix listed3.0.1no fix listed(+81 more)not listednot listednot listednot listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources