Skip to main content

ImageMagick EUVDEUVD-2026-38439

| CVE-2026-56371 MEDIUM
Memory Leak (CWE-401)
2026-06-23 VulnCheck GHSA-98gv-6gmj-cm6m
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Recon
    Supply crafted TXT file with texture attribute
  2. Delivery
    ImageMagick TXT coder calls ReadImage() for texture
  3. Exploit
    GetTypeMetrics fails on font lookup
  4. Install
    Error exit path skips DestroyImage()
  5. C2
    Heap allocation permanently leaked
  6. Execute
    Repeat at scale to exhaust process memory
  7. Impact
    Service crash or OOM termination

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup, leak prevention
Exploitation Conditions

Exploitation requires that the target system processes TXT files through ImageMagick and that those TXT files contain a texture attribute - a non-default, optional feature of the TXT coder. The attacker must be able to supply or influence the TXT file content passed to ImageMagick (e.g., via a file upload endpoint, a URL-fetch pipeline, or a batch processing queue). Additionally, the GetTypeMetrics call must fail for the leak to trigger; this depends on the freetype/font configuration of the host system (the GHSA advisory notes the issue occurs 'without freetype'). Services that do not process TXT files via ImageMagick, or that sanitize or restrict input file types before processing, are not exposed. Repeated submissions are required to achieve meaningful memory exhaustion - a single request leaks only one allocation.

Impact

The provided CVSS 4.0 vector (all impacts scored N) appears to be an unscored placeholder inconsistent with a memory leak vulnerability that can cause process-level availability degradation - this discrepancy should be noted and the vendor-published vector should not be used for prioritization. No EPSS score was provided, no CISA KEV listing exists, and no public PoC has been identified, all of which reduce urgency. Real-world risk is moderate in server-side image-processing deployments where ImageMagick ingests user-supplied or externally sourced TXT files: repeated submission of crafted files will incrementally exhaust heap memory, ultimately causing the host process to crash or be killed by the OS OOM killer. Impact is strictly availability; no confidentiality or integrity impact is present. Services that do not process TXT files via ImageMagick are not exposed. The attack is automatable and requires no authentication in typical upload-and-process web pipelines, but achieving meaningful memory exhaustion requires sustained, repeated requests, limiting the practical blast radius compared to single-shot RCE or auth-bypass flaws.

Exploit ScenarioDerived

An attacker submits a series of crafted TXT files, each containing a texture attribute referencing a resource that causes GetTypeMetrics to fail, to a web application that passes user uploads to ImageMagick for processing. Each request causes a heap allocation to leak within the ImageMagick worker process; after sufficient iterations, the process's resident memory grows until it is terminated by the OS OOM killer or crashes, denying service to legitimate users. No public PoC has been identified, but the failure condition is straightforward to reproduce given knowledge of the code path.

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

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

Alert me

AnalysisAIv1 – Jun 23, 2026

Memory exhaustion in ImageMagick's TXT file coder (coders/txt.c) leaks heap allocations each time a crafted TXT file carrying a texture attribute is processed and GetTypeMetrics subsequently fails. Affected are ImageMagick before 7.1.2-15 and 6.9.13-40, and transitively Magick.NET NuGet packages before 14.10.3. No public exploit code or CISA KEV listing has been identified at time of analysis; however, the deterministic failure path makes repeated triggering straightforward in any service that accepts and processes user-supplied TXT files through ImageMagick.

RemediationAI

Upgrade ImageMagick to version 7.1.2-15 or later (7.x branch) or 6.9.13-40 or later (6.x branch), as documented in the upstream security advisory at https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-3q5f-gmjc-38r8 and patched in commit e6394098af39a9689bb5f0b4eb6a9968e449a8d3. For .NET applications, upgrade the Magick.NET NuGet package to 14.10.3 or later across all affected variants. As a compensating control where patching is not immediately possible, restrict ImageMagick from processing TXT files by removing or disabling the TXT coder in the ImageMagick policy.xml file (add a deny policy for the TXT format); this prevents the vulnerable code path from executing entirely but will break any legitimate TXT-based image processing. Additionally, deploying the ImageMagick process under memory cgroup limits or process isolation (e.g., systemd MemoryMax) can bound the availability impact of repeated exploitation at the cost of legitimate processing capacity.

