CVE-2007-5653

PHP < 5.2.4 - OS Command Injection via COM Functions

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2007-5653. PoCs published by shinnai.

AI-analyzed exploit summary This exploit demonstrates a bypass of PHP safe_mode and disable_functions using COM objects in PHP 5.x on Windows. It allows arbitrary command execution, file manipulation, and user creation by leveraging COM components like wscript.shell and Scripting.FileSystemObject.

Description

The Component Object Model (COM) functions in PHP 5.x on Windows do not follow safe_mode and disable_functions restrictions, which allows context-dependent attackers to bypass intended limitations, as demonstrated by executing objects with the kill bit set in the corresponding ActiveX control Compatibility Flags, executing programs via a function in compatUI.dll, invoking wscript.shell via wscript.exe, invoking Scripting.FileSystemObject via wshom.ocx, and adding users via a function in shgina.dll, related to the com_load_typelib function.

Exploits (1)

exploitdb WORKING POC VERIFIED
by shinnai · phplocalwindows
https://www.exploit-db.com/exploits/4553

This exploit demonstrates a bypass of PHP safe_mode and disable_functions using COM objects in PHP 5.x on Windows. It allows arbitrary command execution, file manipulation, and user creation by leveraging COM components like wscript.shell and Scripting.FileSystemObject.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: PHP 5.x on Windows with COM functions enabled
No auth needed
Prerequisites: COM functions enabled in PHP · Windows environment · PHP running with sufficient privileges
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (4)

Core 4
Core References
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/3590
Exploit, Third Party Advisory exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/4553
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/37368
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27280

Scores

EPSS 0.0482
EPSS Percentile 90.8%

Details

CWE
CWE-78
Status published
Products (1)
php/php < 5.2.4
Published Oct 23, 2007
Tracked Since Feb 18, 2026