All vulnerabilities

Servers and applications

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

Severity
High 10.0
Published
10 Oct 2006
Last changed
16 Jun 2026
Added to UpHeron
14 Oct 2026
Exploit chance
21% in the next 30 daysHigher than 97% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
Code injection (CWE-94)
Attack
Over the network · No login needed
Attacker can
Read data · Change data · Take it down
CVSS vector
AV:N/AC:L/Au:N/C:C/I:C/A:C
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • Version 5.1.6
  • Version 5.1.5
  • Version 5.1.4
  • Version 5.1.3
All 37 release lines
  • Version 4.0
  • Version 4.0.1
  • Version 4.0.1-patch1
  • Version 4.0.1-patch2
  • Version 4.0.2
  • Version 4.0.3
  • Version 4.0.3-patch1
  • Version 4.0.4
  • Version 4.0.5
  • Version 4.0.6
  • Version 4.0.7-rc1
  • Version 4.0.7-rc2
  • Version 4.0.7-rc3
  • Version 4.0.7
  • Version 4.1.0
  • Version 4.1.1
  • Version 4.1.2
  • Version 4.2
  • Version 4.2.1
  • Version 4.2.2
  • Version 4.2.3
  • Version 5.0-rc1
  • Version 5.0-rc2
  • Version 5.0-rc3
  • Version 5.0.0
  • Version 5.0.1
  • Version 5.0.2
  • Version 5.0.3
  • Version 5.0.4
  • Version 5.0.5
  • Version 5.1.0
  • Version 5.1.1
  • Version 5.1.2
  • Version 5.1.3
  • Version 5.1.4
  • Version 5.1.5
  • Version 5.1.6

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2006-4812
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2006-4812