CVE & CISA-KEV Catalog

CVE-2025-62171

MEDIUM
5.9
CVSS v3
NVD

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.

How to fix

Remediation Available
imagemagickDebian
Fixed in:8:6.9.11.60+dfsg-1.3+deb11u7CVE-2025-62171
Fixed in:8:6.9.11.60+dfsg-1.6+deb12u5CVE-2025-62171
Fixed in:8:7.1.1.43+dfsg1-1+deb13u3CVE-2025-62171
Fixed in:8:7.1.2.7+dfsg1-1CVE-2025-62171
ImageMagickRed Hat / RHEL
Fixed in:0:6.9.10.68-10.el7_9.s390RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.ppc64RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.ppcRHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
ImageMagickRocky
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.ppc64RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.ppcRHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.s390RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
ImageMagick-c++Rocky
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.s390RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.ppc64RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.ppcRHSA-2026:3058
ImageMagick-c++Red Hat / RHEL
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.ppcRHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.ppc64RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.s390RHSA-2026:3058
ImageMagick-c++-develRocky
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.ppc64RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.s390RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.ppcRHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
ImageMagick-c++-develRed Hat / RHEL
Fixed in:0:6.9.10.68-10.el7_9.ppcRHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.ppc64RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.s390RHSA-2026:3058
ImageMagick-debuginfoRocky
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.s390RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.ppcRHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.ppc64RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
ImageMagick-debuginfoRed Hat / RHEL
Fixed in:0:6.9.10.68-10.el7_9.ppcRHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.ppc64RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.s390RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
ImageMagick-develRocky
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.ppcRHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.ppc64RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.s390RHSA-2026:3058
ImageMagick-develRed Hat / RHEL
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.s390RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.ppcRHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.ppc64RHSA-2026:3058
ImageMagick-docRocky
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.ppc64RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
ImageMagick-docRed Hat / RHEL
Fixed in:0:6.9.10.68-10.el7_9.ppc64RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
ImageMagick-perlRocky
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9.ppc64RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
ImageMagick-perlRed Hat / RHEL
Fixed in:0:6.9.10.68-10.el7_9.ppc64RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
Fixed in:0:6.9.10.68-10.el7_9RHSA-2026:3058
imagemagickUbuntu
Fixed in:8:6.7.7.10-6ubuntu3.13+esm16USN-7876-1
Fixed in:8:6.8.9.9-7ubuntu5.16+esm15USN-7876-1
Fixed in:8:6.9.7.4+dfsg-16ubuntu6.15+esm7USN-7876-1
Fixed in:8:6.9.10.23+dfsg-2.1ubuntu11.11+esm5USN-7876-1
Fixed in:8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm5USN-7876-1
Fixed in:8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm4USN-7876-1
imagemagick-6.q16Ubuntu
Fixed in:8:6.8.9.9-7ubuntu5.16+esm15USN-7876-1
Fixed in:8:6.9.7.4+dfsg-16ubuntu6.15+esm7USN-7876-1
Fixed in:8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm5USN-7876-1
Fixed in:8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm4USN-7876-1
imagemagick-6.q16hdriUbuntu
Fixed in:8:6.9.7.4+dfsg-16ubuntu6.15+esm7USN-7876-1
Fixed in:8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm5USN-7876-1
Fixed in:8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm4USN-7876-1
imagemagick-commonUbuntu
Fixed in:8:6.7.7.10-6ubuntu3.13+esm16USN-7876-1
libimage-magick-q16-perlUbuntu
Fixed in:8:6.8.9.9-7ubuntu5.16+esm15USN-7876-1
Fixed in:8:6.9.7.4+dfsg-16ubuntu6.15+esm7USN-7876-1
Fixed in:8:6.9.10.23+dfsg-2.1ubuntu11.11+esm5USN-7876-1
Fixed in:8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm5USN-7876-1
Fixed in:8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm4USN-7876-1
libimage-magick-q16hdri-perlUbuntu
Fixed in:8:6.9.7.4+dfsg-16ubuntu6.15+esm7USN-7876-1
Fixed in:8:6.9.10.23+dfsg-2.1ubuntu11.11+esm5USN-7876-1
Fixed in:8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm5USN-7876-1
Fixed in:8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm4USN-7876-1
libmagick++-6.q16-5v5Ubuntu
Fixed in:8:6.8.9.9-7ubuntu5.16+esm15USN-7876-1
libmagick++-6.q16-7Ubuntu
Fixed in:8:6.9.7.4+dfsg-16ubuntu6.15+esm7USN-7876-1
libmagick++-6.q16-8Ubuntu
Fixed in:8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm5USN-7876-1
libmagick++-6.q16-9t64Ubuntu
Fixed in:8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm4USN-7876-1
libmagick++-6.q16hdri-7Ubuntu
Fixed in:8:6.9.7.4+dfsg-16ubuntu6.15+esm7USN-7876-1
libmagick++-6.q16hdri-8Ubuntu
Fixed in:8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm5USN-7876-1
libmagick++-6.q16hdri-9t64Ubuntu
Fixed in:8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm4USN-7876-1
libmagick++5Ubuntu
Fixed in:8:6.7.7.10-6ubuntu3.13+esm16USN-7876-1
libmagickcore-6.q16-2Ubuntu
Fixed in:8:6.8.9.9-7ubuntu5.16+esm15USN-7876-1
libmagickcore-6.q16-2-extraUbuntu
Fixed in:8:6.8.9.9-7ubuntu5.16+esm15USN-7876-1
libmagickcore-6.q16-3Ubuntu
Fixed in:8:6.9.7.4+dfsg-16ubuntu6.15+esm7USN-7876-1
libmagickcore-6.q16-3-extraUbuntu
Fixed in:8:6.9.7.4+dfsg-16ubuntu6.15+esm7USN-7876-1
libmagickcore-6.q16-6Ubuntu
Fixed in:8:6.9.10.23+dfsg-2.1ubuntu11.11+esm5USN-7876-1
Fixed in:8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm5USN-7876-1
libmagickcore-6.q16-6-extraUbuntu
Fixed in:8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm5USN-7876-1
libmagickcore-6.q16-7-extraUbuntu
Fixed in:8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm4USN-7876-1
libmagickcore-6.q16-7t64Ubuntu
Fixed in:8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm4USN-7876-1
libmagickcore-6.q16hdri-3Ubuntu
Fixed in:8:6.9.7.4+dfsg-16ubuntu6.15+esm7USN-7876-1
libmagickcore-6.q16hdri-3-extraUbuntu
Fixed in:8:6.9.7.4+dfsg-16ubuntu6.15+esm7USN-7876-1
libmagickcore-6.q16hdri-6Ubuntu
Fixed in:8:6.9.10.23+dfsg-2.1ubuntu11.11+esm5USN-7876-1
Fixed in:8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm5USN-7876-1
libmagickcore-6.q16hdri-6-extraUbuntu
Fixed in:8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm5USN-7876-1
libmagickcore-6.q16hdri-7-extraUbuntu
Fixed in:8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm4USN-7876-1
libmagickcore-6.q16hdri-7t64Ubuntu
Fixed in:8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm4USN-7876-1
libmagickcore5Ubuntu
Fixed in:8:6.7.7.10-6ubuntu3.13+esm16USN-7876-1
libmagickcore5-extraUbuntu
Fixed in:8:6.7.7.10-6ubuntu3.13+esm16USN-7876-1
libmagickwand-6.q16-2Ubuntu
Fixed in:8:6.8.9.9-7ubuntu5.16+esm15USN-7876-1
libmagickwand-6.q16-3Ubuntu
Fixed in:8:6.9.7.4+dfsg-16ubuntu6.15+esm7USN-7876-1
libmagickwand-6.q16-6Ubuntu
Fixed in:8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm5USN-7876-1
libmagickwand-6.q16-7t64Ubuntu
Fixed in:8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm4USN-7876-1
libmagickwand-6.q16hdri-3Ubuntu
Fixed in:8:6.9.7.4+dfsg-16ubuntu6.15+esm7USN-7876-1
libmagickwand-6.q16hdri-6Ubuntu
Fixed in:8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm5USN-7876-1
libmagickwand-6.q16hdri-7t64Ubuntu
Fixed in:8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm4USN-7876-1
libmagickwand5Ubuntu
Fixed in:8:6.7.7.10-6ubuntu3.13+esm16USN-7876-1
perlmagickUbuntu
Fixed in:8:6.7.7.10-6ubuntu3.13+esm16USN-7876-1
ImageMagick Q16Windows application
Affected:7.0.0-0 7.1.2-7Fixed in:7.1.2-7ImageMagick Studio LLC
Affected:6.9.13-32Fixed in:6.9.13-32ImageMagick Studio LLC
ImageMagick Q16-HDRIWindows application
Affected:7.0.0-0 7.1.2-7Fixed in:7.1.2-7ImageMagick Studio LLC
Affected:6.9.13-32Fixed in:6.9.13-32ImageMagick Studio LLC

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

0.74%probability of exploitation in 30 days
50thpercentile

Moderate risk: more likely to be exploited than 50% of all known CVEs.

References

Exploit1
Other references1

Related Vulnerabilities

Other CWE-190 (Integer Overflow) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2020-16040Medium6.5100%-Fix
CVE-2019-11477High7.599%-Fix
CVE-2023-44443High7.894%-Fix
CVE-2014-0569High9.390%--
CVE-2017-3599High7.590%-Fix
CVE-2023-21716Critical9.882%-Fix
Embed a live status badge for CVE-2025-62171
CVE-2025-62171 severity badge

Markdown

[![CVE-2025-62171](https://tridentstack.com/cve/badge/CVE-2025-62171.svg)](https://tridentstack.com/cve/CVE-2025-62171)

HTML

<a href="https://tridentstack.com/cve/CVE-2025-62171"><img src="https://tridentstack.com/cve/badge/CVE-2025-62171.svg" alt="CVE-2025-62171"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-11-03.