CVE-2004-0542: PHP

High severity, CVSS 10.0. EPSS: 31.1% chance of exploitation in the next 30 days.

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.

Affected products

  • PHP PHP: before 4.3.7 (fixed in 4.3.7)

Published 2004-08-06. Last modified 2026-06-16.