CVE-2025-53101: imagemagick Buffer Underflow
Vulnerability summary
CVE-2025-53101 is a critical (CVSS 9.8) Buffer Underflow vulnerability in imagemagick. EPSS estimates a 0.95% chance of exploitation in the next 30 days, higher than 60.6% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 6 · Related 6Timeline
- 14-07-2025PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
Description
ImageMagick is free and open-source software used for editing and manipulating digital images. In versions prior to 7.1.2-0 and 6.9.13-26, in ImageMagick's `magick mogrify` command, specifying multiple consecutive `%d` format specifiers in a filename template causes internal pointer arithmetic to generate an address below the beginning of the stack buffer, resulting in a stack overflow through `vsnprintf()`. Versions 7.1.2-0 and 6.9.13-26 fix the issue.
CVSS metrics
6 scores · 6 sources · 1 version- CVE.orgCNA7.4HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated7.4HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:HDiffers
- OSV · NugetEcosystem advisory · calculated7.4HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:HDiffers
EPSS trend
Probability
0.95%
Chance of exploitation in the next 30 days
Percentile
61%
Versus all other CVEs
30-day change
+0.09 pp
From 0.86% 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
NuGet18 products
- magick.net-q16-anycpu< 14.7.0
- Magick.NET-Q16-arm64< 14.7.0
- magick.net-q16-hdri-anycpu< 14.7.0
- Magick.NET-Q16-HDRI-arm64< 14.7.0
- Magick.NET-Q16-HDRI-OpenMP-arm64< 14.7.0
Chainguard1 product
- imagemagick-6All versions (No fix recorded)
Debian1 product
- imagemagick< 8:6.9.11.60+dfsg-1.6+deb12u4 | < 8:7.1.1.43+dfsg1-1+deb13u1 | < 8:7.1.1.47+dfsg1-2
Imagemagick1 product
- imagemagick< 7.1.2-0 | < 6.9.13-26 | ≥ 7.0.0-0, < 7.1.2-0
Ubuntu1 product
- imagemagick< 8:6.7.7.10-6ubuntu3.13+esm13 | < 8:6.8.9.9-7ubuntu5.16+esm12 | < 8:6.9.7.4+dfsg-16ubuntu6.15+esm4 | < 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm2 | < 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm2 | < 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm1
5 vendors · 22 products
References
12 links- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qh3h-j545-h8c9X Refsource CONFIRMREPORTAdvisoryWEBExploitVendor Advisory
- github.com/ImageMagick/ImageMagick/commit/66dc8f51c11b0ae1f1cdeacd381c3e9a4de69774X Refsource MISCFIXWEBPatch