CVE-2026-61861
Analyzed Analyzed - Analysis Complete

Use-After-Free in ImageMagick Due to Failed Memory Allocation

Vulnerability report for CVE-2026-61861, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-11

Last updated on: 2026-07-13

Assigner: VulnCheck

Description

ImageMagick before 7.1.2-26 contains a use-after-free vulnerability in the FormatMagickCaption method when memory allocation fails. Attackers can trigger memory allocation failures to cause a dangling pointer to reference freed memory, potentially enabling denial of service or code execution.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-11
Last Modified
2026-07-13
Generated
2026-07-31
AI Q&A
2026-07-11
EPSS Evaluated
2026-07-30
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
imagemagick imagemagick to 6.9.13-51 (exc)
imagemagick imagemagick From 7.0.0-0 (inc) to 7.1.2-26 (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-61861 is a use-after-free vulnerability in ImageMagick's FormatMagickCaption function that occurs when memory allocation fails.

This vulnerability happens because after a memory allocation error, a dangling pointer continues to reference memory that has already been freed.

This can lead to memory corruption or other unintended behaviors.

It affects ImageMagick versions prior to 7.1.2-26 and 6.9.13-51, with patches available in those versions.

Detection Guidance

There is no specific information provided about detection methods or commands to identify this vulnerability on a network or system.

Impact Analysis

This vulnerability can potentially enable denial of service or code execution by exploiting the dangling pointer referencing freed memory.

However, the severity is rated as Low with a CVSS score of 3.7 because it requires high attack complexity and does not impact confidentiality or integrity.

The main impact is limited to availability, meaning it could cause the application to crash or behave unexpectedly.

Compliance Impact

The provided information does not specify any direct impact of this vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.

Mitigation Strategies

To mitigate this vulnerability, you should upgrade ImageMagick to version 7.1.2-26 or later, or 6.9.13-51 or later, where the issue has been patched.

Chat Assistant

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

EPSS Chart