CVE-2006-4812: PHP

High severity, CVSS 10.0. EPSS: 20.4% chance of exploitation in the next 30 days.

Integer overflow in PHP 5 up to 5.1.6 and 4 before 4.3.0 allows remote attackers to execute arbitrary code via an argument to the unserialize PHP function with a large value for the number of array elements, which triggers the overflow in the Zend Engine ecalloc function (Zend/zend_alloc.c).

Affected products

  • PHP PHP: version 4.0 only; version 4.0.1 only; version 4.0.2 only; version 4.0.3 only; version 4.0.4 only; version 4.0.5 only; …

Published 2006-10-10. Last modified 2026-06-16.