Stack-based buffer overflow in PHP - CVE-2010-3064

 

Stack-based buffer overflow in PHP - CVE-2010-3064

Published: December 7, 2010 / Updated: June 8, 2025


Vulnerability identifier: #VU110291
CSH Severity: Medium
CVSS v4: []
CVE-ID: CVE-2010-3064
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the php_mysqlnd_auth_write function in the Mysqlnd extension when processing a long (1) username or (2) database name argument to the (a) mysql_connect or (b) mysqli_connect function. A remote unauthenticated attacker can trigger stack-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

PHP
Gentoo Linux
dev-lang/php

How to mitigate CVE-2010-3064

Install update from vendor's website.

PHP - update to 5.3.3
dev-lang/php - update to 5.3.8

External References

Related Security Bulletins