CVE-2004-0542Php
Critical 10.0 No auth neededHigh EPSS
Follow: this CVE · Php · Php We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Php.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| php | php | < 4.3.7 |
Official sources
References
Links published by the sources. Open them with care.
- www.idefense.com Not Applicable
- www.php.net Patch Release Notes Vendor Advisory
- exchange.xforce.ibmcloud.com Third Party Advisory VDB Entry