VULNERABILITY INTELLIGENCE
CVE-2004-0542
CVSS score10 HIGH
EPSS probability31.11%
CISA KEVNot currently listed
Published2004-08-06
Last modified2026-06-16
CVSS vectorAV: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.
Primary references
- cve@mitre.org — Not Applicable
- cve@mitre.org — Patch, Release Notes, Vendor Advisory
- cve@mitre.org — Third Party Advisory, VDB Entry
- af854a3a-2127-422b-91ae-364da2661108 — Not Applicable
- af854a3a-2127-422b-91ae-364da2661108 — Patch, Release Notes, Vendor Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Third Party Advisory, VDB Entry