CVE-2006-4812

Summary

CVECVE-2006-4812
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2006-10-10 04:06:00 UTC
Updated2026-04-23 00:35:47 UTC
DescriptionInteger 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).

Risk And Classification

Primary CVSS: v2.0 10 from [email protected]

AV:N/AC:L/Au:N/C:C/I:C/A:C

Problem Types: CWE-94 | n/a

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Low
Authentication
None
Confidentiality
Complete
Integrity
Complete
Availability
Complete

AV:N/AC:L/Au:N/C:C/I:C/A:C

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Php Php 4.0 All All All
Application Php Php 4.0.1 All All All
Application Php Php 4.0.1 patch1 All All
Application Php Php 4.0.1 patch2 All All
Application Php Php 4.0.2 All All All
Application Php Php 4.0.3 All All All
Application Php Php 4.0.3 patch1 All All
Application Php Php 4.0.4 All All All
Application Php Php 4.0.5 All All All
Application Php Php 4.0.6 All All All
Application Php Php 4.0.7 All All All
Application Php Php 4.0.7 rc1 All All
Application Php Php 4.0.7 rc2 All All
Application Php Php 4.0.7 rc3 All All
Application Php Php 4.1.0 All All All
Application Php Php 4.1.1 All All All
Application Php Php 4.1.2 All All All
Application Php Php 4.2 All dev All
Application Php Php 4.2.0 All All All
Application Php Php 4.2.1 All All All
Application Php Php 4.2.2 All All All
Application Php Php 4.2.3 All All All
Application Php Php 5.0 rc1 All All
Application Php Php 5.0 rc2 All All
Application Php Php 5.0 rc3 All All
Application Php Php 5.0.0 All All All
Application Php Php 5.0.1 All All All
Application Php Php 5.0.2 All All All
Application Php Php 5.0.3 All All All
Application Php Php 5.0.4 All All All
Application Php Php 5.0.5 All All All
Application Php Php 5.1.0 All All All
Application Php Php 5.1.1 All All All
Application Php Php 5.1.2 All All All
Application Php Php 5.1.3 All All All
Application Php Php 5.1.4 All All All
Application Php Php 5.1.5 All All All
Application Php Php 5.1.6 All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
Hardened PHP - Hardened-PHP af854a3a-2127-422b-91ae-364da2661108 www.hardened-php.net Patch
rhn.redhat.com | Red Hat Support af854a3a-2127-422b-91ae-364da2661108 rhn.redhat.com Patch, Vendor Advisory
SUSE updates for php4 and php5 - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com
Webmail : Solution de messagerie professionnelle - OVHcloud- OVH af854a3a-2127-422b-91ae-364da2661108 www.vupen.com
Hardened-PHP Project - PHP Security - Advisory 09/2006 af854a3a-2127-422b-91ae-364da2661108 www.hardened-php.net Vendor Advisory
SecurityFocus af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com
SecurityFocus af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com
SecurityTracker.com Archives - PHP Heap Overflows and Other Bugs Let Users Execute Arbitrary Code or Cause Denial of Service Conditions af854a3a-2127-422b-91ae-364da2661108 securitytracker.com Patch
Gentoo Linux Documentation -- PHP: Integer overflow af854a3a-2127-422b-91ae-364da2661108 www.gentoo.org
rhn.redhat.com | Red Hat Support af854a3a-2127-422b-91ae-364da2661108 rhn.redhat.com
PHP "_ecalloc" Integer Overflow Vulnerability - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Patch, Vendor Advisory
PHP ZendEngine ECalloc Integer Overflow Vulnerability af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com
SecurityReason - PHP unserialize() Array Creation Integer Overflow af854a3a-2127-422b-91ae-364da2661108 securityreason.com
ASA-2006-234 (RHSA-2006-0708) af854a3a-2127-422b-91ae-364da2661108 support.avaya.com
Avaya Products PHP Multiple Vulnerabilites - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com
cvs.php.net/viewvc.cgi/ZendEngine2/zend_alloc.c af854a3a-2127-422b-91ae-364da2661108 cvs.php.net
Gentoo update for php - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com
IBM X-Force Exchange af854a3a-2127-422b-91ae-364da2661108 exchange.xforce.ibmcloud.com
Avaya Products PHP "_ecalloc" Integer Overflow Vulnerability - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com
Trustix Updates for Multiple Packages - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com
usn/usn-362-1 - Ubuntu: Linux for human beings af854a3a-2127-422b-91ae-364da2661108 www.ubuntu.com
ASA-2006-223 (RHSA-2006-0688) af854a3a-2127-422b-91ae-364da2661108 support.avaya.com
Ubuntu update for php4 and php5 - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com
www.trustix.org/errata/2006/0055 af854a3a-2127-422b-91ae-364da2661108 www.trustix.org
Red Hat update for php - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com
SuSE Security announcements: [suse-security-announce] SUSE Security Announcement: php4,php5 (SUSE-SA:2006:059) af854a3a-2127-422b-91ae-364da2661108 lists.suse.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

OrganizationPublishedContributorStatement
Red Hat2008-06-26Mark J CoxRed Hat Enterprise Linux 5 is not vulnerable to this issue as it contains a backported patch. This issue did not affect the versions of php as shipped with Red Hat Enterprise Linux 3, and 4.

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report