PT-2004-1651 · Php · Php
Published
2004-06-10
·
Updated
2022-07-01
·
CVE-2004-0542
CVSS v2.0
10
High
| Vector | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
PHP versions prior to 4.3.7
Description
The issue is due to an input validation error in the
escapeshellcmd() routine, which fails to filter the characters %, |, and >, allowing a remote attacker to access environment variables, redirect output, and execute arbitrary commands. This can result in a loss of confidentiality and integrity. The escapeshellarg() function is also affected by the % character.Recommendations
For PHP versions prior to 4.3.7, update to version 4.3.7 or later to resolve the issue. As a temporary workaround, consider restricting the use of the
escapeshellcmd() and escapeshellarg() functions until a patch is applied. Avoid using the characters %, |, and > in the escapeshellcmd() function and the % character in the escapeshellarg() function to minimize the risk of exploitation.Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Php