CVE-2026-56376
Undergoing Analysis Undergoing Analysis - In Progress
Heap Use-After-Free in ImageMagick

Publication date: 2026-06-23

Last updated on: 2026-06-23

Assigner: VulnCheck

Description
ImageMagick before 7.1.2-15 and 6.9.13-40 contains a heap use-after-free in the meta coder: when memory allocation fails, a single byte is written to a stale pointer. Remote attackers can trigger it by processing specially crafted image files, causing a denial of service.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-23
Last Modified
2026-06-23
Generated
2026-06-23
AI Q&A
2026-06-23
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
image_magick image_magick to 6.9.13-40 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-416 The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Compliance Impact

The provided information does not specify any direct impact of this vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.

Executive Summary

This vulnerability is a heap use-after-free flaw in ImageMagick's meta coder that occurs when memory allocation fails. Specifically, a single byte is written to a stale pointer, which means memory that has already been freed is accessed incorrectly.

Remote attackers can exploit this vulnerability by processing specially crafted image files, which can cause a denial of service or potentially allow arbitrary code execution.

The issue affects ImageMagick versions before 7.1.2-15 and 6.9.13-40 and is tracked under CWE-416 (Use After Free).

Impact Analysis

This vulnerability can impact you by allowing remote attackers to cause a denial of service on systems running vulnerable versions of ImageMagick.

In some cases, it may also allow attackers to execute arbitrary code, potentially compromising the affected system.

Exploitation requires no privileges or user interaction, making it easier for attackers to trigger the flaw remotely by processing malicious image files.

Mitigation Strategies

To mitigate this vulnerability, you should update ImageMagick to a patched version.

  • Upgrade to ImageMagick version 7.1.2-15 or later.
  • Alternatively, upgrade to ImageMagick version 6.9.13-40 or later if using the 6.x branch.

These updates address the heap use-after-free vulnerability in the meta coder that can be exploited by processing specially crafted image files.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-56376. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart