CVE-2009-4018 Security feature bypass in n/a
Attackers can bypass PHP safe mode restrictions to execute arbitrary code with modified environment variables, requiring safe mode to be enabled.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2009-4018?
CVE-2009-4018 is a high-severity vulnerability in Php Php, published on 27 Nov 2009. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-264
Which versions are affected by CVE-2009-4018?
It affects 1 product.
Products include Php Php.
How do I fix CVE-2009-4018?
No fix has been published for CVE-2009-4018 yet. Limit exposure of the affected software until one is available.
Is CVE-2009-4018 being exploited?
There is no known exploitation of CVE-2009-4018 in the wild and no public exploit code.
Public exploit code: 1 Exploit-DB entry.
Other vulnerabilities in Php Php
Sources
Also known as GHSA-64wx-q8pj-gj2r.