Skip to main content

ImageMagick CVE-2026-64685

MEDIUM
Out-of-bounds Read (CWE-125)
2026-07-29 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 crafted BGR image to vulnerable service
  2. Delivery
    Invoke ImageMagick BGR decoder on crafted input
  3. Exploit
    Missing EOF check bypassed in decoder code path
  4. Execution
    Heap buffer over-read triggered
  5. Impact
    Adjacent heap memory contents disclosed to attacker

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

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

Exploitation Conditions

The target service must accept user-supplied image files and process them with ImageMagick prior to version 7.1.2-27, specifically invoking the BGR decoder on the crafted input - no non-default configuration is required since the BGR decoder is part of the standard ImageMagick installation. Per the CVSS vector (PR:N, UI:N), no authentication and no victim interaction are required. Exploitation is limited to information disclosure (C:L); there is no integrity or availability impact, and the over-read does not provide a write primitive. The primary limiting factor on practical exploitability is whether the application exposes decoded output or error details to the attacker - silent background processing pipelines that discard all output substantially reduce the attacker's ability to recover disclosed memory contents.

Impact

The CVSS 3.1 score of 5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N) reflects a moderate, network-accessible vulnerability requiring no authentication or user interaction, but with impact strictly limited to low-level confidentiality - partial heap memory disclosure. No EPSS score was provided in the available data, preventing probabilistic exploitation comparison. The absence of a CISA KEV listing and the lack of any identified public POC suggest this is not currently being targeted opportunistically. The practical risk is further shaped by deployment context: services that silently process and discard image output (e.g., background thumbnail generators) are significantly less exploitable than those that reflect processed output or error details to the caller. The unchanged scope (S:U) confirms exploitation is bounded to the ImageMagick process itself. Priority should be moderate - include in the next planned patching cycle, with urgency elevated only for high-sensitivity image-processing pipelines exposed to untrusted input.

Exploit ScenarioDerived

An attacker uploads or submits a specially crafted BGR image to a web application or API endpoint that passes the file to a vulnerable ImageMagick installation for processing. During decoding, the BGR decoder reads past the end of the heap buffer due to a missing EOF check, exposing adjacent heap memory. If the application returns error messages, processed image data, or diagnostic output to the requester, the attacker may recover fragments of heap memory that could include sensitive runtime values such as pointers or buffered data from other operations.

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 – Jul 30, 2026

The BGR decoder in ImageMagick prior to 7.1.2-27 fails to check for end-of-file at all necessary code paths, allowing remote unauthenticated attackers to trigger a heap buffer over-read via a crafted image file. The CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N) confirms network-exploitable, zero-prerequisite access with impact limited to partial memory disclosure. No active exploitation (CISA KEV) and no public POC have been identified at the time of analysis; a vendor-released patch is available in version 7.1.2-27.

RemediationAI

Upgrade ImageMagick to version 7.1.2-27 or later, which contains the vendor-released fix for the missing EOF check in the BGR decoder. Full details are available in the GitHub Security Advisory GHSA-7rgw-xg25-prjm at https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-7rgw-xg25-prjm. If an immediate upgrade is not feasible, restrict BGR format processing via ImageMagick's policy.xml by adding a deny policy for the BGR coder (e.g., a 'deny' rights entry for pattern 'BGR') - this eliminates the attack surface with minimal functional impact for deployments not requiring BGR format support, though it will break any workflows explicitly using raw BGR images. Additionally, running ImageMagick in a sandboxed process (seccomp, AppArmor, or containerized isolation) limits the blast radius of any heap disclosure to the sandboxed memory space. Confirm whether your distribution packages a patched 6.x build if that branch is in use.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

ImageMagick (CPE: cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*) is a widely-used open-source library and CLI toolset supporting dozens of image formats. The BGR decoder handles raw BGR pixel-order image data. CWE-125 (Out-of-bounds Read) describes the root cause: the decoder reads from a heap-allocated buffer without verifying that the read position remains within the allocated bounds at every code path - specifically, not all locations include an end-of-file sentinel check. When a specially crafted BGR image triggers one of these unchecked paths, the decoder advances past the end of the buffer and reads adjacent heap memory. Despite the 'Buffer Overflow' tag in the intelligence data, the CWE-125 classification and C:L/I:N CVSS impact profile confirm this is a read-only over-read with no write primitive.

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:L/I:N/A:N
vuln.today AI 5.3 MEDIUM

Network-exploitable via crafted image with no authentication or interaction required; impact strictly limited to partial heap read with no write or availability component.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
SUSE 4.0 MEDIUM
AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A: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
Low
Integrity
None
Availability
None

DescriptionCVE.org

ImageMagick is free and open-source software used for editing and manipulating digital images. In versions prior to 7.1.2-27, the BGR decoder does not check for an end-of-file in every location so a crafted image could result in an heap buffer over-read. This issue has been fixed in version 7.1.2-27.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
High
widely-used open-source image processing library across web and enterprise stacks
Data Quality
5 sources
Confidence: Medium
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.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

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

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

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

Affected Products (CPE)CVE.org

cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
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

SUSE

Severity: Moderate
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Module for Desktop Applications 15 SP7 Affected
SUSE Linux Enterprise Server 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP7 Affected

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