CVE-2026-40312
Received Received - Intake

Off-by-One Error in ImageMagick MSL Decoder Causes Crash

Vulnerability report for CVE-2026-40312, 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, an off by one error in the MSL decoder could result in a crash when a malicous MSL file is read. 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-193 A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Impact Analysis

The vulnerability can cause ImageMagick to crash when processing a specially crafted malicious MSL file. This results in a denial of service condition, potentially disrupting services or applications that rely on ImageMagick for image processing.

Executive Summary

This vulnerability is an off-by-one error in the MSL decoder of ImageMagick versions below 7.1.2-19. It occurs when a malicious MSL file is read, which can cause the software to crash.

Mitigation Strategies

To mitigate this vulnerability, you should upgrade ImageMagick to version 7.1.2-19 or later, where the off-by-one error in the MSL decoder has been fixed.

Chat Assistant

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

EPSS Chart