What’s Vulnerable › Vulnerabilities
CVE-2025-55298: ImageMagick Format String Bug in InterpretImageFilename leads to arbitrary code execution
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 4.7% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2025-08-26 · updated 2026-06-17
- Weakness: CWE-123
Description
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to ImageMagick versions 6.9.13-28 and 7.1.2-2, a format string bug vulnerability exists in InterpretImageFilename function where user input is directly passed to FormatLocaleString without proper sanitization. An attacker can overwrite arbitrary memory regions, enabling a wide range of attacks from heap overflow to remote code execution. This issue has been patched in versions 6.9.13-28 and 7.1.2-2.
Affected products
- ImageMagick: before 6.9.13-28; from 7.0.0-0 before 7.1.2-2 — fixed in 6.9.13-28, 7.1.2-2
How to fix
Upgrade to a fixed version: ImageMagick 6.9.13-28, 7.1.2-2. Check the vendor advisory for mitigations.
References
- https://github.com/ImageMagick/ImageMagick/commit/439b362b93c074eea6c3f834d84982b43ef057d5
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-9ccg-6pjw-x645
- https://github.com/dlemstra/Magick.NET/releases/tag/14.8.1
- https://lists.debian.org/debian-lts-announce/2025/09/msg00012.html
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-9ccg-6pjw-x645
Get alerted when CVE-2025-55298 or the next vulnerability affects your stack