ImageMagick 6.9.13-40/7.1.2-15: SVG DoS via off-by-one boundary
CVE-2026-25989 Published on February 24, 2026
ImageMagick has integer overflow or wraparound and incorrect conversion between numeric types in the internal SVG decoder
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, a crafted SVG file can cause a denial of service. An off-by-one boundary check (`>` instead of `>=`) that allows bypass the guard and reach an undefined `(size_t)` cast. Versions 7.1.2-15 and 6.9.13-40 contain a patch.
Vulnerability Analysis
CVE-2026-25989 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a high impact on availability.
Weakness Types
Integer Overflow or Wraparound
The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control. An integer overflow or wraparound occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may wrap to become a very small or negative number. While this may be intended behavior in circumstances that rely on wrapping, it can have security consequences if the wrap is unexpected. This is especially the case if the integer overflow can be triggered using user-supplied inputs. This becomes security-critical when the result is used to control looping, make a security decision, or determine the offset or size in behaviors such as memory allocation, copying, concatenation, etc.
Incorrect Conversion between Numeric Types
When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur.
Products Associated with CVE-2026-25989
Want to know whenever a new CVE is published for ImageMagick? stack.watch will email you.
Affected Versions
ImageMagick:- Version >= 7.0.0, < 7.1.2-15 is affected.
- Version < 6.9.13-40 is affected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2026-25989
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| nuget | Magick.NET-Q8-x86 | < 14.10.3 | 14.10.3 |
| nuget | Magick.NET-Q8-x64 | < 14.10.3 | 14.10.3 |
| nuget | Magick.NET-Q8-arm64 | < 14.10.3 | 14.10.3 |
| nuget | Magick.NET-Q8-OpenMP-x64 | < 14.10.3 | 14.10.3 |
| nuget | Magick.NET-Q8-OpenMP-arm64 | < 14.10.3 | 14.10.3 |
| nuget | Magick.NET-Q8-AnyCPU | < 14.10.3 | 14.10.3 |
| nuget | Magick.NET-Q16-x86 | < 14.10.3 | 14.10.3 |
| nuget | Magick.NET-Q16-x64 | < 14.10.3 | 14.10.3 |
| nuget | Magick.NET-Q16-arm64 | < 14.10.3 | 14.10.3 |
| nuget | Magick.NET-Q16-OpenMP-x86 | < 14.10.3 | 14.10.3 |
| nuget | Magick.NET-Q16-OpenMP-x64 | < 14.10.3 | 14.10.3 |
| nuget | Magick.NET-Q16-OpenMP-arm64 | < 14.10.3 | 14.10.3 |
| nuget | Magick.NET-Q16-HDRI-x86 | < 14.10.3 | 14.10.3 |
| nuget | Magick.NET-Q16-HDRI-x64 | < 14.10.3 | 14.10.3 |
| nuget | Magick.NET-Q16-HDRI-arm64 | < 14.10.3 | 14.10.3 |
| nuget | Magick.NET-Q16-HDRI-OpenMP-x64 | < 14.10.3 | 14.10.3 |
| nuget | Magick.NET-Q16-HDRI-OpenMP-arm64 | < 14.10.3 | 14.10.3 |
| nuget | Magick.NET-Q16-HDRI-AnyCPU | < 14.10.3 | 14.10.3 |
| nuget | Magick.NET-Q16-AnyCPU | < 14.10.3 | 14.10.3 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.