
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-68618 is a Denial of Service vulnerability in ImageMagick caused by uncontrolled recursion during SVG file parsing. When processing a maliciously crafted SVG file, ImageMagick fails to limit the depth of recursive calls in the SVGStartElement function, leading to a stack overflow and application crash. All versions of ImageMagick prior to 7.1.2-12 are affected, as are Magick.NET NuGet packages prior to version 14.10.1. The vulnerability was disclosed on December 30, 2025, with a CVSS v3.1 base score of 5.3 (Moderate) per the official advisory (GitHub Advisory, ImageMagick Advisory).
The root cause is CWE-674 (Uncontrolled Recursion): ImageMagick's SVG coder (coders/svg.c) did not enforce a maximum recursion depth when processing nested SVG elements via the SVGStartElement callback. Each nested XML element (e.g., deeply nested <g> tags) triggers a call to ResizeQuantumMemory to expand the scale array, and without a depth limit, deeply nested SVG structures exhaust the program stack, causing a stack overflow. The fix in commit 6f431d4 adds a check against MagickMaxRecursionDepth in both coders/svg.c and coders/msl.c, stopping the parser and throwing a DrawError when the limit is exceeded. The attack requires no authentication or user interaction — only the ability to supply a malicious SVG file to an ImageMagick-enabled application (ImageMagick Advisory, Fix Commit).
Successful exploitation causes a stack overflow crash in the ImageMagick process, resulting in a denial of service condition. There is no impact on confidentiality or data integrity — the vulnerability is limited to availability. Any application or service that processes user-supplied SVG files through ImageMagick (e.g., web image upload pipelines, document converters, thumbnail generators) is at risk of service disruption or repeated crashes if an attacker can submit malicious SVG input (GitHub Advisory, ImageMagick Advisory).
<g> tags) that exceeds the program's stack capacity when parsed recursively.SVGStartElement callback in coders/svg.c is called for each nested element, incrementing the recursion counter and calling ResizeQuantumMemory without a depth limit.magick, convert, or embedded library calls); error messages containing VectorGraphicsNestedTooDeeply or DrawError in ImageMagick logs (post-patch behavior that may indicate attempted exploitation).<g> tags).Upgrade ImageMagick to version 7.1.2-12 or later, which enforces a maximum recursion depth (MagickMaxRecursionDepth) in the SVG and MSL coders. For Magick.NET users, upgrade to version 14.10.1 or later. As a workaround where upgrading is not immediately possible, disable SVG file processing in ImageMagick's policy configuration (/etc/ImageMagick-7/policy.xml) by setting <policy domain="coder" rights="none" pattern="SVG" />, or implement input validation to reject SVG files before they reach ImageMagick. Debian LTS, Ubuntu, SUSE, openSUSE, and Amazon Linux 2 have all issued updated packages addressing this vulnerability (GitHub Advisory, Debian LTS, Ubuntu Advisory).
The vulnerability was reported by researcher ylwango613 and published by ImageMagick maintainer dlemstra on December 30, 2025. Multiple Linux distributions — including Debian, Ubuntu, SUSE, openSUSE, and Amazon Linux 2 — issued security advisories and updated packages shortly after disclosure. Security scanning vendors including Tenable (Nessus) and Qualys added detection plugins for the vulnerability. Community coverage was primarily technical and focused on patch availability rather than active exploitation concerns (Debian LTS, Ubuntu 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."