CVE-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…
CVE-2009-4018 affects 17 listed versions of PHP in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
PHP
17 of 250 listed versions are affected. No fixed release is named. The newest release, 8.6.0, is not affected.
5.2.10 5.2.9 5.2.8 5.2.7 5.2.6 5.2.5 5.2.4 5.2.3 5.1.6 5.1.5 5.1.4 5.1.3 5.1.2 5.1.1 5.1.0 5.0.5 5.0.4
What it is
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.
AV:N/AC:L/Au:N/C:P/I:P/A:P (NVD)
Published by Red Hat on 29 November 2009. Last changed 16 June 2026.
Sources
Check one version you run: look CVE-2009-4018 up, or pick a product and version in the quick lookup.
Updated 1 December 2026.