CVE-2026-40311
Received Received - Intake

Use-After-Free in ImageMagick XMP Profile Parsing Causes Crash

Vulnerability report for CVE-2026-40311, 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. Versions below 7.1.2-19 and 6.9.13-44 contain a heap use-after-free vulnerability that can cause a crash when reading and printing values from an invalid XMP profile. This issue has been fixed in versions 6.9.13-44 and 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 2 associated CPEs
Vendor Product Version / Range
imagemagick imagemagick to 6.9.13-44 (exc)
imagemagick imagemagick From 7.0.0-0 (inc) to 7.1.2-19 (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.
CWE-693 The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Mitigation Strategies

To mitigate this vulnerability, you should upgrade ImageMagick to version 7.1.2-19 or later, or 6.9.13-44 or later, as these versions contain the fix for the heap use-after-free issue.

Executive Summary

This vulnerability exists in ImageMagick versions below 7.1.2-19 and 6.9.13-44. It is a heap use-after-free issue that occurs when the software reads and prints values from an invalid XMP profile. This can cause the program to crash.

Impact Analysis

The vulnerability can cause ImageMagick to crash when processing certain images with invalid XMP profiles. This may lead to denial of service or instability in applications that rely on ImageMagick for image processing.

Chat Assistant

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

EPSS Chart