PHP 5.2.x gdImageCreate/gdImageCreateTrueColor memory corruption
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.6 | $0-$5k | 0.00 |
Summary
A vulnerability was found in PHP 5.2.x. It has been rated as problematic. Impacted is the function gdImageCreate/gdImageCreateTrueColor. This manipulation causes memory corruption.
This vulnerability appears as CVE-2007-1285. In addition, an exploit is available.
Upgrading the affected component is advised.
Details
A vulnerability was found in PHP 5.2.x (Programming Language Software). It has been declared as critical. Affected by this vulnerability is the function gdImageCreate/gdImageCreateTrueColor. The manipulation with an unknown input leads to a memory corruption vulnerability. The CWE definition for the vulnerability is CWE-119. The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer. As an impact it is known to affect confidentiality, integrity, and availability. The summary by CVE is:
The Zend Engine in PHP 4.x before 4.4.7, and 5.x before 5.2.2, allows remote attackers to cause a denial of service (stack exhaustion and PHP crash) via deeply nested arrays, which trigger deep recursion in the variable destruction routines.
The weakness was presented 08/31/2007 by Matthias Bengtsson Philipp Olausson (Website). It is possible to read the advisory at php.net. This vulnerability is known as CVE-2007-1285 since 03/06/2007. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details and also a public exploit are known.
After even before and not, there has been an exploit disclosed. It is possible to download the exploit at exploit-db.com. It is declared as proof-of-concept. The vulnerability was handled as a non-public zero-day exploit for at least 5 days. During that time the estimated underground price was around $25k-$100k. The vulnerability scanner Nessus provides a plugin with the ID 28372 (Ubuntu 6.06 LTS / 6.10 / 7.04 / 7.10 : php5 vulnerabilities (USN-549-1)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Ubuntu Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 156177 (Oracle Enterprise Linux Update for PHP (ELSA-2007-0155)).
Upgrading eliminates this vulnerability. Applying a patch is able to eliminate this problem. The bugfix is ready for download at php.net. The best possible mitigation is suggested to be upgrading to the latest version. A possible mitigation has been published 4 months after the disclosure of the vulnerability.
The vulnerability is also documented in the databases at Exploit-DB (29692), Tenable (28372), SecurityFocus (BID 22764†), OSVDB (32769†) and Secunia (SA26642†). See VDB-2887, VDB-3288, VDB-3281 and VDB-3287 for similar entries. Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Product
Type
Name
Version
License
Website
- Product: https://www.php.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.3VulDB Meta Temp Score: 6.6
VulDB Base Score: 7.3
VulDB Temp Score: 6.6
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: Memory corruptionCWE: CWE-119
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: 28372
Nessus Name: Ubuntu 6.06 LTS / 6.10 / 7.04 / 7.10 : php5 vulnerabilities (USN-549-1)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Nessus Port: 🔍
OpenVAS ID: 60386
OpenVAS Name: Slackware Advisory SSA:2008-045-03 php
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: php.net
Timeline
03/01/2007 🔍03/01/2007 🔍
03/06/2007 🔍
03/06/2007 🔍
03/09/2007 🔍
03/14/2007 🔍
08/31/2007 🔍
09/03/2007 🔍
11/29/2007 🔍
11/30/2007 🔍
04/07/2025 🔍
Sources
Product: php.orgAdvisory: php.net
Researcher: Matthias Bengtsson Philipp Olausson
Status: Confirmed
Confirmation: 🔍
CVE: CVE-2007-1285 (🔍)
GCVE (CVE): GCVE-0-2007-1285
GCVE (VulDB): GCVE-100-3283
OVAL: 🔍
SecurityFocus: 22764 - PHP ZendEngine Variable Destruction Remote Denial of Service Vulnerability
Secunia: 26642 - PHP Multiple Vulnerabilities, Moderately Critical
OSVDB: 32769 - PHP Zend Engine Variable Destruction Deep Recursion Overflow
SecurityTracker: 1017771
scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍
Entry
Created: 09/03/2007 18:13Updated: 04/07/2025 00:44
Changes: 09/03/2007 18:13 (83), 04/24/2019 11:38 (8), 04/07/2025 00:44 (27)
Complete: 🔍
Cache ID: 216::103
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.