Skip to content
WatchlistCritical

CVE-2006-4812PHP Code Injection

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…

Published Sep 30, 2006 · Updated Aug 7, 2024

Key Facts

Patch immediately
  • CVE-2006-4812 is a critical-severity vulnerability (CVSS 10.0 v2) affecting PHP.
  • It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
  • EPSS estimates a 20% probability of exploitation in the next 30 days.
  • Fixed versions are available, including PHP 0:4.1.2-2.12, PHP 0:5.1.4-1.el4s1.4.
  • Brandefense priority: patch immediately, because public exploit code exists for a high-severity flaw.

Scores

CVSS v2

10.0

AV:N/AC:L/Au:N/C:C/I:C/A:C

EPSS (30-day exploit likelihood)

20%

Higher than 97.4% of all scored CVEs

Exploit maturity

Proof of concept

ATLAS score

41/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Proof of concept

Public exploit code

1

Proof-of-concept links

In-the-wild evidence

0

Reports of active use

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

Affected Products

40 affected entries in total
ProductAffected versionsFixed in
PHPPHP4.0, 4.0.1, 4.0.1-patch1, 4.0.1-patch2, 4.0.2, 4.0.3, 4.0.3-patch1, 4.0.40:4.1.2-2.12

Patched Releases

PHP

0:4.1.2-2.12, 0:5.1.4-1.el4s1.4

Timeline

  1. Publicly disclosed

    Sep 30, 2006

  2. Last updated

    Aug 7, 2024

Weakness Type

  • CWE-94 Improper Control of Generation of Code ('Code Injection')

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2006-4812 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

Figures as of Oct 19, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.