CVE-2004-0542

UnknownEPSS 31.11%

Last modified

CVE-2004-0542 is a vulnerability of currently unknown severity. 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.. EPSS estimates a 31.11% chance of exploitation in the next 30 days.

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.

Metrics

EPSS Probability
31.11%

98.0th percentile

Probability of exploitation in the next 30 days. Learn more

Affected Software

VendorProductVersions
PhpPhp< 4.3.7

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2004-0542?
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.
How severe is CVE-2004-0542?
Severity scoring for CVE-2004-0542 is pending analysis. The EPSS model estimates a 31.11% probability of exploitation in the next 30 days.
How do I fix CVE-2004-0542?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2004-0542?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST