CVE-2006-4812
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).
Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
20.734%
chance of exploitation in the next 30 days
higher than 97.6% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
Exploit-DB: 1
Weakness
- CWE-94: Improper Control of Generation of Code
Timeline
- 2006-10-05First Exploit-DB entry (EDB-ID 28760)4 days before publication
- 2006-10-09Published by the CNA18:00 UTC
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 28760 | remote | php | 2006-10-05 | yes |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| php php | 4.0no fix listed4.0.1no fix listed4.0.2no fix listed4.0.3no fix listed4.0.4no fix listed(+25 more) | not listednot listednot listednot listednot listed |
References
- http://rhn.redhat.com/errata/RHSA-2006-0708.html
- http://secunia.com/advisories/22280
- http://securitytracker.com/id?1016984
- http://www.hardened-php.net/files/CVE-2006-4812.patch
- http://lists.suse.com/archive/suse-security-announce/2006-Oct/0002.html
- http://rhn.redhat.com/errata/RHSA-2006-0688.html
- http://www.gentoo.org/security/en/glsa/glsa-200610-14.xml
- http://www.hardened-php.net/advisory_092006.133.html
- http://www.securityfocus.com/archive/1/448953/100/0/threaded
- http://www.trustix.org/errata/2006/0055
- http://www.ubuntu.com/usn/usn-362-1
- http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_alloc.c?r1=1.161&r2=1.162
- http://secunia.com/advisories/22281
- http://secunia.com/advisories/22300
- http://secunia.com/advisories/22331
- http://secunia.com/advisories/22338
- http://secunia.com/advisories/22533
- http://secunia.com/advisories/22538
- http://secunia.com/advisories/22650
- http://securityreason.com/securityalert/1691
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2006-4812'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2006-4812'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2006-4812'curl 'https://api.contrastcyber.com/cve_products/CVE-2006-4812'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).