CVEvulnerability
CVE-2004-0542
10.0 HIGH
Official page ↗
- Status
- Modified
- Published
- 2004-08-06
- Last modified
- 2026-06-16
- Assigner
- [email protected]
- CVSS 2.0 ([email protected])
- 10.0 HIGH — AV:N/AC:L/Au:N/C:C/I:C/A:C
Description
PHP before 4.3.7 on Win32 platforms does not properly filter all shell metacharacters, which allows local or remote attackers to execute arbitrary code, overwrite files, and access internal environment variables via (1) the "%", "|", or ">" characters to the escapeshellcmd function, or (2) the "%" character to the escapeshellarg function.
Affected configurations
• php php (< 4.3.7)
Related
Referenced by CWE · observed example (1)
- CWE-184 Incomplete List of Disallowed Inputs weakness
References
- http://www.idefense.com/application/poi/display?id=108 Not Applicable
- http://www.php.net/release_4_3_7.php Patch, Release Notes, Vendor Advisory
- https://exchange.xforce.ibmcloud.com/vulnerabilities/16331 Third Party Advisory, VDB Entry
- http://www.idefense.com/application/poi/display?id=108 Not Applicable
- http://www.php.net/release_4_3_7.php Patch, Release Notes, Vendor Advisory
- https://exchange.xforce.ibmcloud.com/vulnerabilities/16331 Third Party Advisory, VDB Entry