Skip to main content

ImageMagick CVE-2026-109262

| EUVDEUVD-2026-97706 MEDIUM
Memory Leak (CWE-401)
2026-10-12 VulnCheck GHSA-w755-6q7g-rjrx
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach SVG conversion endpoint
  2. Delivery
    Submit crafted image for SVG encoding
  3. Exploit
    Trigger error path in WriteSVGImage
  4. Execution
    Leak token/primitive_info memory
  5. Persist
    Repeat to exhaust memory
  6. Impact
    Denial 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

ImageMagick 7.0.0-0 <7.1.2-32
ImageMagick 0 <6.9.13-57

Affected Packages

euvd imagemagick fix: 6.9.13-57, 7.1.2-32

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

Vendor (VulnCheck) PRIMARY 6.9 MEDIUM
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
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Red Hat 5.3 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.4%
Top 69% exploitable
Prevalence
High
ImageMagick is a near-default image-processing library across countless web backends
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2016-3714 HIGH POC
8.4 May 05

The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.

CVE-2016-3718 MEDIUM POC
5.5 May 05

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

CVE-2016-3715 MEDIUM POC
5.5 May 05

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

CVE-2017-15277 MEDIUM POC
6.5 Oct 12

ReadGIFImage in coders/gif.c in ImageMagick 7.0.6-1 and GraphicsMagick 1.3.26 leaves the palette uninitialized when proc

CVE-2016-5841 CRITICAL POC
9.8 Dec 13

Integer overflow in MagickCore/profile.c in ImageMagick before 7.0.2-1 allows remote attackers to cause a denial of serv

CVE-2016-3717 MEDIUM POC
5.5 May 05

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

CVE-2016-5118 CRITICAL
9.8 Jun 10

The OpenBlob function in blob.c in GraphicsMagick before 1.3.24 and ImageMagick allows remote attackers to execute arbit

CVE-2016-5689 CRITICAL POC
9.8 Dec 13

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

CVE-2016-5690 CRITICAL POC
9.8 Dec 13

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

CVE-2016-5691 CRITICAL POC
9.8 Dec 13

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

CVE-2017-14138 CRITICAL POC
9.8 Sep 04

ImageMagick 7.0.6-5 has a memory leak vulnerability in ReadWEBPImage in coders/webp.c because memory is not freed in cer

CVE-2026-23876 CRITICAL POC
9.8 Jan 20

Heap buffer overflow in ImageMagick's XBM image decoder (ReadXBMImage) lets remote attackers write attacker-controlled d

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy