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

Exp

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.

Published: 2025-10-17 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2025-62171 is rated Exploit Available (56.6/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.74%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2025-62171

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2025-62171

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.05% 0.74% +0.68%
2 2025-11-18 0.05% 0.05% +0.01%
3 2025-11-04 0.05%

Full EPSS history (5 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2025-62171

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
5.9 3.1 MEDIUM
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.2 3.6 [email protected]
7.5 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 3.6 [email protected]

Weakness enumeration for CVE-2025-62171

GitHub Security Advisory for CVE-2025-62171

GHSA-9pp9-cfwx-54rm · Severity: medium · Ecosystem: nuget — ImageMagick has Integer Overflow in BMP Decoder (ReadBMP)

OS Trackers for CVE-2025-62171

vendor priority summary link
alpine medium CVE-2025-62171: 1 source package rows (imagemagick); 108 state rows across 3 repos (3.22-community, 3.23-community, edge-community); fixed 17, open 91. https://security.alpinelinux.org/vuln/CVE-2025-62171
debian not yet assigned CVE-2025-62171 not yet assigned priority: Debian including 1 source packages (imagemagick), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2025-62171
redhat medium https://access.redhat.com/security/cve/CVE-2025-62171
suse medium CVE-2025-62171 severity moderate: SUSE including 83 source package names (GraphicsMagick, GraphicsMagick-devel, …), 159 product×package rows across 14 product lines (SUSE Linux Enterprise Module for Desktop Applications 15 SP6, SUSE Linux Enterprise Module for Desktop Applications 15 SP7, … (14 product lines)): Fixed 121, Known Not Affected 24, First Fixed 14. https://www.suse.com/security/cve/CVE-2025-62171/
ubuntu medium CVE-2025-62171 medium priority: Ubuntu including 1 source packages (imagemagick), 9 status rows across 9 suites (bionic, focal, jammy, noble, plucky, questing, trusty, upstream, xenial): released 7, ignored 1, needed 1. https://ubuntu.com/security/CVE-2025-62171

Affected software / configurations for CVE-2025-62171

Vendor Product Version Raw CPE
imagemagick imagemagick < 6.9.13-32 cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
imagemagick imagemagick >= 7.0.0-0, < 7.1.2-7 cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*

References for CVE-2025-62171

cvelogic Threat Intelligence