PHP 5.2.x money_format memory corruption

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
4.8$0-$5k0.00

Summaryinfo

A vulnerability was found in PHP 5.2.x. It has been classified as problematic. This vulnerability affects the function money_format. The manipulation leads to memory corruption. This vulnerability is documented as CVE-2007-1285. Additionally, an exploit exists. Upgrading the affected component is recommended.

Detailsinfo

A vulnerability was found in PHP 5.2.x (Programming Language Software) and classified as problematic. This issue affects the function money_format. The manipulation with an unknown input leads to a memory corruption vulnerability. Using CWE to declare the problem leads to 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. Impacted is 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 released 08/31/2007 by Stanislav Malyshev (Website). The advisory is shared at php.net. The identification of this vulnerability is CVE-2007-1285 since 03/06/2007. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. Technical details as well as a public exploit are known.

After even before and not, there has been an exploit disclosed. The exploit is available 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 $5k-$25k. 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 (SA28936†). Entries connected to this vulnerability are available at VDB-3288, VDB-3287, VDB-3284 and VDB-3286. Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Productinfo

Type

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 5.3
VulDB Meta Temp Score: 4.8

VulDB Base Score: 5.3
VulDB Temp Score: 4.8
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Memory corruption
CWE: 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-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

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 Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Patch: php.net

Timelineinfo

03/01/2007 🔍
03/01/2007 +0 days 🔍
03/06/2007 +5 days 🔍
03/06/2007 +0 days 🔍
03/09/2007 +3 days 🔍
03/14/2007 +4 days 🔍
08/31/2007 +170 days 🔍
09/03/2007 +3 days 🔍
11/29/2007 +87 days 🔍
11/30/2007 +1 days 🔍
02/15/2008 +77 days 🔍
04/06/2025 +6260 days 🔍

Sourcesinfo

Product: php.org

Advisory: php.net
Researcher: Stanislav Malyshev
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2007-1285 (🔍)
GCVE (CVE): GCVE-0-2007-1285
GCVE (VulDB): GCVE-100-3281

OVAL: 🔍

SecurityFocus: 22764 - PHP ZendEngine Variable Destruction Remote Denial of Service Vulnerability
Secunia: 28936 - Slackware update for php4, 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: 🔍

Entryinfo

Created: 09/03/2007 18:13
Updated: 04/06/2025 04:14
Changes: 09/03/2007 18:13 (91), 04/28/2019 06:34 (1), 04/06/2025 04:14 (27)
Complete: 🔍
Cache ID: 216:345:103

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you want to use VulDB in your project?

Use the official API to access entries easily!