CVE-2025-55298
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.
Description as published by the source, in English.
Key facts
- Published
- 2025-08-26
- Last modified
- 2026-06-17
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
4.4 %
higher than 90 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Magick.NET-Q16-AnyCPU (NuGet) | < 14.8.1 | Affected | |
| Magick.NET-Q16-arm64 (NuGet) | < 14.8.1 | Affected | |
| Magick.NET-Q16-HDRI-AnyCPU (NuGet) | < 14.8.1 | Affected | |
| Magick.NET-Q16-HDRI-arm64 (NuGet) | < 14.8.1 | Affected | |
| Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet) | < 14.8.1 | Affected | |
| Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet) | < 14.8.1 | Affected | |
| Magick.NET-Q16-HDRI-x64 (NuGet) | < 14.8.1 | Affected | |
| Magick.NET-Q16-HDRI-x86 (NuGet) | < 14.8.1 | Affected | |
| Magick.NET-Q16-OpenMP-arm64 (NuGet) | < 14.8.1 | Affected | |
| Magick.NET-Q16-OpenMP-x64 (NuGet) | < 14.8.1 | Affected | |
| Magick.NET-Q16-x64 (NuGet) | < 14.8.1 | Affected | |
| Magick.NET-Q16-x86 (NuGet) | < 14.8.1 | Affected | |
| Magick.NET-Q8-AnyCPU (NuGet) | < 14.8.1 | Affected | |
| Magick.NET-Q8-arm64 (NuGet) | < 14.8.1 | Affected | |
| Magick.NET-Q8-OpenMP-arm64 (NuGet) | < 14.8.1 | Affected | |
| Magick.NET-Q8-OpenMP-x64 (NuGet) | < 14.8.1 | Affected | |
| Magick.NET-Q8-x64 (NuGet) | < 14.8.1 | Affected | |
| Magick.NET-Q8-x86 (NuGet) | < 14.8.1 | Affected | |
| Imagemagick | Imagemagick | < 6.9.13-28 | Affected |
| Imagemagick | Imagemagick | ≥ 7.0.0-0, < 7.1.2-2 | Affected |
Weakness type
-
CWE-123: Write-what-where Condition
Any condition where the attacker has the ability to write an arbitrary value to an arbitrary location, often as the result of a buffer overflow.
-
CWE-134: Use of Externally-Controlled Format String
The product uses a function that accepts a format string as an argument, but the format string originates from an external source.
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://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-9ccg-6pjw-x645
- https://lists.debian.org/debian-lts-announce/2025/09/msg00012.html
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.