{"id":"CVE-2004-0542","aliases":["EUVD-2004-0541","GHSA-ccf6-wjg8-65fx"],"status":"published","title":"PHP before 4.3.7 on Win32 platforms does not properly filter all shell metacharacters, which...","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 \"\u003e\" characters to the escapeshellcmd function, or (2) the \"%\" character to the escapeshellarg function.","severity":{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.31108,"percentile":0.98277,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"published":"2004-06-10T04:00:00Z","modified":"2026-06-16T22:05:50Z","products":[{"vendor":"php","product":"php"}],"references":[{"url":"http://www.php.net/release_4_3_7.php","tags":["x_refsource_CONFIRM","x_transferred","Patch","Release Notes","Vendor Advisory"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/16331","tags":["vdb-entry","x_refsource_XF","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"http://www.idefense.com/application/poi/display?id=108","tags":["x_refsource_MISC","x_transferred","Not Applicable"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-0542"},{"url":"https://github.com/advisories/GHSA-ccf6-wjg8-65fx"}],"sources":{"cve":[{"id":"CVE-2004-0542","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 \"\u003e\" characters to the escapeshellcmd function, or (2) the \"%\" character to the escapeshellarg function.","status":"published","published":"2004-06-10T04:00:00Z","modified":"2024-08-08T00:24:25.88Z","updated_at":"2026-11-02T14:34:54.758165Z"}],"euvd":[{"id":"EUVD-2004-0541","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 \"\u003e\" characters to the escapeshellcmd function, or (2) the \"%\" character to the escapeshellarg function.","status":"published","published":"2004-06-10T04:00:00Z","modified":"2024-08-08T00:24:25Z","updated_at":"2026-11-03T01:15:19.183327Z"}],"ghsa":[{"id":"GHSA-ccf6-wjg8-65fx","title":"PHP before 4.3.7 on Win32 platforms does not properly filter all shell metacharacters, which...","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 \"\u003e\" characters to the escapeshellcmd function, or (2) the \"%\" character to the escapeshellarg function.","status":"published","published":"2022-04-29T02:57:53Z","modified":"2023-01-30T05:02:44Z","updated_at":"2026-11-02T14:46:42.642348Z"}],"nvd":[{"id":"CVE-2004-0542","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 \"\u003e\" characters to the escapeshellcmd function, or (2) the \"%\" character to the escapeshellarg function.","status":"published","published":"2004-08-06T04:00:00Z","modified":"2026-06-16T22:05:50.797Z","cvss":[{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"updated_at":"2026-11-02T14:00:51.000028Z"}]}}
