PHP up to 4.3.9/5.0.2 exif_read_data 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.
9.5$0-$5k0.00

Summaryinfo

A vulnerability classified as critical has been found in PHP up to 4.3.9/5.0.2. Affected by this issue is the function exif_read_data. Performing a manipulation results in memory corruption. This vulnerability was named CVE-2004-1065. There is no available exploit. It is recommended to upgrade the affected component.

Detailsinfo

A vulnerability, which was classified as very critical, was found in PHP up to 4.3.9/5.0.2 (Programming Language Software). This affects the function exif_read_data. 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. The summary by CVE is:

Buffer overflow in the exif_read_data function in PHP before 4.3.10 and PHP 5.x up to 5.0.2 allows remote attackers to execute arbitrary code via a long section name in an image file.

The bug was discovered 12/15/2004. The weakness was presented 01/10/2005 (Website). The advisory is shared at redhat.com. This vulnerability is uniquely identified as CVE-2004-1065 since 11/23/2004. The exploitability is told to be easy. It is possible to initiate the attack remotely. No form of authentication is needed for exploitation. Technical details are known, but no exploit is available. The price for an exploit might be around USD $0-$5k at the moment (estimation calculated on 07/06/2025).

The vulnerability was handled as a non-public zero-day exploit for at least 2 days. During that time the estimated underground price was around $25k-$100k. The vulnerability scanner Nessus provides a plugin with the ID 19133 (FreeBSD : php -- multiple vulnerabilities (d47e9d19-5016-11d9-9b5f-0050569f0001)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family FreeBSD Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 12186 (PHP JPEG Image Buffer Overflow Vulnerability).

Upgrading to version 4.3.10 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 Tenable (19133), SecurityFocus (BID 11992†), OSVDB (12602†), Secunia (SA13481†) and Vulnerability Center (SBV-6580†). See VDB-1060, VDB-1059, VDB-1056 and VDB-1055 for similar entries. 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: 10.0
VulDB Meta Temp Score: 9.5

VulDB Base Score: 10.0
VulDB Temp Score: 9.5
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: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 19133
Nessus Name: FreeBSD : php -- multiple vulnerabilities (d47e9d19-5016-11d9-9b5f-0050569f0001)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 52269
OpenVAS Name: php -- multiple vulnerabilities
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: PHP 4.3.10

Timelineinfo

11/23/2004 🔍
12/15/2004 +22 days 🔍
12/16/2004 +1 days 🔍
12/16/2004 +0 days 🔍
12/17/2004 +1 days 🔍
12/20/2004 +3 days 🔍
01/10/2005 +21 days 🔍
01/10/2005 +0 days 🔍
07/13/2005 +184 days 🔍
03/10/2015 +3527 days 🔍
07/06/2025 +3771 days 🔍

Sourcesinfo

Product: php.org

Advisory: redhat.com
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2004-1065 (🔍)
GCVE (CVE): GCVE-0-2004-1065
GCVE (VulDB): GCVE-100-23673

OVAL: 🔍

X-Force: 18517
SecurityFocus: 11992 - PHP JPEG Image Buffer Overflow Vulnerability
Secunia: 13481
OSVDB: 12602 - PHP exif_read_data buffer overflow
Vulnerability Center: 6580 - Buffer Overflow in PHP via JPEG Image, High

See also: 🔍

Entryinfo

Created: 03/10/2015 12:14
Updated: 07/06/2025 22:11
Changes: 03/10/2015 12:14 (70), 06/05/2019 16:02 (8), 07/01/2021 08:58 (2), 07/06/2025 22:11 (18)
Complete: 🔍
Cache ID: 216::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!