Skip to main content

ImageMagick CVE-2026-107209

| EUVDEUVD-2026-94410 HIGH
Double Free (CWE-415)
2026-10-07 GitHub_M
7.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Upload crafted RSVG image to processor
  2. Exploit
    RSVG decoder hits resource limit
  3. Execution
    svg_handle freed twice then reused
  4. Impact
    ImageMagick 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv2 – 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)
v1 Oct 07, 2026 - 16:37 CVSS 5.9

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

ImageMagick 7.0.0, < 7.1.2-30
ImageMagick < 6.9.13-55

Affected Packages

euvd imagemagick fix: 6.9.13-55, 7.1.2-30

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

Vendor (GitHub_M) PRIMARY MEDIUM
NVD 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.9 MEDIUM

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).

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

Primary rating from Vendor (GitHub_M).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

5
Analysis Updated
Oct 21, 2026 - 15:59 vuln.today
v2 - CVSS changed
Severity Changed
Oct 21, 2026 - 15:53 NVD
MEDIUM HIGH
CVSS changed
Oct 21, 2026 - 15:53 NVD
5.9 (MEDIUM) 7.5 (HIGH)
Patch available
Oct 07, 2026 - 17:18 EUVD
CVE Published
Oct 07, 2026 - 15:58 cve.org
MEDIUM 5.9

DescriptionNVD

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
High
ImageMagick is a widely deployed image-processing library across web and enterprise stacks
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor GitHub

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 HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Medium
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
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-2026-122006 CRITICAL POC
9.8 Nov 04

Unauthenticated attackers can write arbitrary files on a Ruby on Rails host and, when Active Storage uses the Disk servi

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

Vendor StatusVendor

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