CVE-2026-25983
Heap-Use-After-Free in ImageMagick MSL Script Parsing
Publication date: 2026-02-24
Last updated on: 2026-02-25
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| 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 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.