CVE-2004-0542
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
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Php | Php | < 4.3.7 |
References
- http://www.idefense.com/application/poi/display?id=108Not Applicable
- http://www.php.net/release_4_3_7.phpPatch, Release Notes, Vendor Advisory
- https://exchange.xforce.ibmcloud.com/vulnerabilities/16331Third Party Advisory, VDB Entry
- http://www.idefense.com/application/poi/display?id=108Not Applicable
- http://www.php.net/release_4_3_7.phpPatch, Release Notes, Vendor Advisory
- https://exchange.xforce.ibmcloud.com/vulnerabilities/16331Third Party Advisory, VDB Entry
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2004-0542?
How severe is CVE-2004-0542?
How do I fix CVE-2004-0542?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2004
- CVE-2004-0536Format string vulnerability in Tripwire commercial 4.0.1 and…
- CVE-2004-0537Opera 7.50 and earlier allows remote web sites to provide a …
- CVE-2004-0538LaunchServices in Mac OS X 10.3.4 and 10.2.8 automatically r…
- CVE-2004-0539The "Show in Finder" button in the Safari web browser in Mac…
- CVE-2004-0540Microsoft Windows 2000, when running in a domain whose Fully…
- CVE-2004-0541Buffer overflow in the ntlm_check_auth (NTLM authentication)…
- CVE-2004-0543Multiple SQL injection vulnerabilities in Oracle Application…
- CVE-2004-0544Multiple buffer overflows in LVM for AIX 5.1 and 5.2 allow l…
- CVE-2004-0545LVM for AIX 5.1 and 5.2 allows local users to overwrite arbi…
- CVE-2004-0547Buffer overflow in the ODBC driver for PostgreSQL before 7.2…
- CVE-2004-0548Multiple stack-based buffer overflows in the word-list-compr…
- CVE-2004-0549The WebBrowser ActiveX control, or the Internet Explorer HTM…
Are you affected by CVE-2004-0542?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
