ImageMagick has a Stack Overflow in DestroyXMLTree()

GHSA-fwvm-ggf6-2p4x
HIGH 7.5OSV

At a glance

Source
OSV
Published
Updated
CVE
CVE-2026-33908
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVE severity
HIGH 7.5 · CVE-2026-33908

Description

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.

References

Affected packages

PackageVersions
NuGet · Magick.NET-Q16-AnyCPUintroduced 0, fixed 14.12.0
NuGet · Magick.NET-Q16-HDRI-AnyCPUintroduced 0, fixed 14.12.0
NuGet · Magick.NET-Q16-HDRI-OpenMP-arm64introduced 0, fixed 14.12.0
NuGet · Magick.NET-Q16-HDRI-arm64introduced 0, fixed 14.12.0
NuGet · Magick.NET-Q16-HDRI-x64introduced 0, fixed 14.12.0
NuGet · Magick.NET-Q16-HDRI-x86introduced 0, fixed 14.12.0
NuGet · Magick.NET-Q16-OpenMP-arm64introduced 0, fixed 14.12.0
NuGet · Magick.NET-Q16-OpenMP-x64introduced 0, fixed 14.12.0
NuGet · Magick.NET-Q16-arm64introduced 0, fixed 14.12.0
NuGet · Magick.NET-Q16-x64introduced 0, fixed 14.12.0
NuGet · Magick.NET-Q16-x86introduced 0, fixed 14.12.0
NuGet · Magick.NET-Q8-AnyCPUintroduced 0, fixed 14.12.0
NuGet · Magick.NET-Q8-OpenMP-arm64introduced 0, fixed 14.12.0
NuGet · Magick.NET-Q8-OpenMP-x64introduced 0, fixed 14.12.0
NuGet · Magick.NET-Q8-arm64introduced 0, fixed 14.12.0
NuGet · Magick.NET-Q8-x64introduced 0, fixed 14.12.0
NuGet · Magick.NET-Q8-x86introduced 0, fixed 14.12.0

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database