Skip to main content

ImageMagick EUVDEUVD-2026-97705

| CVE-2026-109261 MEDIUM
Memory Leak (CWE-401)
2026-10-12 VulnCheck GHSA-4775-xrh5-2j2p
6.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Submit crafted image for GIF conversion
  2. Exploit
    Trigger color quantization failure in encoder
  3. Execution
    Leak unreleased memory each attempt
  4. Impact
    Exhaust memory, degrade availability

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 GIF encoder (i.e., convert or write attacker-influenced images to GIF output) and that color quantization fail during that encoding - the specific code path in WriteGIFImage (coders/gif.c) that previously threw MemoryAllocationFailed without freeing global_colormap, colormap, and write_info. Limiting factors: the output/target format must be GIF, the attacker must be able to supply or influence the image converted, and each attempt leaks only a bounded amount of memory, so meaningful impact requires many repeated conversions; there is no code execution, no data exposure, and no privilege gain. Affected versions are ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32.

Impact

This is a genuine but modest-severity availability issue, not a top-tier priority. The vendor-supplied CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N) scores it 6.3 (Medium) with the ONLY impact being VA:L - low availability - and VC:N/VI:N confirming no confidentiality or integrity loss, consistent with a CWE-401 missing-memory-release (leak) rather than information disclosure. The AT:P (attack requirements present) metric correctly reflects that exploitation depends on the attacker inducing color-quantization failure during GIF encoding, so it is not a trivially reliable one-shot DoS; impact accrues gradually as memory leaks per failed attempt. There is no CISA KEV listing and no public exploit code identified at time of analysis, and no EPSS score was provided, so there is no signal of active or widespread exploitation. The commit diff confirms the root cause and fix (freeing global_colormap, colormap, and write_info before throwing the error), corroborating the description. Note a metadata conflict: the input Tags label this 'Information Disclosure,' which contradicts both CWE-401 and the CVSS impact profile (VC:N) - this is an availability/resource-exhaustion bug, not disclosure.

Exploit ScenarioDerived

An attacker repeatedly submits crafted images to a web service or pipeline that converts uploads to GIF using ImageMagick, choosing input that causes color quantization to fail during encoding. Each failed conversion leaks a chunk of unreleased memory, and over many requests this gradually exhausts available memory and degrades or crashes the service. No public exploit code is identified, and the leak-per-attempt nature means impact is cumulative rather than immediate.

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

Repeated GIF encoding of crafted or attacker-influenced images can steadily exhaust process memory in ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32, because the GIF encoder fails to release allocated buffers when color quantization fails. Remote, unauthenticated attackers who can get an application to convert or write images to GIF output can trigger a small, bounded leak on each attempt, and enough repetitions degrade availability (CVSS 4.0 base 6.3; our independent assessment scores it CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L). No public exploit code was identified at time of analysis, and there is no code execution, data exposure, or privilege gain associated with this flaw.

RemediationAI

Vendor-released patch: upgrade to ImageMagick 6.9.13-57 or 7.1.2-32 (or later); the fixes are commit 1c7763266cfedc635005a965169bc2ddcc650221 on the 7.x branch and 93aa075f0fa5a6ae6a83a63acc7c84283aa6d31b on the 6.x branch, and the advisory is at https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-w68r-6fmr-cvg4. Where patching must be deferred, the primary compensating control is to restrict GIF output: add a policy such as <policy domain="coder" rights="none" pattern="GIF"/> to policy.xml (or block GIF write rights only, keeping read rights) - note this breaks all legitimate GIF generation through the same instance, so scope it to untrusted upload pipelines rather than shared image services. Additionally, isolate ImageMagick processing in short-lived worker processes or containers with hard memory cgroup limits (e.g., systemd MemoryMax or container memory limits) and recycle workers after a bounded number of conversions, so the per-attempt leak cannot accumulate into host-wide exhaustion; the trade-off is that overly tight memory limits make quantization fail more often, which is exactly the branch that leaks, so set the cap above normal working-set needs. Rate-limiting or rejecting repeated GIF conversion requests from untrusted sources and monitoring RSS growth of ImageMagick workers provide detection and reduce exploitability, but these are mitigations only and do not remove the underlying leak.

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 defect is a classic CWE-401 missing-release-of-memory condition inside ImageMagick's GIF writer, WriteGIFImage in coders/gif.c. During encoding, ImageMagick builds a global color map and a working color map and performs color quantization; when that quantization step fails with a ResourceLimitError/MemoryAllocationFailed condition, the error path previously threw the writer exception immediately, abandoning the heap allocations for global_colormap, colormap, and the write_info image-info structure without ever calling RelinquishMagickMemory or DestroyImageInfo on them. The upstream fix wraps the throw in a cleanup block that relinquishes both color maps and destroys write_info before propagating the exception, and it was applied on both the ImageMagick 7 development branch (commit 1c776326) and the ImageMagick6 maintenance branch (commit 93aa075f). The vulnerability class maps to CWE-401 (Missing Release of Memory after Effective Lifetime); there is no memory corruption, use-after-free, or out-of-bounds access, which is why the assessed impact is availability-only and limited, with attack complexity effectively raised (AT:P in the 4.0 vector) because a specific failure branch must be reached rather than merely supplying an image.

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.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 5.3 MEDIUM

Attacker-supplied images reach the encoder remotely with no auth or interaction (AV:N/PR:N/UI:N); only gradual memory-leak availability impact (A:L), 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:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Red Hat 3.7 LOW

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
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 GIF encoder because allocated memory is not released when color quantization fails during encoding. Attackers can supply images whose GIF conversion causes quantization to fail, leaking memory with each attempt and degrading availability.

Threat Intelligence Overview

EPSS Score
0.4%
Top 71% exploitable
Prevalence
High
ImageMagick is a near-ubiquitous image-processing library across web and server pipelines
Data Quality
6 sources
Confidence: High

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

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
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