CVE-2007-4586

PHP < 5.2.0 - Buffer Overflow in iisfunc Extension via Long String Argument

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2007-4586. PoCs published by boecke.

AI-analyzed exploit summary This is a proof-of-concept exploit for a buffer overflow vulnerability in the php_iisfunc.dll extension for PHP <= 5.2.0 on Windows. It demonstrates a local buffer overflow by passing a long string to the iis_getservicestate function, which converts the string to Unicode and triggers the overflow.

Description

Multiple buffer overflows in php_iisfunc.dll in the iisfunc extension for PHP 5.2.0 and earlier allow context-dependent attackers to execute arbitrary code, probably during Unicode conversion, as demonstrated by a long string in the first argument to the iis_getservicestate function, related to the ServiceId argument to the (1) fnStartService, (2) fnGetServiceState, (3) fnStopService, and possibly other functions.

Exploits (1)

exploitdb WORKING POC VERIFIED
by boecke · phpdoswindows_x86
https://www.exploit-db.com/exploits/4318

This is a proof-of-concept exploit for a buffer overflow vulnerability in the php_iisfunc.dll extension for PHP <= 5.2.0 on Windows. It demonstrates a local buffer overflow by passing a long string to the iis_getservicestate function, which converts the string to Unicode and triggers the overflow.

Classification
Working Poc 90%
Attack Type
Dos
Complexity
Trivial
Reliability
Theoretical
Target: PHP <= 5.2.0 with php_iisfunc.dll extension (win32)
No auth needed
Prerequisites: php_iisfunc.dll extension loaded in PHP · Windows 32-bit environment
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (3)

Core 3
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/36262
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/25452
Exploit, Third Party Advisory exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/4318

Scores

EPSS 0.0945
EPSS Percentile 94.8%

Details

CWE
CWE-119
Status published
Products (1)
php/php < 5.2.0
Published Aug 29, 2007
Tracked Since Feb 18, 2026