ImageMagick up to 6.9.13-31/7.1.2-6 coders/bmp.c extent integer overflow
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.8 | $0-$5k | 0.00 |
Summary
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.
Details
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
Product
Type
Name
Version
License
Website
- Product: https://www.imagemagick.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.9VulDB 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): 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Integer overflowCWE: 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-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 270770
Nessus Name: Debian dla-4339 : imagemagick - security update
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: ImageMagick 6.9.13-32/7.1.2-7
Patch: cea1693e2ded51b4cc91c70c54096cbed1691c00
Timeline
10/07/2025 CVE reserved10/18/2025 Advisory disclosed
10/18/2025 VulDB entry created
11/22/2025 VulDB entry last update
Sources
Product: imagemagick.orgAdvisory: 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
Entry
Created: 10/18/2025 09:24Updated: 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.
No comments yet. Languages: en.
Please log in to comment.