Vulnerabilities · 2025 · Imagemagick
CVE-2025-53101
Imagemagick vulnerability
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.
Affected products
Imagemagick. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Imagemagick runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qh3h-j545-h8c9
- nvd.nist.gov/vuln/detail/CVE-2025-53101
- github.com/ImageMagick/ImageMagick/commit/66dc8f51c11b0ae1f1cdeacd381c3e9a4de69774
- github.com/ImageMagick/ImageMagick6/commit/643deeb60803488373cd4799b24d5786af90972e
- github.com/dlemstra/Magick.NET/releases/tag/14.7.0
- lists.debian.org/debian-lts-announce/2025/09/msg00012.html
- github.com/advisories/GHSA-qh3h-j545-h8c9
- nvd.nist.gov/vuln/detail/CVE-2025-53101
- cve.org/CVERecord?id=CVE-2025-53101
More vulnerabilities in Imagemagick products
CVE-2026-23876CVE-2026-23874CVE-2026-22770CVE-2025-69204CVE-2025-68950CVE-2025-68618CVE-2025-68469CVE-2025-66628All 670
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.