Heap-based buffer overflow in PHP - CVE-2006-1990

 

Heap-based buffer overflow in PHP - CVE-2006-1990

Published: October 18, 2018 / Updated: June 8, 2025


Vulnerability identifier: #VU110484
CSH Severity: Medium
CVSS v4.0:
CVE-ID: CVE-2006-1990
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: PHP Group
Affected software:
PHP

Detailed vulnerability description

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

The vulnerability exists due to a boundary error when processing data within the wordwrap function in string.c in PHP 4.4.2 and 5.1.2 might allow context-dependent attackers to execute arbitrary code via certain long arguments that cause a small buffer to be allocated, which triggers a heap-based buffer overflow in a memcpy function call. A remote attacker can pass a specially crafted file to the affected application, trigger heap-based buffer overflow and execute arbitrary code on the target system.

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


How to mitigate CVE-2006-1990

Install update from vendor's website.

Sources