CVE-2026-25983
Received Received - Intake
Heap-Use-After-Free in ImageMagick MSL Script Parsing

Publication date: 2026-02-24

Last updated on: 2026-02-25

Assigner: GitHub, Inc.

Description
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, a crafted MSL script triggers a heap-use-after-free. The operation element handler replaces and frees the image while the parser continues reading from it, leading to a UAF in ReadBlobString during further parsing. Versions 7.1.2-15 and 6.9.13-40 contain a patch.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-02-24
Last Modified
2026-02-25
Generated
2026-06-16
AI Q&A
2026-02-24
EPSS Evaluated
2026-06-14
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
imagemagick imagemagick to 6.9.13-40 (exc)
imagemagick imagemagick From 7.0.0-0 (inc) to 7.1.2-15 (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
Executive Summary

CVE-2026-25983 is a Use After Free (UAF) vulnerability in the MSLStartElement function within the MSL decoder of ImageMagick. It occurs when a specially crafted MSL script causes the operation element handler to replace and free the image while the parser continues reading from it. This results in the parser accessing memory that has already been freed during the ReadBlobString function, leading to a heap-use-after-free condition.

Impact Analysis

This vulnerability can impact the availability of the ImageMagick software by causing a low level of availability loss. Since the use-after-free condition involves accessing freed memory, it can lead to crashes or instability in the application. However, it does not impact confidentiality or integrity, meaning it does not expose or alter data.

Compliance Impact

I don't know

Detection Guidance

I don't know

Mitigation Strategies

To mitigate this vulnerability, you should upgrade ImageMagick to the patched versions 7.1.2-15 or 6.9.13-40.

These versions contain fixes that prevent the heap-use-after-free condition triggered by crafted MSL scripts.

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