CVE-2025-62171: imagemagick Integer Overflow or Wraparound
Vulnerability summary
CVE-2025-62171 is a high (CVSS 7.5) Integer Overflow or Wraparound vulnerability in imagemagick. EPSS estimates a 0.81% chance of exploitation in the next 30 days, higher than 56.1% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 3 · Related 2Timeline
- 17-10-2025PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · NugetEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
0.81%
Chance of exploitation in the next 30 days
Percentile
56%
Versus all other CVEs
30-day change
0.00 pp
From 0.81% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundImagemagick
Maturity: poc
Weaknesses
CWE · root causeAffected systems
NuGet6 products
- magick.net-q16-anycpu< 14.9.0
- magick.net-q16-hdri-anycpu< 14.9.0
- Magick.NET-Q16-HDRI-x86< 14.9.0
- Magick.NET-Q16-x86< 14.9.0
- magick.net-q8-anycpu< 14.9.0
Suse5 products
- ImageMagick&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP6< 7.1.0.9-150400.6.46.1 | < 7.1.1.21-150600.3.26.1
- ImageMagick&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP7< 7.1.0.9-150400.6.46.1 | < 7.1.1.43-150700.3.19.1
- ImageMagick&distro=SUSE Linux Enterprise Module for Development Tools 15 SP6< 7.1.1.21-150600.3.26.1
- ImageMagick&distro=SUSE Linux Enterprise Module for Development Tools 15 SP7< 7.1.1.43-150700.3.19.1
- ImageMagick&distro=SUSE Linux Enterprise Server LTSS Extended Security 12 SP5< 6.8.8.1-71.215.1
Opensuse2 products
- ImageMagick&distro=openSUSE Leap 15.6< 7.1.1.21-150600.3.26.1
- ImageMagick&distro=openSUSE Tumbleweed< 7.1.2.7-1.1
Debian1 product
- imagemagick< 8:6.9.11.60+dfsg-1.6+deb12u5 | < 8:7.1.1.43+dfsg1-1+deb13u3 | < 8:7.1.2.7+dfsg1-1 | < 8:6.9.11.60+dfsg-1.3+deb11u7
Imagemagick1 product
- imagemagick< 6.9.13-32 | ≥ 7.0.0-0, < 7.1.2-7
Ubuntu1 product
- imagemagickAll versions (No fix recorded) | < 8:7.1.2.8+dfsg1-1 | < 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
6 vendors · 16 products
References
16 links- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-9pp9-cfwx-54rmX Refsource CONFIRMREPORTWEBExploitVendor Advisory
- github.com/ImageMagick/ImageMagick/commit/cea1693e2ded51b4cc91c70c54096cbed1691c00X Refsource MISCREPORTWEBPatch