PHP Microsoft Windows Shell Escape Functions Command Execution Vulnerability

BID:10471

Info

PHP Microsoft Windows Shell Escape Functions Command Execution Vulnerability

Bugtraq ID: 10471
Class: Input Validation Error
CVE:
Remote: Yes
Local: No
Published: Jun 07 2004 12:00AM
Updated: Jun 07 2004 12:00AM
Credit: Discovery of this issue is credited to "Daniel Fabian" <[email protected]>. Discovery is also credited to 3APA3A.
Vulnerable: PHP PHP 4.3.5
PHP PHP 4.3.3
+ S.u.S.E. Linux Personal 9.0 x86_64
+ S.u.S.E. Linux Personal 9.0
+ Turbolinux Home
+ Turbolinux Turbolinux 10 F...
+ Turbolinux Turbolinux Desktop 10.0
Not Vulnerable: PHP PHP 4.3.7

Discussion

PHP Microsoft Windows Shell Escape Functions Command Execution Vulnerability

PHP is reportedly prone to a command execution vulnerability in its shell escape functions. This issue is due to a failure of PHP to properly sanitize function arguments.

This issue might allow an attacker to execute arbitrary shell commands on a computer running the vulnerable software within the security context of the web server; potentially leading to unauthorized access. Other attacks are also possible.

This issue is reported to affect PHP under Microsoft Windows version 4.3.3 and 4.3.5, it is likely that other Microsoft Windows versions are affected as well.

Exploit / POC

PHP Microsoft Windows Shell Escape Functions Command Execution Vulnerability

No exploit is required to leverage this issue. It has been reported that the following input passed to a vulnerable function will trigger this issue and execute the 'dir' command:

" || dir ||

Solution / Fix

PHP Microsoft Windows Shell Escape Functions Command Execution Vulnerability

Solution:
The vendor has released an upgrade dealing with this issue.


PHP PHP 4.3.3

PHP PHP 4.3.5

References

PHP Microsoft Windows Shell Escape Functions Command Execution Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report