Skip to main content

ImageMagick EUVDEUVD-2026-94380

| CVE-2026-106565 MEDIUM
Uncontrolled Resource Consumption (CWE-400)
2026-10-07 GitHub_M
5.9
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Submit crafted bzip2 image to service
  2. Exploit
    ImageMagick reads malformed blob
  3. Execution
    Missing EOF check triggers infinite loop
  4. Impact
    CPU/resources exhausted, service denial

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
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 that the target application or service invoke ImageMagick to read/decode image data that is bzip2-compressed, and that the attacker can supply a crafted image whose bzip2 stream is truncated or malformed so that the decompressor never signals end-of-file - triggering the infinite loop in ReadBlob/EOFBlob (MagickCore/blob.c and magick/blob.c). No authentication is required (CVSS PR:N) and no user interaction is needed (UI:N), making it exploitable against any automated image-processing pipeline that accepts untrusted input. Limiting factors: the attack complexity is high (AC:H) because the malformed bzip2 stream must be deliberately constructed to hit the missing-EOF path, the deployment must actually process bzip2-compressed image content through a vulnerable version (before 7.1.2-32 / 6.9.13-57), and impact is confined to availability (resource exhaustion) with no data confidentiality or integrity consequence.

Impact

This is a genuine but moderate-priority issue, best characterized as a high-CVSS-component (availability) flaw with limited real-world urgency. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H = 5.9 MEDIUM) shows an unauthenticated, network-reachable denial-of-service with only availability impact (C:N/I:N) and elevated attack complexity (AC:H), consistent with CWE-400 resource exhaustion via an infinite loop on malformed bzip2-compressed image data. No EPSS score, KEV listing, or POC was provided in the input, so there is no public exploit identified at time of analysis and no evidence of active exploitation - this contrasts with the network-reachable vector, meaning exposure potential exists but observed exploitation does not. The AC:H rating appropriately tempers the AV:N/PR:N exposure: an attacker must craft a specifically truncated bzip2 stream to trigger the missing end-of-file condition. No SSVC decision data was supplied. Net assessment: a worth-patching availability bug for services that auto-process untrusted images through ImageMagick, but not an emergency given it cannot compromise confidentiality or integrity and has no confirmed exploitation.

Exploit ScenarioDerived

An attacker uploads or submits a specially crafted image containing a truncated/malformed bzip2-compressed data stream to a web application or service that uses ImageMagick for server-side image processing. When ImageMagick reads the data, the missing end-of-file check causes ReadBlob to loop indefinitely, pinning CPU and exhausting processing resources, degrading or hanging the service. No public exploit code was identified in the provided data, and the high attack complexity means the malicious bzip2 stream must be deliberately constructed.

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 before 7.1.2-32 (7.x line) and before 6.9.13-57 (legacy 6.x line): a missing end-of-file check in the bzip2 blob reader allows a crafted bzip2-compressed image whose stream is truncated or malformed to drive ReadBlob/EOFBlob into an infinite loop, exhausting processing resources and stalling any service that decodes untrusted image data. No authentication (PR:N) or user interaction (UI:N) is needed, but attack complexity is high (AC:H) because the malformed stream must be deliberately constructed to hit the vulnerable path, and impact is limited to availability (C:N/I:N/A:H) for an assessed CVSS of 5.9. No public exploit identified at time of analysis; the issue is addressed by the upstream commits and the 7.1.2-32 / 6.9.13-57 releases.

RemediationAI

Upgrade to the vendor-released patched versions: ImageMagick 7.1.2-32 (https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-32) or ImageMagick 6.9.13-57 (https://github.com/ImageMagick/ImageMagick6/releases/tag/6.9.13-57), which contain the upstream fixes committed in e9872c4a165d869e75d10799c47195725ebf4132 (7.x) and 82f752927a552cbba1213b1d023b85e76845774c (6.x); see also GHSA-m9c7-gf3j-hx6h at https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-m9c7-gf3j-hx6h. If immediate upgrade is not possible, disable or restrict the BZIP coder via policy.xml (for example a policy entry granting the BZIP coder no rights), which blocks the vulnerable decode path at the cost of losing legitimate bzip2-compressed image support; alternatively enforce hard resource and wall-clock limits on any ImageMagick invocation (such as the time limit resource setting or an external process timeout/kill wrapper), which caps the denial-of-service window but can abort legitimate long-running conversions. Additionally, avoid passing untrusted bzip2-compressed images to ImageMagick and sandbox decoding services with CPU and memory quotas until patched builds are deployed.

Affected VersionsENISA

ImageMagick 7.0.0, < 7.1.2-32
ImageMagick < 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 lives in ImageMagick's blob I/O layer (MagickCore/blob.c in the 7.x tree and magick/blob.c in the 6.x tree), which wraps libbz2 to read bzip2-compressed image data. In EOFBlob() the pre-fix code overwrote the EOF flag with a boolean derived solely from whether the bzip2 status was BZ_UNEXPECTED_EOF, so any other status - including BZ_OK returned when a partial read occurs on a truncated stream - could reset the EOF indicator to false. At the same time ReadBlob() did not mark EOF when a short read (count != length) returned BZ_OK. Together these omissions mean a truncated bzip2 stream never signals end-of-file to the decoder, and the read loop retries indefinitely, pegging CPU in an uncontrolled-resource-consumption condition (CWE-400). The fix changes EOFBlob() to set blob_info->eof only on BZ_UNEXPECTED_EOF and adds a (count != length) && (status == BZ_OK) check in ReadBlob() to flag EOF on short reads. The CPE cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* reflects that all builds prior to the fixed releases are potentially affected, and the relevant attack surface is any pipeline that hands attacker-controlled bzip2-compressed image content to ImageMagick.

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

Untrusted image can be delivered remotely (AV:N) with no auth or interaction (PR:N/UI:N); crafting the truncated bzip2 stream raises complexity (AC:H); only availability is affected (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:H/AT:N/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 VectorVendor: GitHub_M

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

Lifecycle Timeline

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

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 missing end-of-file check while reading bzip2-compressed image data can cause an infinite loop and exhaust processing resources. This issue is fixed in versions 7.1.2-32 and 6.9.13-57.

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
High
ImageMagick is extremely common server-side image processing on web backends
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
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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