CVE-2007-5653: PHP - Insecure COM Object Handling
- Cve: CVE-2007-5653
- Name: PHP - Insecure COM Object Handling
- 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.
- Impact: Attackers can execute arbitrary code, run programs, manipulate files, and escalate privileges on the affected system.
- Remediation: Update to a newer PHP version that enforces safe_mode and disable_functions restrictions or apply security patches if available.
- Vulnerability impact: remote_code_execution, privilege_escalation
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.3
- Cvss vector: CVSS:2.0/AV:N/AC:M/Au:N/C:C/I:C/A:C
- Epss score: 0.0482
- Epss percentile: 0.92193
- Assignee: [email protected]
- Published at: 2007-10-23T21:47:00Z
- Age in days: 6972
- Modified at: 2026-06-16T22:46:34Z
- References total: 4
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2007-5653
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: vulnerability type, requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
References
Same in every row:
- Source: nvd
- Tags:
| Url |
|---|
| http://secunia.com/advisories/27280 |
| http://www.vupen.com/english/advisories/2007/3590 |
| https://exchange.xforce.ibmcloud.com/vulnerabilities/37368 |
| https://www.exploit-db.com/exploits/4553 |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| php:php | <= 5.2.4 | no | nvd | /v1/products/php/php |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Exploitation seen: yes
- Remote: yes
- Exposed hosts: 6175026
- Checked, none or zero: known exploited, known exploited by, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports