CVE-2006-4812
What it is
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).
At a glance
- Exploitability
- Can be exploited over the network without logging in. High risk of data exposure, data tampering, service disruption.
- Exploit odds
- 20.7% chance of exploitation in the next 30 days (EPSS). Higher than most.
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- ReservedThe CVE id was reserved by its CNA
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 20.7% in the next 30 days (EPSS).
- Severity: 10.0 HIGH (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 20.7% · EPSS, next 30 days
- Weakness
- CWE-94 · Code injection
- Record status
- Modified
Affected
- PHP 4.0
- PHP 4.0.1
- PHP 4.0.2
- PHP 4.0.3
- PHP 4.0.4
- PHP 4.0.5
- PHP 4.0.6
- PHP 4.0.7
Attack profile CVSS 2.0 · 10.0
- Attack vector
- Network
- Complexity
- Low
- Authentication
- None
- Confidentiality
- Complete
- Integrity
- Complete
- Availability
- Complete
Raw vector
AV:N/AC:L/Au:N/C:C/I:C/A:C
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2006-4812.md and follow it. Check whether this project is affected by CVE-2006-4812. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- http://rhn.redhat.com/errata/RHSA-2006-0708.html
- http://secunia.com/advisories/22280
- http://securitytracker.com/id?1016984
- http://www.hardened-php.net/advisory_092006.133.html
- http://www.hardened-php.net/files/CVE-2006-4812.patch
- http://rhn.redhat.com/errata/RHSA-2006-0708.html
- http://secunia.com/advisories/22280
- http://securitytracker.com/id?1016984
- http://www.hardened-php.net/advisory_092006.133.html
- http://www.hardened-php.net/files/CVE-2006-4812.patch
References
- http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_alloc.c?r1=1.161&r2=1.162
- http://lists.suse.com/archive/suse-security-announce/2006-Oct/0002.html
- http://rhn.redhat.com/errata/RHSA-2006-0688.html
- http://rhn.redhat.com/errata/RHSA-2006-0708.html
- http://secunia.com/advisories/22280
- 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
- http://securitytracker.com/id?1016984
- http://support.avaya.com/elmodocs2/security/ASA-2006-223.htm
- http://support.avaya.com/elmodocs2/security/ASA-2006-234.htm
- http://www.gentoo.org/security/en/glsa/glsa-200610-14.xml
- http://www.hardened-php.net/advisory_092006.133.html
- http://www.hardened-php.net/files/CVE-2006-4812.patch
- http://www.securityfocus.com/archive/1/448014/100/0/threaded
- http://www.securityfocus.com/archive/1/448953/100/0/threaded
- http://www.securityfocus.com/bid/20349
- http://www.trustix.org/errata/2006/0055
- http://www.ubuntu.com/usn/usn-362-1
- http://www.vupen.com/english/advisories/2006/3922