Vulnerability record · CVE-2004-0542 · published 6 August 2004
CVE-2004-0542: Php vulnerability
Php · Php
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.
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.
AV:N/AC:L/Au:N/C:C/I:C/A:C
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| http://www.idefense.com/application/poi/display?id=108 | Not Applicable |
| http://www.php.net/release_4_3_7.php | PatchRelease NotesVendor Advisory |
| https://exchange.xforce.ibmcloud.com/vulnerabilities/16331 | Third Party AdvisoryVDB Entry |
| http://www.idefense.com/application/poi/display?id=108 | Not Applicable |
| http://www.php.net/release_4_3_7.php | PatchRelease NotesVendor Advisory |
| https://exchange.xforce.ibmcloud.com/vulnerabilities/16331 | Third Party AdvisoryVDB Entry |
Track CVE-2004-0542 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2004-0542), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.