Live threats

All CVEs / Php

CVE-2004-0542Php

Critical 10.0 No auth neededHigh EPSS

Priority
78
CVSS 2.0
10.0
EPSS
31.1%
probability of exploitation in 30 days · percentile 99
Auth required
No
Published
Aug 6, 2004
Updated
Jun 16, 2026
Category
Web application · Cross-platform
Vector
AV:N/AC:L/Au:N/C:C/I:C/A:C

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Php.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
phpphp< 4.3.7

Official sources

References

Links published by the sources. Open them with care.