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-05-27
AI Q&A
2026-02-24
EPSS Evaluated
2026-05-25
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 Powered Q&A
Can you explain this vulnerability to me?

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.


How can this vulnerability impact me? :

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.


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

I don't know


How can this vulnerability be detected on my network or system? Can you suggest some commands?

I don't know


What immediate steps should I take to mitigate this vulnerability?

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.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart