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 environmen...
HighCVSS 10.0
EPSS 31.1%
- Published
- Updated
- Exploit status
- No public exploit known
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
| Product | Affected versions | Fixed in |
|---|---|---|
| PHP | < 4.3.7 | 4.3.7 |
References
- www.idefense.com not-applicable
- www.php.net patch release-notes vendor-advisory
- php-escapeshellarg-execute-command(16331) third-party-advisory vdb-entry