PHP up to 5.0 zend_hash_init 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.
6.6$0-$5k0.00

Summaryinfo

A vulnerability has been found in PHP and classified as critical. The impacted element is the function zend_hash_init. The manipulation leads to memory corruption. This vulnerability is documented as CVE-2004-0594. Additionally, an exploit exists. The affected component should be upgraded.

Detailsinfo

A vulnerability was found in PHP (Programming Language Software). It has been rated as critical. This issue affects the function zend_hash_init. 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 confidentiality, integrity, and availability. The summary by CVE is:

The memory_limit functionality in PHP 4.x up to 4.3.7, and 5.x up to 5.0.0RC3, under certain conditions such as when register_globals is enabled, allows remote attackers to execute arbitrary code by triggering a memory_limit abort during execution of the zend_hash_init function and overwriting a HashTable destructor pointer before the initialization of key data structures is complete.

The bug was discovered 06/26/2004. The weakness was released 07/14/2004 by Stefan Esser (e-matters) (Website). The advisory is shared at security.e-matters.de. The identification of this vulnerability is CVE-2004-0594 since 06/23/2004. The exploitation is known to be difficult. 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.

A public exploit has been developed in ANSI C and been published 5 months after the advisory. The exploit is available at felinemenace.org. It is declared as proof-of-concept. The vulnerability was handled as a non-public zero-day exploit for at least 18 days. During that time the estimated underground price was around $25k-$100k. The vulnerability scanner Nessus provides a plugin with the ID 18773 (Slackware 10.0 / 8.1 / 9.0 / 9.1 / current : PHP (SSA:2004-202-01)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Slackware Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 12088 (PHP Strip_Tags() Function Bypass and Heap Overflow Vulnerability).

Upgrading eliminates this vulnerability. A possible mitigation has been published 7 days after the disclosure of the vulnerability. Attack attempts may be identified with Snort ID 16078. Furthermore it is possible to detect and prevent this kind of attack with TippingPoint and the filter 2947.

The vulnerability is also documented in the databases at X-Force (16693), Exploit-DB (660), Tenable (18773), SecurityFocus (BID 10725†) and OSVDB (7870†). Entry connected to this vulnerability is available at VDB-21942. If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Productinfo

Type

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 7.3
VulDB Meta Temp Score: 6.6

VulDB Base Score: 7.3
VulDB Temp Score: 6.6
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
Programming Language: 🔍
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 18773
Nessus Name: Slackware 10.0 / 8.1 / 9.0 / 9.1 / current : PHP (SSA:2004-202-01)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Nessus Port: 🔍

OpenVAS ID: 53221
OpenVAS Name: Debian Security Advisory DSA 531-1 (php4)
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: 🔍
Exploit Delay Time: 🔍
Snort ID: 16078
TippingPoint: 🔍

McAfee IPS: 🔍
McAfee IPS Version: 🔍

ISS Proventia IPS: 🔍
PaloAlto IPS: 🔍

Timelineinfo

06/23/2004 🔍
06/26/2004 +3 days 🔍
07/13/2004 +17 days 🔍
07/14/2004 +1 days 🔍
07/14/2004 +0 days 🔍
07/14/2004 +0 days 🔍
07/19/2004 +4 days 🔍
07/21/2004 +2 days 🔍
07/27/2004 +6 days 🔍
11/25/2004 +121 days 🔍
07/13/2005 +230 days 🔍
12/05/2014 +3432 days 🔍
06/19/2024 +3484 days 🔍

Sourcesinfo

Product: php.org

Advisory: security.e-matters.de
Researcher: Stefan Esser (e-matters)
Status: Not defined

CVE: CVE-2004-0594 (🔍)
GCVE (CVE): GCVE-0-2004-0594
GCVE (VulDB): GCVE-100-21941

OVAL: 🔍

X-Force: 16693
SecurityFocus: 10725 - PHP memory_limit Remote Code Execution Vulnerability
Secunia: 12064
OSVDB: 7870 - PHP memory_limit Function Arbitrary Code Execution
Vulnerability Center: 4779 - PHP Memory_limit Function Enables Remote Code Execution, Medium

scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍

Entryinfo

Created: 12/05/2014 10:48
Updated: 06/19/2024 06:44
Changes: 12/05/2014 10:48 (96), 05/23/2019 11:08 (2), 06/19/2024 06:44 (16)
Complete: 🔍
Cache ID: 216::103

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you know our Splunk app?

Download it now for free!