CVE-2025-53101
CRITICAL 9.8CVSS 3.1ImageMagick has a Stack Buffer Overflow in image.c
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.
- Published
- 14 Jul 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-124
- Also known as
- GHSA-qh3h-j545-h8c9
- Sources
- NVDJSONOSV GHSA-qh3h-j545-h8c9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | imagemagick | imagemagickcpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* |
< 6.9.13-26 | 6.9.13-26 |
| NVD | imagemagick | imagemagickcpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* |
>= 7.0.0-0, < 7.1.2-0 | 7.1.2-0 |
| OSV | NuGet | Magick.NET-Q16-AnyCPU | < 14.7.0 | 14.7.0 |
| OSV | NuGet | Magick.NET-Q16-HDRI-AnyCPU | < 14.7.0 | 14.7.0 |
| OSV | NuGet | Magick.NET-Q16-HDRI-OpenMP-arm64 | < 14.7.0 | 14.7.0 |
| OSV | NuGet | Magick.NET-Q16-HDRI-OpenMP-x64 | < 14.7.0 | 14.7.0 |
| OSV | NuGet | Magick.NET-Q16-HDRI-arm64 | < 14.7.0 | 14.7.0 |
| OSV | NuGet | Magick.NET-Q16-HDRI-x64 | < 14.7.0 | 14.7.0 |
| OSV | NuGet | Magick.NET-Q16-HDRI-x86 | < 14.7.0 | 14.7.0 |
| OSV | NuGet | Magick.NET-Q16-OpenMP-arm64 | < 14.7.0 | 14.7.0 |
| OSV | NuGet | Magick.NET-Q16-OpenMP-x64 | < 14.7.0 | 14.7.0 |
| OSV | NuGet | Magick.NET-Q16-arm64 | < 14.7.0 | 14.7.0 |
| OSV | NuGet | Magick.NET-Q16-x64 | < 14.7.0 | 14.7.0 |
| OSV | NuGet | Magick.NET-Q16-x86 | < 14.7.0 | 14.7.0 |
| OSV | NuGet | Magick.NET-Q8-AnyCPU | < 14.7.0 | 14.7.0 |
| OSV | NuGet | Magick.NET-Q8-OpenMP-arm64 | < 14.7.0 | 14.7.0 |
| OSV | NuGet | Magick.NET-Q8-OpenMP-x64 | < 14.7.0 | 14.7.0 |
| OSV | NuGet | Magick.NET-Q8-arm64 | < 14.7.0 | 14.7.0 |
| OSV | NuGet | Magick.NET-Q8-x64 | < 14.7.0 | 14.7.0 |
| OSV | NuGet | Magick.NET-Q8-x86 | < 14.7.0 | 14.7.0 |
References
- https://github.com/ImageMagick/ImageMagick/commit/66dc8f51c11b0ae1f1cdeacd381c3e9a4de69774 · Patch, WEB
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qh3h-j545-h8c9 · Exploit, Vendor Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2025/09/msg00012.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-53101 · ADVISORY
- https://github.com/ImageMagick/ImageMagick6/commit/643deeb60803488373cd4799b24d5786af90972e · WEB
- https://github.com/ImageMagick/ImageMagick · PACKAGE
- https://github.com/dlemstra/Magick.NET/releases/tag/14.7.0 · WEB
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 14 Jul 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 25 Aug 2025)