Affected VersionsENISA

ImageMagick 0 <6.9.13-40
ImageMagick 0 <7.1.2-15

Affected Packages

nuget magick.net-q16-anycpu fix: 14.10.3
nuget magick.net-q16-arm64 fix: 14.10.3
nuget magick.net-q16-hdri-anycpu fix: 14.10.3
nuget magick.net-q16-hdri-arm64 fix: 14.10.3
nuget magick.net-q16-hdri-openmp-arm64 fix: 14.10.3
nuget magick.net-q16-hdri-openmp-x64 fix: 14.10.3
nuget magick.net-q16-hdri-x64 fix: 14.10.3
nuget magick.net-q16-hdri-x86 fix: 14.10.3
nuget magick.net-q16-openmp-arm64 fix: 14.10.3
nuget magick.net-q16-openmp-x64 fix: 14.10.3
nuget magick.net-q16-openmp-x86 fix: 14.10.3
nuget magick.net-q16-x64 fix: 14.10.3
nuget magick.net-q16-x86 fix: 14.10.3
nuget magick.net-q8-anycpu fix: 14.10.3
nuget magick.net-q8-arm64 fix: 14.10.3
nuget magick.net-q8-openmp-arm64 fix: 14.10.3
nuget magick.net-q8-openmp-x64 fix: 14.10.3
nuget magick.net-q8-x64 fix: 14.10.3
nuget magick.net-q8-x86 fix: 14.10.3
euvd imagemagick fix: 6.9.13-40, 7.1.2-15

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 20 packages in nuget, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-401 (Missing Release of Memory after Effective Lifetime). In coders/txt.c, when the TXT reader encounters a texture attribute, it calls ReadImage() to load the referenced texture, allocating a heap-resident Image object. If the subsequent GetTypeMetrics() call returns MagickFalse (failure), the error-exit path returns immediately without invoking DestroyImage() on the texture pointer, permanently leaking that allocation for the lifetime of the process. The flaw exists in both the 7.x (fixed at 7.1.2-15) and legacy 6.x (fixed at 6.9.13-40) branches, as confirmed by CPE strings cpe:2.3:a:imagemagick:imagemagick. The upstream fix is tracked in commit e6394098af39a9689bb5f0b4eb6a9968e449a8d3. Magick.NET is affected transitively because it wraps the native ImageMagick library; the fix is packaged in Magick.NET 14.10.3 across the Q16-AnyCPU, Q16-HDRI-AnyCPU, Q16-HDRI-OpenMP-arm64, and Q16-HDRI-OpenMP-x64 NuGet variants.

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 NONE
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

Network-triggerable via file upload with no auth required; availability impact is Low because memory exhaustion requires sustained repeated requests, not a single shot.

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
SUSE 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
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

Lifecycle Timeline

2
CVSS changed
Jul 02, 2026 - 16:37 NVD
6.9 (MEDIUM)
Patch available
Jun 23, 2026 - 14:17 EUVD

DescriptionCVE.org

ImageMagick before 7.1.2-15 and 6.9.13-40 contains a memory leak in coders/txt.c when processing TXT files with texture attributes: the texture object allocated via ReadImage is not released when GetTypeMetrics fails, leaking memory each time a crafted TXT file with a texture attribute is processed.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
High
widely embedded image processing library across web stacks and CMS platforms
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

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.2%
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
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
High
Technical Impact
Partial

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 SUSE Linux Enterprise High Performance Computing 15 SP7 SUSE Linux Enterprise Server 15 SP7 SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS Fixed

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