← All CVEs

CVE-2009-4018

high · 7.5

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.

7.5
CVSS
11.3%
EPSS (exploit prob.)
96th
EPSS percentile
2009-11-29
Published

AV:N/AC:L/Au:N/C:P/I:P/A:P

Weaknesses

CWE-264

Affected products

VendorProductAffected versions
phpphp<= 5.2.10
phpphp1.0
phpphp2.0
phpphp2.0b10
phpphp3.0
phpphp3.0.1
phpphp3.0.2
phpphp3.0.3
phpphp3.0.4
phpphp3.0.5
phpphp3.0.6
phpphp3.0.7
phpphp3.0.8
phpphp3.0.9
phpphp3.0.10
phpphp3.0.11
phpphp3.0.12
phpphp3.0.13
phpphp3.0.14
phpphp3.0.15
phpphp3.0.16
phpphp3.0.17
phpphp3.0.18
phpphp4
phpphp4.0
phpphp4.0
phpphp4.0
phpphp4.0
phpphp4.0
phpphp4.0
phpphp4.0
phpphp4.0
phpphp4.0.0
phpphp4.0.1
phpphp4.0.1
phpphp4.0.1
phpphp4.0.2
phpphp4.0.3
phpphp4.0.3
phpphp4.0.4

Check a specific version with /api/v1/cve/match.

References

Query this programmatically:

curl https://evil-db.io/api/v1/cve/CVE-2009-4018