Skip to main content

ImageMagick EUVDEUVD-2026-94387

| CVE-2026-106568 MEDIUM
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-10-07 GitHub_M
5.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Submit image with crafted XMP profile
  2. Exploit
    ImageMagick parses embedded XML entities
  3. Execution
    Circular entity declaration triggers infinite loop
  4. Impact
    Processing worker hangs (denial of service)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target to parse an attacker-supplied image whose embedded XMP profile contains malicious XML with circular entity declarations, processed through ImageMagick's internal xml-tree parser (ValidateEntities/ParseInternalDoctype). No authentication or user interaction is required (PR:N/UI:N) where the image reaches an automated processing pipeline. Limiting factors: the application must actually decode/parse the XMP metadata via a vulnerable ImageMagick version (before 7.1.2-32 or 6.9.13-57), and impact is confined to hanging the processing operation/thread (CPU/resource exhaustion) - there is no memory corruption, data exposure, or code execution.

Impact

This is a moderate-severity availability-only denial of service. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L, score 5.3) indicates a network-reachable, low-complexity, unauthenticated trigger with no confidentiality or integrity impact and only partial (A:L) availability impact - consistent with CWE-835 (infinite loop) where a single processing operation hangs rather than the host crashing. No EPSS score, CISA KEV listing, or public POC was provided in the input, so there is no signal of active exploitation or weaponization; exploitation status is therefore 'no public exploit identified at time of analysis.' The realistic priority is driven less by severity and more by exposure: ImageMagick is frequently invoked server-side on untrusted uploaded images, so an attacker who can submit an image to such a pipeline can stall worker threads/processes and degrade service. Note the AV:N rating reflects that the malicious image is typically delivered over a network to an automated processor; there is no remote interactive access - verify your own deployment actually parses XMP metadata via ImageMagick before prioritizing. No conflicting signals were found, but the absence of EPSS/KEV/POC data means prioritization should rest on your exposure (untrusted image intake) rather than threat intelligence.

Exploit ScenarioDerived

An attacker uploads an image embedding a crafted XMP profile to a web service that uses ImageMagick for processing (e.g., avatar/thumbnail generation). When ImageMagick's internal XML parser handles the profile's circular entity declarations, it enters an infinite loop, hanging the worker and consuming CPU. No public exploit code was identified, but the trigger requires only a single malformed file and no authentication.

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 07, 2026

Denial of service in ImageMagick caused by an infinite loop when parsing XMP metadata: a crafted XMP profile embedded in an image drives the internal XML entity parser into a non-terminating loop, so the image processing operation never completes and the worker thread or process burns CPU indefinitely. All builds prior to 7.1.2-32 (7.x line) and 6.9.13-57 (6.x line) are affected, including the many applications and language bindings that embed ImageMagick for thumbnail generation, upload validation, or media pipelines. The flaw is remotely triggerable and unauthenticated (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L, score 5.3) wherever an attacker-supplied image reaches an automated parser; impact is limited to availability (hang/resource exhaustion) with no memory corruption, data disclosure, or code execution, and no public exploit code was identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade to ImageMagick 7.1.2-32 or later, or to 6.9.13-57 or later on the legacy branch, using the release tags at https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-32 and https://github.com/ImageMagick/ImageMagick6/releases/tag/6.9.13-57 (the upstream fixes are commits e4f7ad983df6c831832eba3689f96b75f8b67051 and 27e36ca5cb446664bfc284d28d91fced8887b025). Where an immediate upgrade is not possible, the most reliable compensating control is process isolation with a hard external timeout: run image conversion in a disposable, resource-capped worker or container and kill it on a wall-clock deadline, which converts an unbounded hang into a bounded failure - the trade-off is that deliberately slow but legitimate large images may be aborted, so size the timeout from real workload telemetry. A second option is to strip metadata before ImageMagick ever sees the file (for example, remove XMP with exiftool or an equivalent pre-processor at ingest), which eliminates the attack surface entirely but discards metadata your application may rely on. ImageMagick's policy.xml resource limits, including a time resource limit, can slow runaway operations, but enforcement is not guaranteed across all code paths, so treat them as defense in depth rather than a fix. Also consider capping input file size and metadata packet size, and monitor for long-running or CPU-pinned conversion processes as a detection signal for exploitation attempts. No public exploit code was identified at time of analysis, so prioritization can follow normal patch cadence, but the low patch complexity and the ubiquity of ImageMagick in upload pipelines favor scheduling the upgrade promptly.

Affected VersionsENISA

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

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 vulnerability lives in ImageMagick's hand-rolled XML parser, MagickCore/xml-tree.c (magick/xml-tree.c in the 6.x tree), which is used to interpret XMP metadata packets embedded in image containers such as JPEG APP1 segments, PNG iTXt chunks, and TIFF tag 700. XMP is itself an RDF/XML document and may carry an internal DTD, so the parser's ParseInternalDoctype() and ValidateEntities() routines walk entity declarations recursively and must detect self-referential or circular entity graphs to avoid looping forever. The fix exposes the root cause precisely: ValidateEntities() hard-coded the '&' character as its scan terminator, so parameter-entity references (which are delimited by '%' rather than '&') were never terminated or validated, allowing a circular declaration chain to be walked endlessly (CWE-835, Loop with Unreachable Exit Condition). The patch introduces a 'delimiter' parameter, calls ValidateEntities() twice (once with '%' and once with '&') so both general and parameter entities are checked, changes a == 0 comparison to MagickFalse for clarity, and casts the strtol() results for character references to int. Corrupted multi-byte sequence handling and the circular-entity warning message were also tidied. Note that the fix is in metadata parsing, not in a decoder for pixel data, which is why the CVSS vector scores only Low availability impact rather than a full-scope DoS.

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

Malicious image is delivered over the network to an unauthenticated automated parser (AV:N/PR:N/UI:N/AC:L); impact is a single hung operation, so A:L only 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 (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

2
Patch available
Oct 07, 2026 - 17:18 EUVD
CVE Published
Oct 07, 2026 - 15:24 cve.org
MEDIUM 5.3

DescriptionCVE.org

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to 7.1.2-32 and 6.9.13-57, a crafted XMP profile embedded in an image can cause the profile parser to enter an infinite loop, preventing image processing from completing. This issue is fixed in versions 7.1.2-32 and 6.9.13-57.

Threat Intelligence Overview

EPSS Score
0.4%
Top 70% exploitable
Prevalence
High
extremely widely-used image-processing library across web and enterprise servers
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment 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 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
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
High
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
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