
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-68950 is a Denial of Service (DoS) vulnerability in ImageMagick caused by uncontrolled recursion when processing MVG (Magick Vector Graphics) files with circular references. Prior to version 7.1.2-12, ImageMagick fails to detect circular references between two MVG files, leading to a stack overflow crash. The vulnerability was disclosed on December 30, 2025, and affects all ImageMagick versions before 7.1.2-12, as well as Magick.NET NuGet packages before version 14.10.1. It carries a CVSS v3.1 base score of 6.2 (Medium) per NVD, though the GitHub Advisory rates it 4.0 (Moderate) (Github Advisory, ImageMagick Advisory).
The root cause is classified as CWE-674 (Uncontrolled Recursion): ImageMagick's DrawPrimitive function in MagickCore/draw.c does not block recursive loading of MVG-format images, allowing two MVG files that mutually reference each other to trigger infinite recursion. When the magick format is mvg, the code previously called ReadImage() without restriction, enabling a loop between ReadMVGImage → DrawImage → RenderMVGContent → DrawPrimitive → ReadImage → ReadMVGImage until the stack is exhausted. The fix (commit 204718c) adds a single-line check to block MVG from being loaded recursively within DrawPrimitive, alongside existing blocks for ftp, http, https, and vid schemes. No privileges or user interaction are required; the attacker only needs to supply a crafted MVG file to any code path that reads it (ImageMagick Advisory, Patch Commit).
Successful exploitation causes a stack overflow, crashing the ImageMagick process and resulting in a complete loss of availability for the affected service. There is no impact on confidentiality or data integrity — the vulnerability is purely a DoS condition. Any application or pipeline that processes user-supplied MVG files (e.g., web services, image conversion tools, document processors) is at risk of being crashed or rendered unresponsive by a single malicious file (Github Advisory).
L1.mvg and L2.mvg) that mutually reference each other — for example, L1.mvg contains a directive that causes ImageMagick to read mvg:L2.mvg, and L2.mvg contains a directive referencing mvg:L1.mvg.L1.mvg to any ImageMagick processing pipeline — this could be via a file upload endpoint, a command-line invocation, or an API that accepts image files../magick mvg:L1.mvg out.png. ImageMagick begins reading L1.mvg, which triggers reading L2.mvg, which triggers reading L1.mvg again, creating infinite recursion.ReadMVGImage → DrawImage → RenderMVGContent → DrawPrimitive → ReadImage → ReadMVGImage → ...) exhausts the process stack, causing a fatal crash (SIGSEGV/SIGABRT) and a denial of service (ImageMagick Advisory).magick, convert, or application embedding libMagickCore) terminating unexpectedly with a segmentation fault or stack overflow signal (SIGSEGV, SIGABRT).DEADLYSIGNAL and a stack trace cycling through ReadMVGImage (coders/mvg.c), DrawImage, RenderMVGContent, and DrawPrimitive (MagickCore/draw.c) repeatedly.mvg: directives pointing to each other.Upgrade ImageMagick to version 7.1.2-12 or later, which includes the fix that blocks recursive MVG loading within DrawPrimitive. For .NET users, upgrade Magick.NET NuGet packages to version 14.10.1 or later. As a workaround where upgrading is not immediately possible, restrict or disable processing of MVG-format files in ImageMagick's policy configuration (/etc/ImageMagick-7/policy.xml) by adding <policy domain="coder" rights="none" pattern="MVG" />. Debian LTS users should apply the security update referenced in the Debian LTS announcement (Github Advisory, Patch Commit, Debian LTS).
The vulnerability was reported by researcher ylwango613 and published by ImageMagick maintainer dlemstra on December 30, 2025. Debian issued an LTS security update (DLA-4429-1) shortly after disclosure, and openSUSE and Amazon Linux 2 also released patches. Coverage has been limited to routine security advisory aggregators and Linux distribution security channels, with no notable researcher commentary or significant social media discussion beyond automated CVE feeds (Debian LTS, ImageMagick Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."