{"cve":"CVE-2004-0542","nvd":{"published":"2004-08-06T04:00:00.000","modified":"2026-06-16T22:05:50.797","status":"Modified","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.","cvss_v4":null,"cvss_v3":null,"cwes":[],"references":["http://www.idefense.com/application/poi/display?id=108","http://www.php.net/release_4_3_7.php","https://exchange.xforce.ibmcloud.com/vulnerabilities/16331","http://www.idefense.com/application/poi/display?id=108","http://www.php.net/release_4_3_7.php"],"products":["php:php"],"source":"nvd","synced_at":"2026-10-19T19:37:11.487553034+00:00"},"epss":{"cve":"CVE-2004-0542","score":0.31108,"percentile":0.98267,"date":"2026-10-31"},"kev":null,"osv":[],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}