{"id":"CVE-2004-0542","published":"2004-06-10T04:00:00Z","modified":"2024-08-08T00:24:25Z","title":"PHP before 4.3.7 on Win32 platforms does not properly filter all shell metacharacters, which allows local or remote…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.31108,"percentile":0.98307,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.php.net/release_4_3_7.php","tags":["x_refsource_CONFIRM"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/16331","tags":["vdb-entry","x_refsource_XF"]},{"url":"http://www.idefense.com/application/poi/display?id=108","tags":["x_refsource_MISC"]}],"priority":{"score":19.7,"factors":[{"name":"EPSS percentile","points":19.66}]},"summary":{"text":"The flaw is in PHP versions before 4.3.7 on Win32 platforms, where the escapeshellcmd and escapeshellarg functions fail to filter all shell metacharacters. An attacker who can supply input to those functions, locally or remotely, can execute arbitrary code, overwrite files and read internal environment variables by using the \"%\", \"|\" or \">\" characters (for escapeshellcmd) or the \"%\" character (for escapeshellarg).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:36:58Z"},"euvd":{"id":"EUVD-2004-0541","exploited":false,"provenance":"source"}}