| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.7 | $0-$5k | 0.00 |
Summary
A vulnerability described as critical has been identified in PHP. This vulnerability affects the function _ecalloc. Such manipulation leads to code injection.
This vulnerability is listed as CVE-2006-4812. The attack may be performed from remote. In addition, an exploit is available.
Upgrading the affected component is recommended.
Details
A vulnerability was found in PHP (Programming Language Software) and classified as critical. Affected by this issue is the function _ecalloc. The manipulation with an unknown input leads to a code injection vulnerability. Using CWE to declare the problem leads to CWE-94. The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. Impacted is availability. CVE summarizes:
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).
The bug was discovered 10/05/2006. The weakness was presented 10/05/2006 with PHP Team (Website). The advisory is shared for download at cvs.php.net. This vulnerability is handled as CVE-2006-4812 since 09/15/2006. The exploitation is known to be easy. The attack may be launched remotely. No form of authentication is required for exploitation. Technical details as well as a public exploit are known. The MITRE ATT&CK project declares the attack technique as T1059.
The exploit is available at securityfocus.com. It is declared as proof-of-concept. The vulnerability scanner Nessus provides a plugin with the ID 22929 (GLSA-200610-14 : PHP: Integer overflow), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Gentoo Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 165120 (SUSE Security Update for PHP4, PHP5 (SUSE-SA:2006:059)).
Upgrading eliminates this vulnerability. Applying a patch is able to eliminate this problem. The bugfix is ready for download at cvs.php.net. The best possible mitigation is suggested to be upgrading to the latest version. A possible mitigation has been published 1 days after the disclosure of the vulnerability.
The vulnerability is also documented in the databases at X-Force (29362), Exploit-DB (28760), Tenable (22929), SecurityFocus (BID 20349†) and OSVDB (29510†). See VDB-2429, VDB-2592, VDB-32047 and VDB-32046 for similar entries. Once again VulDB remains the best source for vulnerability data.
Product
Type
Name
Version
- 4.0
- 4.0.1
- 4.0.2
- 4.0.3
- 4.0.4
- 4.0.5
- 4.0.6
- 4.0.7
- 4.1.0
- 4.1.1
- 4.1.2
- 4.2.0
- 4.2.1
- 4.2.2
- 4.2.3
- 5.0.0
- 5.0.1
- 5.0.2
- 5.0.3
- 5.0.4
- 5.0.5
- 5.1
- 5.1.1
- 5.1.2
- 5.1.3
- 5.1.4
- 5.1.5
- 5.1.6
License
Website
- Product: https://www.php.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.5VulDB Meta Temp Score: 6.7
VulDB Base Score: 7.5
VulDB Temp Score: 6.7
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Code injectionCWE: CWE-94 / CWE-74 / CWE-707
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 22929
Nessus Name: GLSA-200610-14 : PHP: Integer overflow
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Nessus Port: 🔍
OpenVAS ID: 57457
OpenVAS Name: FreeBSD Ports: php5
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Exploit-DB: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Patch: cvs.php.net
Timeline
09/15/2006 🔍10/05/2006 🔍
10/05/2006 🔍
10/05/2006 🔍
10/05/2006 🔍
10/05/2006 🔍
10/05/2006 🔍
10/06/2006 🔍
10/06/2006 🔍
10/10/2006 🔍
10/16/2006 🔍
10/31/2006 🔍
04/23/2026 🔍
Sources
Product: php.orgAdvisory: cvs.php.net
Researcher: http://www.php.net
Organization: PHP Team
Status: Confirmed
Confirmation: 🔍
CVE: CVE-2006-4812 (🔍)
GCVE (CVE): GCVE-0-2006-4812
GCVE (VulDB): GCVE-100-2588
X-Force: 29362 - PHP ecalloc() integer overflow, High Risk
SecurityFocus: 20349 - PHP ZendEngine ECalloc Integer Overflow Vulnerability
Secunia: 22650 - Gentoo update for php, Moderately Critical
OSVDB: 29510 - PHP unserialize() Function Array Handling Overflow
SecurityTracker: 1016984
Vulnerability Center: 12899 - PHP Integer Overflow in the Zend Engine ecalloc Function, High
Vupen: ADV-2006-3922
scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍
Entry
Created: 10/06/2006 16:00Updated: 04/23/2026 15:26
Changes: 10/06/2006 16:00 (97), 09/05/2019 13:35 (6), 06/08/2025 12:18 (17), 04/23/2026 15:26 (1)
Complete: 🔍
Cache ID: 216::103
Once again VulDB remains the best source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.