ImageMagick up to 6.9.13-31/7.1.2-6 coders/bmp.c extent integer 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.
5.8$0-$5k0.00

Summaryinfo

A vulnerability classified as problematic has been found in ImageMagick up to 6.9.13-31/7.1.2-6. This affects an unknown part of the file coders/bmp.c. This manipulation of the argument extent causes integer overflow. This vulnerability is tracked as CVE-2025-62171. The attack is possible to be carried out remotely. No exploit exists. It is recommended to upgrade the affected component.

Detailsinfo

A vulnerability was found in ImageMagick up to 6.9.13-31/7.1.2-6. It has been declared as problematic. Affected by this vulnerability is some unknown processing of the file coders/bmp.c. The manipulation of the argument extent with an unknown input leads to a integer overflow vulnerability. The CWE definition for the vulnerability is CWE-190. The product performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control. As an impact it is known to affect availability. The summary by CVE is:

ImageMagick is an open source software suite for displaying, converting, and editing raster image files. In ImageMagick versions prior to 7.1.2-7 and 6.9.13-32, an integer overflow vulnerability exists in the BMP decoder on 32-bit systems. The vulnerability occurs in coders/bmp.c when calculating the extent value by multiplying image columns by bits per pixel. On 32-bit systems with size_t of 4 bytes, a malicious BMP file with specific dimensions can cause this multiplication to overflow and wrap to zero. The overflow check added to address CVE-2025-57803 is placed after the overflow occurs, making it ineffective. A specially crafted 58-byte BMP file with width set to 536,870,912 and 32 bits per pixel can trigger this overflow, causing the bytes_per_line calculation to become zero. This vulnerability only affects 32-bit builds of ImageMagick where default resource limits for width, height, and area have been manually increased beyond their defaults. 64-bit systems with size_t of 8 bytes are not vulnerable, and systems using default ImageMagick resource limits are not vulnerable. The vulnerability is fixed in versions 7.1.2-7 and 6.9.13-32.

The advisory is shared at github.com. This vulnerability is known as CVE-2025-62171 since 10/07/2025. The exploitation appears to be easy. The attack can be launched remotely. The exploitation doesn't need any form of authentication. It demands that the victim is doing some kind of user interaction. Technical details are known, but no exploit is available.

The vulnerability scanner Nessus provides a plugin with the ID 270770 (Debian dla-4339 : imagemagick - security update), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 6.9.13-32 or 7.1.2-7 eliminates this vulnerability. Applying the patch cea1693e2ded51b4cc91c70c54096cbed1691c00 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.

The vulnerability is also documented in the databases at Tenable (270770), EUVD (EUVD-2025-34893) and CERT Bund (WID-SEC-2025-2339). If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Affected

  • Ubuntu Linux
  • SUSE Linux
  • SUSE openSUSE
  • Open Source ImageMagick

Productinfo

Type

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 5.9
VulDB Meta Temp Score: 5.8

VulDB Base Score: 4.3
VulDB Temp Score: 4.1
VulDB Vector: 🔒
VulDB Reliability: 🔍

NVD Base Score: 7.5
NVD Vector: 🔒

CNA Base Score: 5.9
CNA Vector (GitHub_M): 🔒

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Integer overflow
CWE: CWE-190 / CWE-189
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: 270770
Nessus Name: Debian dla-4339 : imagemagick - security update

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: ImageMagick 6.9.13-32/7.1.2-7
Patch: cea1693e2ded51b4cc91c70c54096cbed1691c00

Timelineinfo

10/07/2025 CVE reserved
10/18/2025 +11 days Advisory disclosed
10/18/2025 +0 days VulDB entry created
11/22/2025 +35 days VulDB entry last update

Sourcesinfo

Product: imagemagick.org

Advisory: GHSA-9pp9-cfwx-54rm
Status: Confirmed

CVE: CVE-2025-62171 (🔒)
GCVE (CVE): GCVE-0-2025-62171
GCVE (VulDB): GCVE-100-328957
EUVD: 🔒
CERT Bund: WID-SEC-2025-2339 - ImageMagick (BMP decoder): Schwachstelle ermöglicht Denial of Service

Entryinfo

Created: 10/18/2025 09:24
Updated: 11/22/2025 01:26
Changes: 10/18/2025 09:24 (67), 10/20/2025 13:00 (2), 10/25/2025 00:38 (11), 11/03/2025 19:33 (1), 11/22/2025 01:26 (7)
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.

Want to stay up to date on a daily basis?

Enable the mail alert feature now!