CVE-2025-62171 json
ImageMagick vulnerable to denial of service via integer overflow in BMP decoder on 32-bit systems
published last yr. modified 21d ago also EUVD-2025-34893 , GHSA-9pp9-cfwx-54rm , JLSEC-2026-927
- cvss
- 5.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 57%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- nuget Magick.NET-Q16-AnyCPU 14.9.0
- nuget Magick.NET-Q16-HDRI-AnyCPU 14.9.0
- nuget Magick.NET-Q16-HDRI-x86 14.9.0
- nuget Magick.NET-Q16-x86 14.9.0
- nuget Magick.NET-Q8-AnyCPU 14.9.0
- nuget Magick.NET-Q8-x86 14.9.0
- julia ImageMagick_jll 7.1.2011+0
- imagemagick imagemagick 6.9.13-32, 7.1.2-7
- dlemstra magick.net 14.9.0
- imagemagick Debian 12 8:6.9.11.60+dfsg-1.6+deb12u5
- imagemagick Debian 13 8:7.1.1.43+dfsg1-1+deb13u3
- imagemagick Debian 14 8:7.1.2.7+dfsg1-1
debian advisories DEBIAN-CVE-2025-62171
- imagemagick Ubuntu 26.04 LTS 8:7.1.2.8+dfsg1-1
- imagemagick Ubuntu Pro 14.04 LTS 8:6.7.7.10-6ubuntu3.13+esm16
- imagemagick Ubuntu Pro 16.04 LTS 8:6.8.9.9-7ubuntu5.16+esm15
- imagemagick Ubuntu Pro 18.04 LTS 8:6.9.7.4+dfsg-16ubuntu6.15+esm7
- imagemagick Ubuntu Pro 20.04 LTS 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm5
- imagemagick Ubuntu Pro 22.04 LTS 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm5
- imagemagick Ubuntu Pro 24.04 LTS 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm4
ubuntu advisories UBUNTU-CVE-2025-62171
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- ImageMagick RHEL 7 ELS 6.9.10.68-10.el7_9
- ImageMagick-c++ RHEL 7 ELS 6.9.10.68-10.el7_9
- ImageMagick-perl RHEL 7 ELS 6.9.10.68-10.el7_9
red hat advisories RHSA-2026:3058
- ImageMagick SLES for SAP applications 16.0, SLES 16.0 7.1.2.0-160000.4.1
- ImageMagick SLE Module for Development Tools 15 SP7, SLE Module for Desktop Applications 15 SP7 7.1.1.43-150700.3.19.1
- ImageMagick SLE Module for Development Tools 15 SP6, SLE Module for Desktop Applications 15 SP6, openSUSE Leap 15.6 7.1.1.21-150600.3.26.1
- ImageMagick SLE Module for Desktop Applications 15 SP7, SLE Module for Desktop Applications 15 SP6 7.1.0.9-150400.6.46.1
- ImageMagick SLES LTSS Extended Security 12 SP5 6.8.8.1-71.215.1
suse advisories SUSE-SU-2025:21211-1SUSE-SU-2025:3918-1SUSE-SU-2025:3867-1SUSE-SU-2025:3844-1SUSE-SU-2025:3796-1
- ImageMagick openSUSE Leap 16.0 7.1.2.0-160000.4.1
- ImageMagick openSUSE Tumbleweed 7.1.2.7-1.1
opensuse advisories openSUSE-SU-2025:20162-1openSUSE-SU-2025:15650-1
- imagemagick Alpine 3.24, Alpine 3.23, Alpine 3.22 7.1.2.8-r0
alpine advisories ALPINE-CVE-2025-62171
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Is CVE-2025-62171 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-62171 updated cvss 4.8
ImageMagick: ImageMagick vulnerable to denial of service via integer overflow in BMP decoder on 32-bit systems
-
Red Hat Enterprise Linux 6 ImageMagick, ImageMagick-c++, ImageMagick-perlaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Enterprise Linux Server (v. 7 ELS) ImageMagick 6.9.10.68-10.el7_9, ImageMagick-c++ 6.9.10.68-10.el7_9, ImageMagick-perl 6.9.10.68-10.el7_9 Red Hat Enterprise Linux Server Optional (v. 7 ELS) ImageMagick-c++ 6.9.10.68-10.el7_9fixed: vendor fix RHSA-2026:3058
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.81% chance of exploitation in the next 30 days, higher than 57% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-9pp9-cfwx-54rm referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 4.4 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| 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 |
| julia | ImageMagick_jll | <7.1.2011+0 |
7.1.2011+0 |
Affected products
- ImageMagick ImageMagick
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
References
-
github.com
/ImageMagick/ImageMagick/commit/cea1693e2ded51b4cc91c70c54096cbed1691c00
web, patch
-
github.com
/ImageMagick/ImageMagick/security/advisories/GHSA-9pp9-cfwx-54rm
web, exploit, vendor-advisory
-
lists.debian.org
/debian-lts-announce/2025/10/msg00019.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-62171
advisory, web
-
github.com
/ImageMagick/ImageMagick
package
-
github.com
/dlemstra/Magick.NET/releases/tag/14.9.0
web
-
github.com
/advisories/GHSA-9pp9-cfwx-54rm
web
Sources
- CVE List CVE-2025-62171
- GitHub Advisory GHSA-9pp9-cfwx-54rm
- NVD CVE-2025-62171
- OSV JLSEC-2026-927
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.