CVE-2006-4812: 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…
Noroxi assessment
Priority: Plan (action score 46/100)
- Public proof-of-concept code exists (Exploit-DB); there is no record of exploitation in the wild.
- Probability of exploitation in the next 30 days: 20.7% (FIRST EPSS); higher than 97.5% of all records.
- No special conditions are required; it is repeatable.
- Fixed version: php (Red Hat:enterprise_linux:2.1::as) 0:4.1.2-2.12; php-devel (Red Hat:enterprise_linux:2.1::as) 0:4.1.2-2.12; php-imap (Red Hat:enterprise_linux:2.1::as) 0:4.1.2-2.12.
Add it to your regular patch cycle. Upgrade to php (Red Hat:enterprise_linux:2.1::as) 0:4.1.2-2.12; php-devel (Red Hat:enterprise_linux:2.1::as) 0:4.1.2-2.12; php-imap (Red Hat:enterprise_linux:2.1::as) 0:4.1.2-2.12 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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).
- Published
- Oct 10, 2006
- Updated
- Jun 16, 2026
- EPSS
- 20.7% · 97th percentile
- CWE
- CWE-94
Report tools
Action score
46
Add it to your regular patch cycle.
- CVSS
- 40 / 40 · 10.0 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 6 / 30 · 20.7%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- Proof of concept exists, no weaponized module
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| php | php | cpe:2.3:a:php:php |
Using php? Add it to your stack and be the first to know about CVEs like this one. (PHP)
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- php php4.0
- php php4.0.1
- php php4.0.2
- php php4.0.3
- php php4.0.4
- php php4.0.5
- php php4.0.6
- php php4.0.7
+12 more rows
- php php4.1.0
- php php4.1.1
- php php4.1.2
- php php4.2
- php php4.2.0
- php php4.2.1
- php php4.2.2
- php php4.2.3
- php php5.0
- php php5.0.0
- php php5.0.1
- php php5.0.2
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Red Hat:enterprise_linux:2.1::as | php | before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
| Red Hat:enterprise_linux:2.1::as | php-devel | before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
| Red Hat:enterprise_linux:2.1::as | php-imap | before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
| Red Hat:enterprise_linux:2.1::as | php-ldap | before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
| Red Hat:enterprise_linux:2.1::as | php-manual | before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
| Red Hat:enterprise_linux:2.1::as | php-mysql | before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
| Red Hat:enterprise_linux:2.1::as | php-odbc | before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
| Red Hat:enterprise_linux:2.1::as | php-pgsql | before 0:4.1.2-2.12 | 0:4.1.2-2.12 |
| Red Hat:rhel_application_stack:1 | php | before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
| Red Hat:rhel_application_stack:1 | php-bcmath | before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
| Red Hat:rhel_application_stack:1 | php-dba | before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
| Red Hat:rhel_application_stack:1 | php-debuginfo | before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
| Red Hat:rhel_application_stack:1 | php-devel | before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
| Red Hat:rhel_application_stack:1 | php-gd | before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
| Red Hat:rhel_application_stack:1 | php-imap | before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
| Red Hat:rhel_application_stack:1 | php-ldap | before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
| Red Hat:rhel_application_stack:1 | php-mbstring | before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
| Red Hat:rhel_application_stack:1 | php-mysql | before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
| Red Hat:rhel_application_stack:1 | php-ncurses | before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
| Red Hat:rhel_application_stack:1 | php-odbc | before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
| Red Hat:rhel_application_stack:1 | php-pdo | before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
| Red Hat:rhel_application_stack:1 | php-pgsql | before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
| Red Hat:rhel_application_stack:1 | php-snmp | before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
| Red Hat:rhel_application_stack:1 | php-soap | before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
+2
Same product
php: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-4577Argument Injection in PHP-CGIKEV99Now
- CVE-2019-11043Underflow in PHP-FPM can lead to RCEKEV99Now
- CVE-2012-1823sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle…KEV99Now
Published before and after this one in the same product
- ← EarlierCVE-2006-4486Aug 31, 2006 · Integer overflow in memory allocation routines in PHP before 5.1.6, when running on a 64-bit system, allows context-dependent attackers to…11Monitor
- ← EarlierCVE-2006-4625Sep 12, 2006 · PHP 4.x up to 4.4.4 and PHP 5 up to 5.1.6 allows local users to bypass certain Apache HTTP Server httpd.conf options, such as safe_mode and…14Monitor
- Later →CVE-2006-5178Oct 10, 2006 · Race condition in the symlink function in PHP 5.1.6 and earlier allows local users to bypass the open_basedir restriction by using a…24Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| red hat:php | 0:5.1.4-1.el4s1.4 · Red Hat:rhel_application_stack:1 | Package registry (OSV) |
| red hat:php-bcmath | 0:5.1.4-1.el4s1.4 · Red Hat:rhel_application_stack:1 | Package registry (OSV) |
| red hat:php-dba | 0:5.1.4-1.el4s1.4 · Red Hat:rhel_application_stack:1 | Package registry (OSV) |
| red hat:php-debuginfo | 0:5.1.4-1.el4s1.4 · Red Hat:rhel_application_stack:1 | Package registry (OSV) |
| red hat:php-devel | 0:5.1.4-1.el4s1.4 · Red Hat:rhel_application_stack:1 | Package registry (OSV) |
| red hat:php-gd | 0:5.1.4-1.el4s1.4 · Red Hat:rhel_application_stack:1 | Package registry (OSV) |
| red hat:php-imap | 0:5.1.4-1.el4s1.4 · Red Hat:rhel_application_stack:1 | Package registry (OSV) |
| red hat:php-ldap | 0:5.1.4-1.el4s1.4 · Red Hat:rhel_application_stack:1 | Package registry (OSV) |
| red hat:php-mbstring | 0:5.1.4-1.el4s1.4 · Red Hat:rhel_application_stack:1 | Package registry (OSV) |
| red hat:php-mysql | 0:5.1.4-1.el4s1.4 · Red Hat:rhel_application_stack:1 | Package registry (OSV) |
| red hat:php-ncurses | 0:5.1.4-1.el4s1.4 · Red Hat:rhel_application_stack:1 | Package registry (OSV) |
| red hat:php-odbc | 0:5.1.4-1.el4s1.4 · Red Hat:rhel_application_stack:1 | Package registry (OSV) |
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Exploit-DB entry ×1
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Exploit-DB entry | remote | 2006-10-05 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- First PoC-5 d
- Published
- TodayNov 16, 2026+7342 d
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Not on record for this CVE: researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- C · data can be read
- Integrity
- C · data or configuration can be modified
- Availability
- C · the service can be disrupted
- Attack complexity
- Low
- Confidentiality impact
- C
- Integrity impact
- C
- Availability impact
- C
Weakness class (CWE)
CWE-94 · Improper Control of Generation of Code ('Code Injection')CVSS vector
AV:N/AC:L/Au:N/C:C/I:C/A:C
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (19 more)Show less
- lists.suse.com/archive/suse-security-announce/2006-Oct/0002.html
- rhn.redhat.com/errata/RHSA-2006-0688.html
- rhn.redhat.com/errata/RHSA-2006-0708.html
- secunia.com/advisories/22280
- secunia.com/advisories/22281
- secunia.com/advisories/22300
- secunia.com/advisories/22331
- secunia.com/advisories/22338
- secunia.com/advisories/22533
- secunia.com/advisories/22538
- secunia.com/advisories/22650
- securityreason.com/securityalert/1691
- securitytracker.com/id?1016984
- support.avaya.com/elmodocs2/security/ASA-2006-223.htm
- support.avaya.com/elmodocs2/security/ASA-2006-234.htm
- www.gentoo.org/security/en/glsa/glsa-200610-14.xml
- www.hardened-php.net/advisory_092006.133.html
- www.hardened-php.net/files/CVE-2006-4812.patch
- www.securityfocus.com/archive/1/448014/100/0/threaded
Vendor advisories and official records. Exploit/PoC links are deliberately left out.