PHP up to 5.2.0 IMAP imap_mail_compose 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 described as critical has been identified in PHP up to 5.2.0. Impacted is the function imap_mail_compose of the component IMAP. The manipulation results in memory corruption. This vulnerability is cataloged as CVE-2007-1825. Furthermore, there is an exploit available. Upgrading the affected component is recommended.

Detailsinfo

A vulnerability classified as critical has been found in PHP up to 5.2.0 (Programming Language Software). Affected is the function imap_mail_compose of the component IMAP. 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:

Buffer overflow in the imap_mail_compose function in PHP 5 before 5.2.1, and PHP 4 before 4.4.5, allows remote attackers to execute arbitrary code via a long boundary string in a type.parameters field. NOTE: as of 20070411, it appears that this issue might be subsumed by CVE-2007-0906.3.

The bug was discovered 03/31/2007. The weakness was shared 04/02/2007 by Stefan Esser (Website). The advisory is shared for download at securityfocus.com. This vulnerability is traded as CVE-2007-1825 since 04/02/2007. The exploitability is told to be easy. 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. As 0-day the estimated underground price was around $25k-$100k. The vulnerability scanner Nessus provides a plugin with the ID 24673 (CentOS 3 / 4 : php (CESA-2007:0076)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family CentOS Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 12259 (PHP Prior to 5.2.1/4.4.5 Multiple Vulnerabilities).

Upgrading to version 5.2.1 eliminates this vulnerability. A possible mitigation has been published even before and not after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at X-Force (33534), Exploit-DB (29807), Tenable (24673), SecurityFocus (BID 23234†) and OSVDB (33957†). The entries VDB-2920, VDB-2911, VDB-2914 and VDB-2917 are related to this item. Once again VulDB remains the best source for vulnerability data.

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

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 24673
Nessus Name: CentOS 3 / 4 : php (CESA-2007:0076)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 100600
OpenVAS Name: PHP Imap_Mail_Compose() Function Buffer Overflow Vulnerability
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Exploit-DB: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: PHP 5.2.1

Timelineinfo

02/19/2007 🔍
02/21/2007 +2 days 🔍
03/31/2007 +38 days 🔍
03/31/2007 +0 days 🔍
03/31/2007 +0 days 🔍
04/02/2007 +2 days 🔍
04/02/2007 +0 days 🔍
04/02/2007 +0 days 🔍
04/10/2007 +8 days 🔍
03/13/2015 +2894 days 🔍
04/20/2025 +3691 days 🔍

Sourcesinfo

Product: php.org

Advisory: securityfocus.com
Researcher: Stefan Esser
Status: Confirmed

CVE: CVE-2007-1825 (🔍)
GCVE (CVE): GCVE-0-2007-1825
GCVE (VulDB): GCVE-100-35964

OVAL: 🔍

X-Force: 33534
SecurityFocus: 23234 - PHP Imap_Mail_Compose() Function Buffer Overflow Vulnerability
OSVDB: 33957 - CVE-2007-1825 - PHP - Buffer Overflow Issue
Vulnerability Center: 14780 - PHP Buffer Overflow in the imap_mail_compose Function, High

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

Entryinfo

Created: 03/13/2015 14:56
Updated: 04/20/2025 23:00
Changes: 03/13/2015 14:56 (78), 07/17/2019 13:00 (5), 04/20/2025 23:00 (19)
Complete: 🔍
Cache ID: 216::103

Once again VulDB remains the best source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to know what is going to be exploited?

We predict KEV entries!