CVE-2006-4812: Code Injection

Published Oct 9, 2006
·
Updated

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/zendalloc.c).

Affected Software

38 affected components
PHP PHP=5.1.5
PHP PHP=5.1.2
PHP PHP=4.2.0
PHP PHP=5.1.1
PHP PHP=4.1.0
PHP PHP=5.1.6
PHP PHP=4.0.4
PHP PHP=4.0.5
PHP PHP=5.0-rc1
PHP PHP=5.0.5
PHP PHP=5.0.1
PHP PHP=5.1.4
PHP PHP=4.0.7-rc2
PHP PHP=5.0.4
PHP PHP=4.0.7-rc1
PHP PHP=4.2.2
PHP PHP=4.0.3-patch1
PHP PHP=4.0.7
PHP PHP=4.0.2
PHP PHP=5.0-rc3
PHP PHP=4.1.1
PHP PHP=5.0.3
PHP PHP=4.2.3
PHP PHP=5.1.0
PHP PHP=4.0.1-patch1
PHP PHP=4.0
PHP PHP=4.0.1-patch2
PHP PHP=4.0.6
PHP PHP=5.0-rc2
PHP PHP=4.1.2
PHP PHP=4.0.7-rc3
PHP PHP=5.1.3
PHP PHP=4.2.1
PHP PHP=4.0.1
PHP PHP=5.0.2
PHP PHP=4.2
PHP PHP=4.0.3
PHP PHP=5.0.0

Event History

Oct 9, 2006
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description
Oct 10, 2006
Data Sourced
via NVD·04:06 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2006-4812?

CVE-2006-4812 has been classified as a critical severity vulnerability due to its potential to allow remote code execution.

2

How do I fix CVE-2006-4812?

To fix CVE-2006-4812, it is recommended to update PHP to a version higher than 5.1.6 or 4.3.0.

3

What versions of PHP are affected by CVE-2006-4812?

CVE-2006-4812 affects PHP versions 5.1.6 and earlier, as well as version 4.2.3 and earlier.

4

What exploit techniques can be used with CVE-2006-4812?

Attacks exploiting CVE-2006-4812 typically involve providing a large input to the unserialize function that results in an integer overflow.

5

Who can be affected by CVE-2006-4812?

Any application using vulnerable versions of PHP that allow untrusted data to be passed to the unserialize function could be affected by CVE-2006-4812.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203