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: []
CVE-ID: CVE-2006-1990
CWE-ID: CWE-122
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 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.


Affected software

PHP
Gentoo Linux
dev-lang/php

How to mitigate CVE-2006-1990

Install update from vendor's website.

PHP - addressed in versions 4.4.3, 5.1.3
dev-lang/php - addressed in versions 5.1.4-r4, 5.1.4-r6

External References

Related Security Bulletins