CVE-2006-4812
Integer overflow in PHP 5 up to 5.1.6 and 4 before 4.3.0 allows remote attackers to execute...
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).
Exploit likelihood
What each source reports
NVD Score used
10.0
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).
- Record
CVE-2006-4812- CVSS 2.0
- 10.0 High
AV:N/AC:L/Au:N/C:C/I:C/A:C - Weakness
- CWE-94
- Updated
- 2026-11-02
CVE List No score
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).
- Record
CVE-2006-4812- Updated
- 2026-11-02
EUVDEUVD-2006-4799 No score
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).
- Record
EUVD-2006-4799- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-2g5f-835h-7qjr No score
Integer overflow in PHP 5 up to 5.1.6 and 4 before 4.3.0 allows remote attackers to execute...
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).
- Record
GHSA-2g5f-835h-7qjr- Weakness
- CWE-94
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
phpRed Hat:rhel_application_stack:1 From an advisory covering 6 CVEs |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-bcmathRed Hat:rhel_application_stack:1 From an advisory covering 6 CVEs |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-dbaRed Hat:rhel_application_stack:1 From an advisory covering 6 CVEs |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-debuginfoRed Hat:rhel_application_stack:1 From an advisory covering 6 CVEs |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-develRed Hat:rhel_application_stack:1 From an advisory covering 6 CVEs |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-gdRed Hat:rhel_application_stack:1 From an advisory covering 6 CVEs |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-imapRed Hat:rhel_application_stack:1 From an advisory covering 6 CVEs |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-ldapRed Hat:rhel_application_stack:1 From an advisory covering 6 CVEs |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-mbstringRed Hat:rhel_application_stack:1 From an advisory covering 6 CVEs |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-mysqlRed Hat:rhel_application_stack:1 From an advisory covering 6 CVEs |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
Show 40 moreShow less
| Package | Affected | Fixed |
|---|---|---|
php-ncursesRed Hat:rhel_application_stack:1 From an advisory covering 6 CVEs |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-odbcRed Hat:rhel_application_stack:1 From an advisory covering 6 CVEs |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-pdoRed Hat:rhel_application_stack:1 From an advisory covering 6 CVEs |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-pgsqlRed Hat:rhel_application_stack:1 From an advisory covering 6 CVEs |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-snmpRed Hat:rhel_application_stack:1 From an advisory covering 6 CVEs |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-soapRed Hat:rhel_application_stack:1 From an advisory covering 6 CVEs |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-xmlRed Hat:rhel_application_stack:1 From an advisory covering 6 CVEs |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-xmlrpcRed Hat:rhel_application_stack:1 From an advisory covering 6 CVEs |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
phpRed Hat:enterprise_linux:2.1::as |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-develRed Hat:enterprise_linux:2.1::as |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-imapRed Hat:enterprise_linux:2.1::as |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-ldapRed Hat:enterprise_linux:2.1::as |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-manualRed Hat:enterprise_linux:2.1::as |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-mysqlRed Hat:enterprise_linux:2.1::as |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-odbcRed Hat:enterprise_linux:2.1::as |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-pgsqlRed Hat:enterprise_linux:2.1::as |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
phpRed Hat:enterprise_linux:2.1::aw |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-develRed Hat:enterprise_linux:2.1::aw |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-imapRed Hat:enterprise_linux:2.1::aw |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-ldapRed Hat:enterprise_linux:2.1::aw |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-manualRed Hat:enterprise_linux:2.1::aw |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-mysqlRed Hat:enterprise_linux:2.1::aw |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-odbcRed Hat:enterprise_linux:2.1::aw |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-pgsqlRed Hat:enterprise_linux:2.1::aw |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
phpRed Hat:enterprise_linux:2.1::es |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-develRed Hat:enterprise_linux:2.1::es |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-imapRed Hat:enterprise_linux:2.1::es |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-ldapRed Hat:enterprise_linux:2.1::es |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-manualRed Hat:enterprise_linux:2.1::es |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-mysqlRed Hat:enterprise_linux:2.1::es |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-odbcRed Hat:enterprise_linux:2.1::es |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-pgsqlRed Hat:enterprise_linux:2.1::es |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
phpRed Hat:enterprise_linux:2.1::ws |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-develRed Hat:enterprise_linux:2.1::ws |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-imapRed Hat:enterprise_linux:2.1::ws |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-ldapRed Hat:enterprise_linux:2.1::ws |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-manualRed Hat:enterprise_linux:2.1::ws |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-mysqlRed Hat:enterprise_linux:2.1::ws |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-odbcRed Hat:enterprise_linux:2.1::ws |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
php-pgsqlRed Hat:enterprise_linux:2.1::ws |
before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | PHP 3 < 5 - ZendEngine ECalloc Integer Overflow | 2006-10-05 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, Exploit-DB, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2006-4812 is a high vulnerability (CVSS 10.0) in Php, published October 9, 2006. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 20.7%, the 97th percentile. Fixed in php 0:4.1.2-2.12.
References
secunia.com/advisories/22300
secunia.com/advisories/22650
securitytracker.com/id?1016984
secunia.com/advisories/22281
secunia.com/advisories/22338
securityfocus.com/bid/20349
Show 53 moreShow less
securityfocus.com/archive/1/448953/100/0/threaded
gentoo.org/security/en/glsa/glsa-200610-14.xml
trustix.org/errata/2006/0055
rhn.redhat.com/errata/RHSA-2006-0688.html
ubuntu.com/usn/usn-362-1
rhn.redhat.com/errata/RHSA-2006-0708.html
secunia.com/advisories/22538
securityreason.com/securityalert/1691
hardened-php.net/advisory_092006.133.html
secunia.com/advisories/22533
hardened-php.net/files/CVE-2006-4812.patch
support.avaya.com/elmodocs2/security/ASA-2006-223.htm
exchange.xforce.ibmcloud.com/vulnerabilities/29362
cvs.php.net/viewvc.cgi/ZendEngine2/zend_alloc.c?r1=1.161&r2=1.162
lists.suse.com/archive/suse-security-announce/2006-Oct/0002.html
securityfocus.com/archive/1/448014/100/0/threaded
secunia.com/advisories/22331
vupen.com/english/advisories/2006/3922
secunia.com/advisories/22280
support.avaya.com/elmodocs2/security/ASA-2006-234.htm
nvd.nist.gov/vuln/detail/CVE-2006-4812
github.com/advisories/GHSA-2g5f-835h-7qjr
access.redhat.com/errata/RHSA-2006:0688
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=207090
bugzilla.redhat.com/show_bug.cgi?id=209408
security.access.redhat.com/data/csaf/v2/advisories/2006/rhsa-2006_0688.json
access.redhat.com/security/cve/CVE-2006-4020
bugzilla.redhat.com/show_bug.cgi?id=1618174
cve.org/CVERecord?id=CVE-2006-4020
nvd.nist.gov/vuln/detail/CVE-2006-4020
access.redhat.com/security/cve/CVE-2006-4482
bugzilla.redhat.com/show_bug.cgi?id=1618186
cve.org/CVERecord?id=CVE-2006-4482
nvd.nist.gov/vuln/detail/CVE-2006-4482
access.redhat.com/security/cve/CVE-2006-4484
bugzilla.redhat.com/show_bug.cgi?id=431568
cve.org/CVERecord?id=CVE-2006-4484
nvd.nist.gov/vuln/detail/CVE-2006-4484
access.redhat.com/security/cve/CVE-2006-4485
bugzilla.redhat.com/show_bug.cgi?id=1618187
cve.org/CVERecord?id=CVE-2006-4485
nvd.nist.gov/vuln/detail/CVE-2006-4485
access.redhat.com/security/cve/CVE-2006-4486
bugzilla.redhat.com/show_bug.cgi?id=1618188
cve.org/CVERecord?id=CVE-2006-4486
nvd.nist.gov/vuln/detail/CVE-2006-4486
access.redhat.com/security/cve/CVE-2006-4812
bugzilla.redhat.com/show_bug.cgi?id=1618205
cve.org/CVERecord?id=CVE-2006-4812
access.redhat.com/errata/RHSA-2006:0708
bugzilla.redhat.com/show_bug.cgi?id=209409
security.access.redhat.com/data/csaf/v2/advisories/2006/rhsa-2006_0708.json