Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach SVG conversion endpoint
-
DeliverySubmit crafted image for SVG encoding
-
ExploitTrigger error path in WriteSVGImage
-
ExecutionLeak token/primitive_info memory
-
PersistRepeat to exhaust memory
-
ImpactDenial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup, leak prevention
|
| Exploitation Conditions | Exploitation requires that the target application invoke ImageMagick's SVG ENCODER - i.e., write/convert an image to SVG output (WriteSVGImage) - which is the key limiting factor: deployments that only read SVG or never emit SVG are not affected. The crafted input must drive the encoder into one of the two patched error conditions - unbalanced graphic-context push/pop ('UnbalancedGraphicContextPushPop') or vector graphics nested too deeply ('VectorGraphicsNestedTooDeeply') - where the pre-patch code threw the writer exception without freeing the 'token' string and 'primitive_info' buffer. Further limiting realistic risk: each trigger leaks only a bounded amount of memory, so a practical denial of service needs repeated/high-volume processing to exhaust host memory; no authentication or user interaction is required where such an SVG-output path is exposed. Affected versions: ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32. |
| Impact | This is a moderate, availability-only issue that should be patched during normal cycles rather than treated as an emergency. The input CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L) scores 6.9 and indicates a remotely reachable, unauthenticated, low-complexity flaw with LOW availability impact and zero confidentiality or integrity impact - consistent with CWE-401 (memory leak) and the DoS characterization. No EPSS score, KEV listing, or POC was provided; per the available signals this is 'no public exploit identified at time of analysis.' The signals are internally consistent (no KEV/POC to contradict the modest CVSS), so there is no conflict to flag, but note a nuance the raw CVSS obscures: the leak is in the SVG ENCODER (WriteSVGImage, the output/write path), so network exploitability only materializes where the target application actually converts images TO SVG - a meaningful real-world limiter not captured by AV:N alone. A single trigger leaks a bounded amount of memory (a token string plus the primitive_info buffer), so denial of service requires repeated, sustained processing to exhaust memory. Verdict: real but low-urgency; the 6.9 overstates practical risk for deployments that do not emit SVG output. |
| Exploit ScenarioDerived | An attacker uploads a crafted image to a web service that uses ImageMagick to convert uploaded files into SVG output. Each conversion drives the SVG encoder down an error path (unbalanced graphic-context push/pop or excessively nested vector graphics) that abandons allocated memory; by submitting many such files the attacker steadily grows the process's memory footprint until the service degrades or is OOM-killed. No public exploit code was provided, and the technical impact is limited to availability. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 12, 2026
A memory leak in ImageMagick's SVG encoder (WriteSVGImage) causes allocated memory to be unreleased when crafted images drive the encoder into specific error paths, allowing repeated processing of such images to exhaust available memory and degrade or halt the service. Affected are releases before 6.9.13-57 (6.x) and 7.x before 7.1.2-32, and exploitation requires the target deployment to actually write or convert images to SVG output, not merely read SVG input. The issue is availability-only (no confidentiality or integrity impact), no public exploit code has been identified at time of analysis, and vendor patches are available.
RemediationAI
Upgrade immediately to ImageMagick 7.1.2-32 or later on the 7.x line, or to ImageMagick 6.9.13-57 or later on the 6.x line, per the vendor advisory at https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-w288-jj5x-hhvp; the corresponding fixes are commit 2eff6be3785d980bb5190244ad432fe6282d29e3 (7.x) and commit a568d698ffb3dd57134fef8e9b64b61f1154a1df (6.x), both of which free the leaked 'token' and 'primitive_info' allocations on the error paths. Where patching must be deferred, and only if the deployment does not legitimately need SVG output, disable the SVG encoder write path by restricting coder access via ImageMagick's policy.xml (e.g., setting the SVG coder to rights="none") - noting this also blocks legitimate SVG conversion; alternatively, constrain the blast radius of the leak by enforcing memory resource limits using the MAGICK_MEMORY_LIMIT environment variable or the -limit memory option and by setting anvil-level controls such as MAGICK_TMPDIR size caps, accepting that hard limits may cause legitimate large jobs to fail; and rate-limit or sandbox (e.g., container memory cgroups) any endpoint that converts attacker-supplied images to SVG so the bounded per-request leak cannot accumulate to host exhaustion.
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 resides in ImageMagick's SVG writing code, coders/svg.c, specifically the WriteSVGImage() function that serializes an image into SVG markup. The root cause is CWE-401 (Missing Release of Memory after Effective Lifetime): when the encoder encounters either an "UnbalancedGraphicContextPushPop" condition or a "VectorGraphicsNestedTooDeeply" condition, the pre-patch code called ThrowWriterException immediately, bypassing cleanup of the dynamically allocated 'token' string and the 'primitive_info' buffer. The upstream fixes wrap each throw site in a block that explicitly calls DestroyString(token) and RelinquishMagickMemory(primitive_info) before raising the exception, in both the ImageMagick 7 codebase (commit 2eff6be3785d980bb5190244ad432fe6282d29e3) and the ImageMagick 6 codebase (commit a568d698ffb3dd57134fef8e9b64b61f1154a1df). Because the leak is bounded per trigger, sustained abuse requires high-volume or repeated processing of crafted images through the SVG output path.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Remotely reachable image-processing path, no auth or interaction, so AV:N/AC:L/PR:N/UI:N; a memory leak degrades only availability (A:L) with no C/I impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32 contains a memory leak in the SVG encoder (WriteSVGImage) that fails to release allocated memory when handling crafted images. Attackers can supply crafted image files that are processed by the SVG encoder to leak memory and cause a denial of service through resource consumption.
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
ImageMagick 7.0.6-5 has a memory leak vulnerability in ReadWEBPImage in coders/webp.c because memory is not freed in cer
Heap buffer overflow in ImageMagick's XBM image decoder (ReadXBMImage) lets remote attackers write attacker-controlled d
EUVD-2026-97706
GHSA-w755-6q7g-rjrx
NVD
CVE.org
EPSS
Exploit-DB