Integer overflow in PHP - CVE-2010-1866
Published: February 8, 2024 / Updated: June 8, 2025
Vulnerability details
The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.
The dechunk filter in PHP 5.3 through 5.3.2, when decoding an HTTP chunked encoding stream, allows context-dependent attackers to cause a denial of service (crash) and possibly trigger memory corruption via a negative chunk size, which bypasses a signed comparison, related to an integer overflow in the chunk size decoder.
Affected software
Gentoo Linux
Ubuntu
php5-cli (Ubuntu package)
php5-cgi (Ubuntu package)
libapache2-mod-php5 (Ubuntu package)
dev-lang/php
How to mitigate CVE-2010-1866
php5-cli (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.19, 5.2.4-2ubuntu5.12, 5.2.6.dfsg.1-3ubuntu4.6, 5.2.10.dfsg.1-2ubuntu6.5, 5.3.2-1ubuntu4.5
php5-cgi (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.19, 5.2.4-2ubuntu5.12, 5.2.6.dfsg.1-3ubuntu4.6, 5.2.10.dfsg.1-2ubuntu6.5, 5.3.2-1ubuntu4.5
libapache2-mod-php5 (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.19, 5.2.4-2ubuntu5.12, 5.2.6.dfsg.1-3ubuntu4.6, 5.2.10.dfsg.1-2ubuntu6.5, 5.3.2-1ubuntu4.5
dev-lang/php - update to 5.3.8