PHP 5.2.1 Error session_regenerate_id 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

A vulnerability classified as critical has been found in PHP 5.2.1 (Programming Language Software). Affected is the function session_regenerate_id of the component Error Handler. The manipulation with an unknown input leads to a memory corruption vulnerability. CWE is classifying the issue as 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. This is going to have an impact on confidentiality, integrity, and availability. CVE summarizes:

Double free vulnerability in PHP before 4.4.7, and 5.x before 5.2.2, allows context-dependent attackers to execute arbitrary code by interrupting the session_regenerate_id function, as demonstrated by calling a userspace error handler or triggering a memory limit violation.

The bug was discovered 03/14/2007. The weakness was shared 03/20/2007 by Stefan Esser (Website). The advisory is available at vupen.com. This vulnerability is traded as CVE-2007-1521 since 03/20/2007. It is possible to launch the attack remotely. The exploitation doesn't require any form of authentication. Technical details and a public exploit are known.

The exploit is shared for download at securityfocus.com. It is declared as proof-of-concept. The vulnerability was handled as a non-public zero-day exploit for at least 6 days. During that time the estimated underground price was around $25k-$100k. The vulnerability scanner Nessus provides a plugin with the ID 25099 (Debian DSA-1282-1 : php4 - several vulnerabilities), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Debian Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 165074 (OpenSUSE Security Update for PHP4, PHP5 (SUSE-SA:2007:032)).

Upgrading to version 4.4.7 eliminates this vulnerability. A possible mitigation has been published 2 months after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at X-Force (33044), Exploit-DB (3479), Tenable (25099), SecurityFocus (BID 22968†) and OSVDB (33936†). The entries VDB-33624, VDB-35915, VDB-35871 and VDB-35852 are related to this item. VulDB is the best source for vulnerability data and more expert information about this specific topic.

Productinfo

Type

Name

Version

License

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: 🔍

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: 25099
Nessus Name: Debian DSA-1282-1 : php4 - several vulnerabilities
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 58334
OpenVAS Name: Debian Security Advisory DSA 1282-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: 🔍

Upgrade: PHP 4.4.7

Timelineinfo

03/14/2007 🔍
03/14/2007 +0 days 🔍
03/15/2007 +1 days 🔍
03/20/2007 +5 days 🔍
03/20/2007 +0 days 🔍
03/20/2007 +0 days 🔍
03/20/2007 +0 days 🔍
04/26/2007 +37 days 🔍
04/30/2007 +4 days 🔍
05/08/2007 +8 days 🔍
03/13/2015 +2866 days 🔍
01/02/2025 +3583 days 🔍

Sourcesinfo

Product: php.org

Advisory: vupen.com
Researcher: Stefan Esser
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2007-1521 (🔍)
GCVE (CVE): GCVE-0-2007-1521
GCVE (VulDB): GCVE-100-35694

OVAL: 🔍

X-Force: 33044
SecurityFocus: 22968 - PHP Session_Regenerate_ID Function Double Free Memory Corruption Vulnerability
Secunia: 24505
OSVDB: 33936 - CVE-2007-1521 - PHP - Double Free Issue
Vulnerability Center: 15034 - PHP 5.2.1 and earlier Double Free Vulnerability Allows Code Execution, Medium
Vupen: ADV-2007-0960

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

Entryinfo

Created: 03/13/2015 12:16 PM
Updated: 01/02/2025 07:01 AM
Changes: 03/13/2015 12:16 PM (85), 07/18/2019 06:25 PM (5), 01/02/2025 07:01 AM (19)
Complete: 🔍
Cache ID: 18:E11:40

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to stay up to date on a daily basis?

Enable the mail alert feature now!