ImageMagick up to 6.2.1 pnm.c readpnmimage heap-based overflow

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 categorized as critical has been discovered in ImageMagick. The affected element is the function readpnmimage of the file pnm.c. The manipulation results in heap-based overflow. This vulnerability was named CVE-2005-1275. In addition, an exploit is available. It is advisable to upgrade the affected component.

Detailsinfo

A vulnerability classified as critical has been found in ImageMagick (Image Processing Software). Affected is the function readpnmimage of the file pnm.c. The manipulation with an unknown input leads to a heap-based overflow vulnerability. CWE is classifying the issue as CWE-122. A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc(). This is going to have an impact on availability. CVE summarizes:

Heap-based buffer overflow in the ReadPNMImage function in pnm.c for ImageMagick 6.2.1 and earlier allows remote attackers to cause a denial of service (application crash) via a PNM file with a small colors value.

The bug was discovered 04/25/2005. The weakness was presented 04/25/2005 by Damian Put (Website). The advisory is shared for download at imagemagick.org. This vulnerability is traded as CVE-2005-1275 since 04/26/2005. 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 exploit-db.com. It is declared as proof-of-concept. The vulnerability scanner Nessus provides a plugin with the ID 19125 (FreeBSD : ImageMagick -- ReadPNMImage() heap overflow vulnerability (cd286cc5-b762-11d9-bfb7-000c6ec775d9)), 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 117945 (CentOS Security Update for ImageMagick (CESA-2005:413)).

Upgrading eliminates this vulnerability. A possible mitigation has been published 2 days after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at X-Force (20262), Exploit-DB (25527), Tenable (19125), SecurityFocus (BID 13351†) and OSVDB (15891†). See VDB-3330, VDB-3331, VDB-3332 and VDB-38931 for similar entries. 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: 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: Heap-based overflow
CWE: CWE-122 / 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: 19125
Nessus Name: FreeBSD : ImageMagick -- ReadPNMImage() heap overflow vulnerability (cd286cc5-b762-11d9-bfb7-000c6ec775d9)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Nessus Port: 🔍

OpenVAS ID: 52544
OpenVAS Name: FreeBSD Ports: ImageMagick
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: 🔍

Timelineinfo

04/25/2005 🔍
04/25/2005 +0 days 🔍
04/25/2005 +0 days 🔍
04/25/2005 +0 days 🔍
04/25/2005 +0 days 🔍
04/26/2005 +1 days 🔍
04/27/2005 +1 days 🔍
06/01/2005 +35 days 🔍
07/13/2005 +42 days 🔍
03/10/2015 +3527 days 🔍
07/04/2025 +3769 days 🔍

Sourcesinfo

Product: imagemagick.org

Advisory: imagemagick.org
Researcher: Damian Put
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2005-1275 (🔍)
GCVE (CVE): GCVE-0-2005-1275
GCVE (VulDB): GCVE-100-24228

OVAL: 🔍

X-Force: 20262
SecurityFocus: 13351 - ImageMagick PNM Image Decoding Remote Buffer Overflow Vulnerability
OSVDB: 15891 - ImageMagick ReadPNMImage function heap overflow
Vulnerability Center: 8200 - Buffer Overflow in ImageMagick 6.2.1 PNM File Handling Enables DoS or Code Execution, Medium

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

Entryinfo

Created: 03/10/2015 23:05
Updated: 07/04/2025 13:11
Changes: 03/10/2015 23:05 (74), 06/02/2019 06:28 (7), 12/17/2024 06:31 (27), 07/04/2025 13:11 (2)
Complete: 🔍
Cache ID: 216:D49: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!