A AegiFlow
HIGHCVSS 10.0

CVE-2004-0542

CVE-2004-0542 updated by NVD

Modified
2026-09-20
Sources
nvd

Summary

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 packages

EcosystemPackageAffected versionsFixed versions
PHPphp[object Object]

References

Includes data from the National Vulnerability Database (NIST). NVD data is in the public domain; this page is not endorsed by NIST.

CVE® is a registered trademark of The MITRE Corporation. CVE content reproduced under the CVE Terms of Use; copyright designation © MITRE.