7.5

CVE-2025-62171: imagemagick Integer Overflow or Wraparound

CVSS: 7.5v3.1HighModified
AliasesSUSE-SU-2025:3796-1SUSE-SU-2025:3844-1SUSE-SU-2025:3867-1
Published 17-10-2025Last modified 03-11-2025

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.

Overall risk
40/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
0.81%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 3 · Related 2

Timeline

  1. 17-10-2025
    PublishedVulnerability first disclosed.
  2. 03-11-2025
    Last 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

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

20-09-202620-10-2026
EPSS score
0.81%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Imagemagick

    Maturity: poc

Weaknesses

CWE · root cause

Affected 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
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
Show all 16 references