# CVE-2025-55298: ImageMagick Format String Bug in InterpretImageFilename leads to arbitrary code execution

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 6.9.13-28, 7.1.2-2 (CNA); fix release not confirmed
- Status: published
- Published: 2025-08-26 · Modified: 2025-11-03
- Aliases: UBUNTU-CVE-2025-55298, DEBIAN-CVE-2025-55298, GHSA-9ccg-6pjw-x645, ALPINE-CVE-2025-55298
- Record: https://cvemate.com/vulnerability/CVE-2025-55298 · JSON: https://cvemate.com/vulnerability/CVE-2025-55298/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 5.204%, percentile 92.705%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 22)

- alpine imagemagick (Alpine Linux): ≥ 7.0.0-0, \< 7.1.2.8-r0 \| \< 7.1.2.8-r0
- debian imagemagick (Debian): \< 8:6.9.11.60+dfsg-1.6+deb12u4 \| \< 8:7.1.1.43+dfsg1-1+deb13u2 \| \< 8:7.1.2.3+dfsg1-1
- ubuntu imagemagick (Ubuntu): \< 8:6.7.7.10-6ubuntu3.13+esm15 \| \< 8:6.8.9.9-7ubuntu5.16+esm14 \| \< 8:6.9.7.4+dfsg-16ubuntu6.15+esm6 \| \< 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm4 \| \< 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm4 \| \< 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm3
- imagemagick imagemagick: \< 7.1.2-2 \| \< 6.9.13-28 \| ≥ 7.0.0-0, \< 7.1.2-2
- NuGet Magick.NET-Q16-AnyCPU (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-arm64 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-HDRI-AnyCPU (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-HDRI-arm64 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-HDRI-x64 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-HDRI-x86 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-OpenMP-arm64 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-OpenMP-x64 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-x64 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-x86 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q8-AnyCPU (NuGet): \< 14.8.1
- NuGet Magick.NET-Q8-arm64 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q8-OpenMP-arm64 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q8-OpenMP-x64 (NuGet): \< 14.8.1

## References

- <https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-9ccg-6pjw-x645>
- <https://github.com/ImageMagick/ImageMagick/commit/439b362b93c074eea6c3f834d84982b43ef057d5>
- <https://github.com/dlemstra/Magick.NET/releases/tag/14.8.1>
- <https://lists.debian.org/debian-lts-announce/2025/09/msg00012.html>
- <https://ubuntu.com/security/CVE-2025-55298>
- <https://www.cve.org/CVERecord?id=CVE-2025-55298>
- <https://github.com/ImageMagick/ImageMagick/commit/1f93323df9d8c011c31bc4c6880390071f7fb895>
- <https://github.com/ImageMagick/ImageMagick6/commit/d789bdf7aabb955b88fbc95653aa9dbf6c5d259f>
- <https://github.com/ImageMagick/ImageMagick6/commit/731ce3a7aa7fabebaa322711c04ce5f5cf22edf4>
- <https://ubuntu.com/security/notices/USN-7812-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-55298>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-55298>
- <https://github.com/ImageMagick/ImageMagick>
- <https://security.alpinelinux.org/vuln/CVE-2025-55298>

---

Data as of 2026-12-05T09:11:21.527Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
