CVEvulnerability

CVE-2004-0542

10.0 HIGH Published 2004-08-06 Modified 2026-06-16 Official page ↗
Status
Modified
Published
2004-08-06
Last modified
2026-06-16
Assigner
[email protected]
CVSS 2.0 ([email protected])
10.0 HIGH — AV:N/AC:L/Au:N/C:C/I:C/A:C

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 configurations

• php php (< 4.3.7)

Related

Referenced by CWE · observed example (1)

  • CWE-184 Incomplete List of Disallowed Inputs weakness

References