CVE-2025-62171
ImageMagick: ImageMagick vulnerable to denial of service via integer overflow in BMP decoder on 32-bit systems
Overview
Description
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-190
Affected packages · 7
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Julia | ImageMagick_jll | <7.1.2011+0 | 7.1.2011+0 |
| NuGet | Magick.NET-Q16-AnyCPU | <14.9.0 | 14.9.0 |
| NuGet | Magick.NET-Q16-HDRI-AnyCPU | <14.9.0 | 14.9.0 |
| NuGet | Magick.NET-Q16-HDRI-x86 | <14.9.0 | 14.9.0 |
| NuGet | Magick.NET-Q16-x86 | <14.9.0 | 14.9.0 |
| NuGet | Magick.NET-Q8-AnyCPU | <14.9.0 | 14.9.0 |
| NuGet | Magick.NET-Q8-x86 | <14.9.0 | 14.9.0 |
Open a package to see all its vulnerabilities.
Operating systems · 31 fixes
Oracle Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | imagemagick +5 | 6.9.10.68-7.0.5.el7_9 |
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | imagemagick +5 | 7.1.2.8-1.ph4 |
| 5.0 | imagemagick +5 | 7.1.2.8-1.ph5 |
Red Hat 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | imagemagick +5 | 0:6.9.10.68-10.el7_9 | RHSA-2026:3058 |
SUSE Linux Enterprise 4 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | imagemagick-config-6-suse +5 | 6.8.8.1-71.215.1 | SUSE-SU-2025:3918-1 |
| 15.6 | imagemagick-config-7-upstream | 7.1.0.9-150400.6.46.1 | SUSE-SU-2025:3796-1 |
| 15.6 | imagemagick +11 | 7.1.1.21-150600.3.26.1 | SUSE-SU-2025:3844-1 |
| 15.7 | imagemagick-config-7-upstream | 7.1.0.9-150400.6.46.1 | SUSE-SU-2025:3796-1 |
| 15.7 | imagemagick +11 | 7.1.1.43-150700.3.19.1 | SUSE-SU-2025:3867-1 |
| 16.0 | imagemagick +13 | 7.1.2.0-160000.4.1 | SUSE-SU-2025:21211-1 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | imagemagick | 7.1.2.8-r0 |
| 3.23 | imagemagick | 7.1.2.8-r0 |
| 3.24 | imagemagick | 7.1.2.8-r0 |
| edge | imagemagick | 7.1.2.8-r0 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | imagemagick | 8:6.9.11.60+dfsg-1.3+deb11u7 |
| 12 | imagemagick | 8:6.9.11.60+dfsg-1.6+deb12u5 |
| 13 | imagemagick | 8:7.1.1.43+dfsg1-1+deb13u3 |
| 14 | imagemagick | 8:7.1.2.7+dfsg1-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| imagemagick | 8:6.9.11.60+dfsg-1.6+deb12u5 |
minimos 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| imagemagick | 7.1.2.0-r0 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | imagemagick +14 | 7.1.2.7-1.1 | openSUSE-SU-2025:15650-1 |
openSUSE Leap 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | imagemagick +13 | 7.1.2.0-160000.4.1 | openSUSE-SU-2025:20162-1 |
root.io debian 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-imagemagick | 8:6.9.11.60+dfsg-1.3+deb11u7 |
| 12 | imagemagick +1 | 8:6.9.11.60+dfsg-1.6+deb12u5 |
| 13 | imagemagick +1 | 8:7.1.1.43+dfsg1-1+deb13u3 |
seal Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | imagemagick +1 | 6.9.10.68-6.el7_9+sp999 |
ubuntu 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | imagemagick | 8:6.9.7.4+dfsg-16ubuntu6.15+esm7 |
| 20.04-ESM | imagemagick | 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm5 |
| 22.04 | imagemagick | affected |
| 24.04 | imagemagick | affected |
| 26.04 | imagemagick | 8:7.1.2.8+dfsg1-1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2025-62171
- github.com https://github.com/ImageMagick/ImageMagick
- github.com https://github.com/ImageMagick/ImageMagick/commit/cea1693e2ded51b4cc91c70c54096cbed1691c00
- github.com https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-9pp9-cfwx-54rm
- github.com https://github.com/advisories/GHSA-9pp9-cfwx-54rm
- github.com https://github.com/dlemstra/Magick.NET/releases/tag/14.9.0
- linux.oracle.com https://linux.oracle.com/cve/CVE-2025-62171.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2026-3058.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2025/10/msg00019.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2025-62171
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.