# CVE-2025-53101: ImageMagick has Stack Buffer Overflow in image.c

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.95%, higher than 62% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-07-14T19:51:53.338Z
- Modified: 2026-09-10T03:50:31.449Z
- Also known as: GHSA-qh3h-j545-h8c9
- Weaknesses: CWE-124
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ImageMagick ImageMagick: < 7.1.2-0; < 6.9.13-26; before 6.9.13-26; from 7.0.0-0 before 7.1.2-0
- Magick.NET-Q16-AnyCPU (NuGet): before 14.7.0
- Magick.NET-Q16-HDRI-AnyCPU (NuGet): before 14.7.0
- Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet): before 14.7.0
- Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet): before 14.7.0
- Magick.NET-Q16-HDRI-arm64 (NuGet): before 14.7.0
- Magick.NET-Q16-HDRI-x64 (NuGet): before 14.7.0
- Magick.NET-Q16-HDRI-x86 (NuGet): before 14.7.0
- Magick.NET-Q16-OpenMP-arm64 (NuGet): before 14.7.0
- Magick.NET-Q16-OpenMP-x64 (NuGet): before 14.7.0
- Magick.NET-Q16-arm64 (NuGet): before 14.7.0
- Magick.NET-Q16-x64 (NuGet): before 14.7.0
- Magick.NET-Q16-x86 (NuGet): before 14.7.0
- Magick.NET-Q8-AnyCPU (NuGet): before 14.7.0
- Magick.NET-Q8-OpenMP-arm64 (NuGet): before 14.7.0
- Magick.NET-Q8-OpenMP-x64 (NuGet): before 14.7.0
- Magick.NET-Q8-arm64 (NuGet): before 14.7.0
- Magick.NET-Q8-x64 (NuGet): before 14.7.0
- Magick.NET-Q8-x86 (NuGet): before 14.7.0

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qh3h-j545-h8c9> (exploit, vendor-advisory, web)
- <https://github.com/ImageMagick/ImageMagick/commit/66dc8f51c11b0ae1f1cdeacd381c3e9a4de69774> (patch, 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)

## Sources

- CVE List: [CVE-2025-53101](https://www.cve.org/CVERecord?id=CVE-2025-53101), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-qh3h-j545-h8c9](https://github.com/advisories/GHSA-qh3h-j545-h8c9), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-53101](https://nvd.nist.gov/vuln/detail/CVE-2025-53101), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-53101 · Whole record: https://cve.day/CVE-2025-53101.json · Rebuilt by cve.day 2026-11-25T22:59:01.246Z
