Magick's failure to limit MVG mutual references forming a loop
Description
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to version 7.1.2-12, Magick fails to check for circular references between two MVGs, leading to a stack overflow. This is a DoS vulnerability, and any situation that allows reading the mvg file will be affected. Version 7.1.2-12 fixes the issue.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
ImageMagick before 7.1.2-12 fails to check for circular references between MVG files, causing a stack overflow and denial of service.
Vulnerability
Overview
CVE-2025-68950 is a denial-of-service (DoS) vulnerability in ImageMagick, a widely used open-source image processing suite. Prior to version 7.1.2-12, the software does not validate for circular references between two Magick Vector Graphics (MVG) files. When processing a crafted MVG file that references another MVG which in turn references the first, the recursive parsing leads to unbounded recursion and ultimately a stack overflow [2][3].
Exploitation and
Attack Surface
The vulnerability is triggered by simply reading a specially crafted MVG file (e.g., via the magick command or any application that uses ImageMagick to process MVG content). The crash observed in the advisory shows a deep call chain running from ReadMVGImage into RenderMVGContent and DrawPrimitive, eventually causing a signal failure [3]. No authentication or special privileges are required; any scenario where an attacker can supply an MVG file for processing is affected [1][2].
Impact
An attacker can cause ImageMagick to crash via a stack overflow, leading to a denial of service. The vulnerability does not appear to enable arbitrary code execution or data leakage; its impact is strictly availability [3].
Mitigation
The issue is fixed in ImageMagick version 7.1.2-12. The commit adds a check to avoid processing MVG references in DrawPrimitive, preventing the circular reference loop [4]. Users should upgrade to the patched version or apply the provided commit. No workarounds are documented [2].
- GitHub - ImageMagick/ImageMagick: ImageMagick is a free, open-source software suite for creating, editing, converting, and displaying images. It supports 200+ formats and offers powerful command-line tools and APIs for automation, scripting, and integration across platforms.
- NVD - CVE-2025-68950
- Magick's failure to limit MVG mutual references forming a loop
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-7… · ImageMagick/ImageMagick@204718c
AI Insight generated on May 19, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
Magick.NET-Q16-AnyCPUNuGet | < 14.10.1 | 14.10.1 |
Magick.NET-Q16-HDRI-AnyCPUNuGet | < 14.10.1 | 14.10.1 |
Magick.NET-Q16-HDRI-OpenMP-arm64NuGet | < 14.10.1 | 14.10.1 |
Magick.NET-Q16-HDRI-OpenMP-x64NuGet | < 14.10.1 | 14.10.1 |
Magick.NET-Q16-HDRI-arm64NuGet | < 14.10.1 | 14.10.1 |
Magick.NET-Q16-HDRI-x64NuGet | < 14.10.1 | 14.10.1 |
Magick.NET-Q16-HDRI-x86NuGet | < 14.10.1 | 14.10.1 |
Magick.NET-Q16-OpenMP-arm64NuGet | < 14.10.1 | 14.10.1 |
Magick.NET-Q16-OpenMP-x64NuGet | < 14.10.1 | 14.10.1 |
Magick.NET-Q16-arm64NuGet | < 14.10.1 | 14.10.1 |
Magick.NET-Q16-x86NuGet | < 14.10.1 | 14.10.1 |
Magick.NET-Q8-AnyCPUNuGet | < 14.10.1 | 14.10.1 |
Magick.NET-Q8-OpenMP-arm64NuGet | < 14.10.1 | 14.10.1 |
Magick.NET-Q8-OpenMP-x64NuGet | < 14.10.1 | 14.10.1 |
Magick.NET-Q8-arm64NuGet | < 14.10.1 | 14.10.1 |
Magick.NET-Q8-x64NuGet | < 14.10.1 | 14.10.1 |
Magick.NET-Q8-x86NuGet | < 14.10.1 | 14.10.1 |
Affected products
27.0.1-0, 7.0.1-1, 7.0.1-10, …+ 1 more
- (no CPE)range: 7.0.1-0, 7.0.1-1, 7.0.1-10, …
- (no CPE)range: <7.1.2-12
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- github.com/advisories/GHSA-7rvh-xqp3-pr8jghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-68950ghsaADVISORY
- github.com/ImageMagick/ImageMagick/commit/204718c2211903949dcfc0df8e65ed066b008decghsax_refsource_MISCWEB
- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-7rvh-xqp3-pr8jghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.