Heap-based buffer overflow in PHP - CVE-2007-4661

 

Heap-based buffer overflow in PHP - CVE-2007-4661

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


Vulnerability identifier: #VU110372
CSH Severity: Medium
CVSS v4.0:
CVE-ID: CVE-2007-4661
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 within the chunk_split function in string.c in PHP 5.2.3 does not properly calculate the needed buffer size due to precision loss when performing integer arithmetic with floating point numbers, which. A remote attacker can trigger a 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-2007-4661

Install update from vendor's website.

Sources