CWE
94 190
Advisory Published
Updated

CVE-2006-4812: Code Injection

First published: Mon Oct 09 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/zend_alloc.c).

Credit: secalert@redhat.com

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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

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

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

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

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

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203