# CVE-2025-62171: ImageMagick vulnerable to denial of service via integer overflow in BMP decoder on 32-bit systems

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-10-17 · Modified: 2025-11-03
- Aliases: SUSE-SU-2025:3796-1, SUSE-SU-2025:3844-1, SUSE-SU-2025:3867-1, SUSE-SU-2025:3918-1, UBUNTU-CVE-2025-62171, USN-7876-1, DEBIAN-CVE-2025-62171, DLA-4339-1, openSUSE-SU-2025:15650-1, GHSA-9pp9-cfwx-54rm, ALPINE-CVE-2025-62171
- Record: https://cvemate.com/vulnerability/CVE-2025-62171 · JSON: https://cvemate.com/vulnerability/CVE-2025-62171/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.849%, percentile 59.405%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine imagemagick (Alpine Linux): ≥ 7.0.0-0, \< 7.1.2.8-r0 \| \< 7.1.2.8-r0
- debian imagemagick (Debian): \< 8:6.9.11.60+dfsg-1.3+deb11u7 \| \< 8:6.9.11.60+dfsg-1.6+deb12u5 \| \< 8:7.1.1.43+dfsg1-1+deb13u3 \| \< 8:7.1.2.7+dfsg1-1
- ubuntu imagemagick (Ubuntu): \< 8:6.7.7.10-6ubuntu3.13+esm16 \| \< 8:6.8.9.9-7ubuntu5.16+esm15 \| \< 8:6.9.7.4+dfsg-16ubuntu6.15+esm7 \| \< 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm5 \| \< 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm5 \| \< 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm4 \| All versions (No fix recorded) \| \< 8:7.1.2.8+dfsg1-1
- imagemagick imagemagick: \< 6.9.13-32 \| ≥ 7.0.0-0, \< 7.1.2-7
- NuGet Magick.NET-Q16-AnyCPU (NuGet): \< 14.9.0
- NuGet Magick.NET-Q16-HDRI-AnyCPU (NuGet): \< 14.9.0
- NuGet Magick.NET-Q16-HDRI-x86 (NuGet): \< 14.9.0
- NuGet Magick.NET-Q16-x86 (NuGet): \< 14.9.0
- NuGet Magick.NET-Q8-AnyCPU (NuGet): \< 14.9.0
- NuGet Magick.NET-Q8-x86 (NuGet): \< 14.9.0
- opensuse ImageMagick&distro=openSUSE Leap 15.6 (openSUSE): \< 7.1.1.21-150600.3.26.1
- opensuse ImageMagick&distro=openSUSE Tumbleweed (openSUSE): \< 7.1.2.7-1.1
- suse ImageMagick&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP6 (SUSE Linux Enterprise): \< 7.1.0.9-150400.6.46.1 \| \< 7.1.1.21-150600.3.26.1
- suse ImageMagick&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP7 (SUSE Linux Enterprise): \< 7.1.0.9-150400.6.46.1 \| \< 7.1.1.43-150700.3.19.1
- suse ImageMagick&distro=SUSE Linux Enterprise Module for Development Tools 15 SP6 (SUSE Linux Enterprise): \< 7.1.1.21-150600.3.26.1
- suse ImageMagick&distro=SUSE Linux Enterprise Module for Development Tools 15 SP7 (SUSE Linux Enterprise): \< 7.1.1.43-150700.3.19.1
- suse ImageMagick&distro=SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 (SUSE Linux Enterprise): \< 6.8.8.1-71.215.1

## References

- <https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-9pp9-cfwx-54rm>
- <https://github.com/ImageMagick/ImageMagick/commit/cea1693e2ded51b4cc91c70c54096cbed1691c00>
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00019.html>
- <https://www.suse.com/support/update/announcement/2025/suse-su-20253796-1/>
- <https://bugzilla.suse.com/1252282>
- <https://www.suse.com/security/cve/CVE-2025-62171>
- <https://www.suse.com/support/update/announcement/2025/suse-su-20253844-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-20253867-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-20253918-1/>
- <https://ubuntu.com/security/CVE-2025-62171>
- <https://www.cve.org/CVERecord?id=CVE-2025-62171>
- <https://ubuntu.com/security/notices/USN-7876-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-62171>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-62171>
- <https://github.com/ImageMagick/ImageMagick>
- <https://github.com/dlemstra/Magick.NET/releases/tag/14.9.0>
- <https://security.alpinelinux.org/vuln/CVE-2025-62171>

---

Data as of 2026-12-05T08:54:51.809Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
