CVE-2026-40169
Received Received - Intake

Heap Out-of-Bounds Write in ImageMagick YAML/JSON Output Causes Crash

Vulnerability report for CVE-2026-40169, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-04-13

Last updated on: 2026-04-17

Assigner: GitHub, Inc.

Description

ImageMagick is free and open-source software used for editing and manipulating digital images. In versions below 7.1.2-19, a crafted image could result in an out of bounds heap write when writing a yaml or json output, resulting in a crash. This issue has been fixed in version 7.1.2-19.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-04-13
Last Modified
2026-04-17
Generated
2026-07-06
AI Q&A
2026-04-14
EPSS Evaluated
2026-07-05
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
imagemagick imagemagick to 7.1.2-19 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-122 A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
CWE-787 The product writes data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in ImageMagick versions below 7.1.2-19. It occurs when a specially crafted image is processed to produce yaml or json output, which can cause an out of bounds heap write. This means that the program writes data outside the allocated memory boundaries, leading to a crash.

Impact Analysis

The vulnerability can cause the ImageMagick application to crash when handling certain crafted images. This can lead to denial of service (DoS) conditions, where the software becomes unavailable or unstable during image processing.

Mitigation Strategies

To mitigate this vulnerability, you should upgrade ImageMagick to version 7.1.2-19 or later, where the issue has been fixed.

Chat Assistant

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

EPSS Chart