ImageMagick is vulnerable to Stack Overflow in DestroyXMLTree()
ImageMagick
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Magick.NET-Q16-AnyCPU NuGet |
|
|
| Magick.NET-Q16-HDRI-AnyCPU NuGet |
|
|
| Magick.NET-Q16-HDRI-OpenMP-arm64 NuGet |
ImageMagick
| Product | Affected | Fixed in |
|---|---|---|
| Magick.NET-Q16-AnyCPU NuGet |
|
|
| Magick.NET-Q16-HDRI-AnyCPU NuGet |
|
|
| Magick.NET-Q16-HDRI-OpenMP-arm64 NuGet |
|
|
| Magick.NET-Q16-HDRI-arm64 NuGet |
|
|
| Magick.NET-Q16-HDRI-x64 NuGet |
|
|
| Magick.NET-Q16-HDRI-x86 NuGet |
|
|
| Magick.NET-Q16-OpenMP-arm64 NuGet |
|
|
| Magick.NET-Q16-OpenMP-x64 NuGet |
|
|
| Magick.NET-Q16-arm64 NuGet |
|
|
| Magick.NET-Q16-x64 NuGet |
|
|
| Magick.NET-Q16-x86 NuGet |
|
|
| Magick.NET-Q8-AnyCPU NuGet |
|
|
| Magick.NET-Q8-OpenMP-arm64 NuGet |
|
|
| Magick.NET-Q8-OpenMP-x64 NuGet |
|
|
| Magick.NET-Q8-arm64 NuGet |
|
|
| Magick.NET-Q8-x64 NuGet |
|
|
| Magick.NET-Q8-x86 NuGet |
|
|
ImageMagick is free and open-source software used for editing and manipulating digital images. In versions below both 7.1.2-19 and 6.9.13-44, Magick frees the memory of the XML tree via the `DestroyXMLTree()` function; however, this process is executed recursively with no depth limit imposed. When Magick processes an XML file with deeply nested structures, it will exhaust the stack memory, resulting in a Denial of Service (DoS) attack. This issue has been fixed in versions 6.9.13-44 and 7.1.2-19.
From the CVE record · GitHub_M
ImageMagick frees XML trees recursively without a depth limit in affected versions. Processing an XML file with deeply nested structures can exhaust stack memory and cause a denial of service. The input does not specify whether authentication or user interaction is required.
Check installations of ImageMagick before 6.9.13-44 or 7.1.2-19 and the listed NuGet Magick.NET packages before 14.12.0.