Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessUpload crafted RSVG image to processor
-
ExploitRSVG decoder hits resource limit
-
Executionsvg_handle freed twice then reused
-
ImpactImageMagick process crashes (DoS)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Double free prevention
|
| Exploitation Conditions | Exploitation requires ImageMagick to be compiled WITHOUT Cairo support, so the RSVG delegate path in coders/svg.c (RenderRSVGImage) is used for SVG rendering. The attacker must supply a crafted RSVG image that reaches an internal resource limit, which triggers the double-free/use-after-free on svg_handle. Limiting factors: the non-Cairo build is not the default for most mainstream distributions and packages; the SVG/RSVG delegate must be enabled and the application must pass attacker-controlled SVG to ImageMagick; and impact is confined to a process crash (availability only), with no confidentiality or integrity effect. No authentication is required per PR:N, but the non-default build requirement substantially narrows the exposed population. |
| Impact | Signals align toward LOW real-world priority despite the 7.5 'High' CVSS. The CVSS vector (AV:N/AC:L/PR:N/UI:N) reflects only availability impact (C:N/I:N/A:H) - this is a pure denial-of-service crash (CWE-415 double-free leading to use-after-free), not RCE or data exposure. Corroborating signals are consistently low: EPSS is 0.32% (22nd percentile), SSVC reports Exploitation=none, Automatable=no, Technical Impact=partial, and there is no CISA KEV listing. Critically, the description constrains exploitation to builds compiled WITHOUT Cairo support, a non-default configuration for most mainstream distributions and packages (which typically ship Cairo-backed SVG rendering). This conflicts with the AC:L in the published vector: CVSS treats the attack as low-complexity, but the real precondition (an uncommon build plus reaching an internal resource limit) makes widespread opportunistic exploitation unlikely and would restrict it to the subset of non-Cairo builds. No public exploit identified at time of analysis - the referenced GitHub artifacts are the fix commits and advisory, not weaponized POC code. Net: a genuine, patch-worthy memory-safety DoS, but not an emergency for most deployments. |
| Exploit ScenarioDerived | An attacker submits a crafted RSVG/SVG image to a service that uses ImageMagick (built without Cairo) to decode or convert uploaded images; the file is designed to hit the RSVG decoder's resource limit, triggering a double-free and subsequent use of freed memory that crashes the worker process. Repeated submissions cause a denial of service against the image-processing pipeline. No public exploit is identified at time of analysis, and exploitation requires the target to be built without Cairo support. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 21, 2026
Denial of service in ImageMagick's RSVG delegate reachable through crafted SVG images: when ImageMagick is compiled without Cairo support, a malicious RSVG file that hits an internal resource limit causes the decoder to free image state twice and then touch freed memory, terminating the process. Affected builds are ImageMagick 7.x before 7.1.2-30 and 6.x before 6.9.13-55; the non-Cairo configuration is not the default for most mainstream distributions, and impact is limited to availability (no confidentiality or integrity effect). No public exploit code was identified at time of analysis and the issue is not in CISA KEV; EPSS is low at 0.32% (22nd percentile), and SSVC rates exploitation as none and automatable as no, so real-world priority is LOW despite the 7.5 CVSS base score.
Earlier versions of this analysis (1)
A crafted RSVG/SVG image can crash ImageMagick builds that lack Cairo support by forcing the RSVG decoder to free image state twice and then operate on freed memory (CWE-415 double free), yielding an availability-only denial of service rated CVSS 5.9 (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H). The flaw affects ImageMagick versions prior to 7.1.2-30 and 6.9.13-55 and is reachable by unauthenticated remote attackers who can get the application to process a malicious image, though exploitation requires the target to be a non-Cairo build and the image must actually trip an internal resource limit. Vendor fixes are published for both the 7.x and 6.x lines; no public exploit code or confirmed active exploitation was identified at time of analysis.
RemediationAI
Vendor-released patch: upgrade to ImageMagick 7.1.2-30 or ImageMagick 6.9.13-55, which replace the double-freeing rsvg_handle_free() call with g_object_unref() and correct the surrounding conditional compilation (commits 326451aae51ac2dabc99fe66e063de6ec14cf8c8 for 7.x and 04a4c5b89c034cf2c93bb0a10044332d941b4fa5 for 6.x, detailed in advisory GHSA-f2r2-qw7g-3c8x). Most packaged distributions build ImageMagick with Cairo and are therefore not on the vulnerable path, so confirming the compile-time configuration is the fastest way to triage a deployment. Where upgrading immediately is not possible, the most direct mitigation is to rebuild with Cairo support (--with-cairo) so the internal MSVG renderer is used instead of the RSVG delegate; the trade-off is a different SVG rendering fidelity plus a build-maintenance burden. Alternatively, disable SVG handling for untrusted input by removing the MSVG/RSVG entries from the coder policy in policy.xml, which eliminates the attack surface but also removes SVG support for legitimate users; front-end validation that rejects or sanitizes SVG uploads where only raster formats are expected achieves a similar reduction. Set explicit resource limits (width, height, area, memory, time) in policy.xml as defense in depth, and note that these limits are what the attacker triggers - they are useful for bounding resource consumption but should not be treated as a fix for the memory-lifetime bug itself.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw lives in coders/svg.c in RenderRSVGImage(), the code path taken when ImageMagick is built without Cairo and therefore delegates SVG rendering to librsvg's RSVG API rather than its internal MSVG renderer. librsvg handles are reference-counted GObject instances, but the code released the handle with the deprecated rsvg_handle_free() call on the normal path; when rendering aborts because a resource limit is reached, teardown runs again and the handle's memory is released twice and then dereferenced - the classic CWE-415 double-free pattern, which manifests as a use-after-free and process abort. The upstream fix replaces rsvg_handle_free(svg_handle) with g_object_unref(svg_handle) in both the ImageMagick 7 and ImageMagick 6 branches and corrects a mismatched preprocessor block (#endif to #else/#endif) around the Cairo-conditional code. Because the defect is a memory-lifetime bug in error handling rather than a parsing overflow, the realistic outcome is a crash of the ImageMagick process handling the image, which for a service converting user-supplied images means repeated request-triggered restarts.
Know when Imagemagick gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Network-reachable crafted image with no auth (AV:N/PR:N/UI:N), but AC:H because it needs a non-default no-Cairo build plus reaching a resource limit; availability-only impact (A:H).
Primary rating from Vendor (GitHub_M).
CVSS VectorNVD
Lifecycle Timeline
5DescriptionNVD
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to 7.1.2-30 and 6.9.13-55, when ImageMagick is built without Cairo support, a crafted RSVG image that reaches a resource limit can cause the RSVG decoder to free image state twice and then use freed memory, crashing the process. This issue is fixed in versions 7.1.2-30 and 6.9.13-55.
Technical POC Analysis
CWE-415 (double free), with a CWE-416 (use after free) component - the advisory lists both.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
ImageMagick builds compiled without Cairo support can be terminated by processing a specially crafted SVG image, creating a denial-of-service risk for any service that converts or thumbnails untrusted image uploads. Leadership should care because the exposure is availability-only and confined to non-default build configurations, but internet-facing image processing pipelines could still suffer repeated service restarts and disrupted user workflows until upgraded.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
More in Imagemagick
View allThe (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.
The (1) HTTP and (2) FTP coders in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allow remote attackers to conduct
The EPHEMERAL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to delete arbitrary fi
ReadGIFImage in coders/gif.c in ImageMagick 7.0.6-1 and GraphicsMagick 1.3.26 leaves the palette uninitialized when proc
Integer overflow in MagickCore/profile.c in ImageMagick before 7.0.2-1 allows remote attackers to cause a denial of serv
The LABEL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to read arbitrary files vi
The OpenBlob function in blob.c in GraphicsMagick before 1.3.24 and ImageMagick allows remote attackers to execute arbit
The DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to have unspecified impact b
The ReadDCMImage function in DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to
The DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to have unspecified impact b
Unauthenticated attackers can write arbitrary files on a Ruby on Rails host and, when Active Storage uses the Disk servi
ImageMagick 7.0.6-5 has a memory leak vulnerability in ReadWEBPImage in coders/webp.c because memory is not freed in cer
EUVD-2026-94410
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB