CVE-2026-64685
ImageMagick vulnerability analysis and mitigation

Overview

CVE-2026-64685 is a heap buffer over-read vulnerability in the BGR decoder of ImageMagick, a widely used open-source image editing library. The flaw arises because the BGR decoder fails to check for end-of-file conditions in every location, allowing a crafted image file to trigger an out-of-bounds memory read. It affects all ImageMagick versions prior to 7.1.2-27 (and prior to 6.9.13-55 in the 6.x branch), and was disclosed on July 29–30, 2026. The vulnerability carries a CVSS v3.1 base score of 5.3 (Medium) (GitHub Advisory, Red Hat Bugzilla).

Technical details

The root cause is classified as CWE-125 (Out-of-bounds Read): the BGR image decoder in ImageMagick does not validate end-of-file conditions at every read location during image parsing. An attacker can supply a specially crafted BGR image file that causes the decoder to read beyond the allocated heap buffer, potentially exposing adjacent memory contents. No authentication or user interaction is required, and the attack can be delivered remotely by submitting a malicious image to any service that processes BGR images via ImageMagick. The vulnerability was reported by researcher kongzhenhit-code and fixed in the upstream repository (GitHub Advisory).

Impact

Successful exploitation results in an information disclosure (memory disclosure) condition, where an attacker can read sensitive data from adjacent heap memory of the ImageMagick process. There is no impact on integrity or availability. In environments where ImageMagick processes user-supplied images (e.g., web applications, media pipelines), heap memory contents — which may include credentials, tokens, or other sensitive data — could be exposed to an unauthenticated remote attacker (GitHub Advisory, Red Hat Bugzilla).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time (Feedly). The vulnerability is automatable (no user interaction required) and exploitable by unauthenticated remote attackers, which increases its attractiveness as a target. The EPSS score is approximately 0.197%, indicating a low but non-negligible probability of exploitation in the near term. The vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.

Exploitation steps

  1. Reconnaissance: Identify services or applications that accept user-supplied image files and process them using ImageMagick (e.g., image upload endpoints, thumbnail generators, document converters) running a vulnerable version prior to 7.1.2-27.
  2. Craft malicious BGR image: Create a specially crafted BGR-format image file that is structured to cause the BGR decoder to attempt reads beyond the end of the allocated heap buffer — for example, by manipulating image dimensions or data length fields to mismatch actual file content.
  3. Submit crafted image: Upload or submit the malicious BGR image to the target service, triggering ImageMagick's BGR decoder to process the file.
  4. Trigger heap over-read: The decoder, lacking EOF checks at all read locations, reads past the end of the image data buffer into adjacent heap memory.
  5. Extract disclosed data: If the application returns any processed image data, error output, or metadata to the attacker, heap memory contents adjacent to the image buffer may be included, potentially revealing sensitive in-memory data (GitHub Advisory).

Indicators of compromise

  • Network: Unusual or repeated submission of BGR-format image files to image processing endpoints; large volumes of image upload requests from a single source IP.
  • Logs: Application or ImageMagick error logs showing decoding errors, unexpected EOF conditions, or segmentation faults related to BGR image processing; entries referencing coders/bgr.c or BGR decoder in ImageMagick debug output.
  • Process: ImageMagick processes (convert, magick) consuming unexpected amounts of memory or crashing when processing specific image files; child processes spawned with unusual image file arguments.
  • File System: Presence of suspicious or malformed .bgr or raw image files in upload directories or temporary processing folders.

Mitigation and workarounds

The fix is available in ImageMagick version 7.1.2-27 and 6.9.13-55; upgrading to these or later versions is the recommended remediation (GitHub Advisory). SUSE has released security updates (SUSE-SU-2026:3571-1 and SUSE-SU-2026:3586-1) addressing this vulnerability for affected distributions (SUSE Advisory). If immediate patching is not feasible, restrict or disable processing of untrusted BGR image files, or disable the BGR decoder if it is not required in your environment. Additionally, sandboxing ImageMagick processes can limit the impact of a successful heap over-read.

Community reactions

SUSE issued security advisories (SUSE-SU-2026:3571-1 and SUSE-SU-2026:3586-1) and openSUSE published security announcements addressing this vulnerability (SUSE Advisory). AusCERT published bulletins (ESB-2026.9386 and ESB-2026.9406) to notify its constituency. Coverage has been limited to standard vulnerability tracking and distribution-level patch announcements, with no notable researcher commentary or significant social media discussion observed.

Additional resources


SourceThis report was generated using AI

Related ImageMagick vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64685MEDIUM5.3
  • ImageMagick logoImageMagick
  • ImageMagick-djvu
NoYesJul 30, 2026
CVE-2026-62363MEDIUM5
  • C# logoC#
  • libMagickCore-7_Q16HDRI10
NoYesJul 30, 2026
CVE-2026-66011MEDIUM4.8
  • ImageMagick logoImageMagick
  • imagemagick
NoYesJul 25, 2026
CVE-2026-62946MEDIUM4.7
  • C# logoC#
  • ImageMagick-devel
NoYesJul 30, 2026
CVE-2026-62343MEDIUM4.7
  • C# logoC#
  • imagemagick
NoYesJul 30, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management