What’s Vulnerable › Vulnerabilities

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 ">" characters to the escapeshellcmd function, or (2) the "%" character to the escapeshellarg function.

Affected products

How to fix

Upgrade to a fixed version: PHP 4.3.7. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2004-0542 or the next vulnerability affects your stack