CVE-2006-4812

PHP 4 < 4.3.0 and 5 <= 5.1.6 - Remote Code Execution via Unserialize Integer Overflow

Title source: manual
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2006-4812. PoCs published by anonymous.

AI-analyzed exploit summary This exploit demonstrates an integer overflow vulnerability in PHP's unserialize function, leading to a heap overflow in zend_hash_init(). The PoC triggers a segmentation fault and discusses potential exploitation via zend_hash_del_index_or_key.

Description

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

Exploits (1)

exploitdb WORKING POC VERIFIED
by anonymous · phpremotephp
https://www.exploit-db.com/exploits/28760

This exploit demonstrates an integer overflow vulnerability in PHP's unserialize function, leading to a heap overflow in zend_hash_init(). The PoC triggers a segmentation fault and discusses potential exploitation via zend_hash_del_index_or_key.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Theoretical
Target: PHP (versions affected by CVE-2006-4812)
No auth needed
Prerequisites: PHP installation vulnerable to CVE-2006-4812
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (26)

Core 26
Core References
Patch vdb-entry x_refsource_sectrack
http://securitytracker.com/id?1016984
Third Party Advisory, VDB Entry vendor-advisory x_refsource_openpkg
http://www.securityfocus.com/archive/1/448953/100/0/threaded
Third Party Advisory vendor-advisory x_refsource_gentoo
http://www.gentoo.org/security/en/glsa/glsa-200610-14.xml
Vendor Advisory x_refsource_misc
http://www.hardened-php.net/advisory_092006.133.html
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/29362
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/448014/100/0/threaded
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/22300
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/22650
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/22281
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/22338
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/20349
Vendor Advisory vendor-advisory x_refsource_trustix
http://www.trustix.org/errata/2006/0055
Vendor Advisory vendor-advisory x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2006-0688.html
Vendor Advisory vendor-advisory x_refsource_ubuntu
http://www.ubuntu.com/usn/usn-362-1
Patch, Vendor Advisory vendor-advisory x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2006-0708.html
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/22538
Third Party Advisory third-party-advisory x_refsource_sreason
http://securityreason.com/securityalert/1691
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/22533
Various Sources vendor-advisory x_refsource_suse
http://lists.suse.com/archive/suse-security-announce/2006-Oct/0002.html
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/22331
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2006/3922
Patch, Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/22280

Scores

EPSS 0.1501
EPSS Percentile 96.3%

Details

CWE
CWE-94
Status published
Products (30)
php/php 4.0
php/php 4.0.1 (3 CPE variants)
php/php 4.0.2
php/php 4.0.3 (2 CPE variants)
php/php 4.0.4
php/php 4.0.5
php/php 4.0.6
php/php 4.0.7 (4 CPE variants)
php/php 4.1.0
php/php 4.1.1
... and 20 more
Published Oct 10, 2006
Tracked Since Feb 18, 2026