CVE-2006-0097

PHP 4.3.10-4.4.2 - Stack-Based Buffer Overflow via mysql_connect Host Argument

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2006-0097. PoCs published by mercenary.

AI-analyzed exploit summary This exploit targets a buffer overflow vulnerability in PHP 4.3.10 and 4.4.0 on Windows XP SP1. It leverages a CALL ESI instruction from ws2_32.dll to execute a Metasploit win32 bind shell payload on port 4444.

Description

Stack-based buffer overflow in the create_named_pipe function in libmysql.c in PHP 4.3.10 and 4.4.x before 4.4.3 for Windows allows attackers to execute arbitrary code via a long (1) arg_host or (2) arg_unix_socket argument, as demonstrated by a long named pipe variable in the host argument to the mysql_connect function.

Exploits (1)

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

This exploit targets a buffer overflow vulnerability in PHP 4.3.10 and 4.4.0 on Windows XP SP1. It leverages a CALL ESI instruction from ws2_32.dll to execute a Metasploit win32 bind shell payload on port 4444.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: PHP 4.3.10, 4.4.0 on Windows XP SP1
No auth needed
Prerequisites: PHP 4.3.10 or 4.4.0 on Windows XP SP1 · MySQL connectivity enabled
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (8)

Core 8
Core References
Vendor Advisory x_refsource_confirm
http://www.php.net/ChangeLog-4.php#4.4.3
Exploit, Vendor Advisory mailing-list x_refsource_fulldisc
http://lists.grok.org.uk/pipermail/full-disclosure/2006-January/041013.html
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/420986/100/0/threaded
Vendor Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2006/0046
Exploit vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/16145
Third Party Advisory, VDB Entry vdb-entry x_refsource_osvdb
http://www.osvdb.org/22232
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/18275
Third Party Advisory mailing-list x_refsource_fulldisc
http://archives.neohapsis.com/archives/fulldisclosure/2006-01/0274.html

Scores

EPSS 0.0838
EPSS Percentile 94.3%

Details

CWE
CWE-119
Status published
Products (4)
php/php 4.3.10
php/php 4.4.0
php/php 4.4.1
php/php 4.4.2
Published Jan 06, 2006
Tracked Since Feb 18, 2026