CVE-2006-4812: 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 unseria…

CVE-2006-4812 affects 9 listed versions of PHP in the Dawnsentry catalogue.

10.0CVSS critical
None knownexploitation
21%EPSS (next 30 days)
10 October 2006published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

PHP

9 of 250 listed versions are affected. No fixed release is named. The newest release, 8.6.0, is not affected.

5.1.6 5.1.5 5.1.4 5.1.3 5.1.2 5.1.1 5.1.0 5.0.5 5.0.4

What it is

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).

AV:N/AC:L/Au:N/C:C/I:C/A:C (NVD)

Published by Red Hat on 10 October 2006. Last changed 16 June 2026.

Sources

Check one version you run: look CVE-2006-4812 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.