ImageMagick <=7.1.2-26 UAF in FormatMagickCaption (DoS/Exec)
CVE-2026-61861 Published on July 11, 2026
ImageMagick before 7.1.2-26 Use-After-Free in FormatMagickCaption
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.
Vulnerability Analysis
CVE-2026-61861 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is consided to have a high level of attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a small impact on availability.
Weakness Type
What is a Dangling pointer Vulnerability?
Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code.
CVE-2026-61861 has been classified to as a Dangling pointer vulnerability or weakness.
Products Associated with CVE-2026-61861
Want to know whenever a new CVE is published for ImageMagick? stack.watch will email you.
Affected Versions
ImageMagick:- Before 7.1.2-26 is affected.
- Version 7.1.2-26 is unaffected.
- Before 6.9.13-51 is affected.
- Version 6.9.13-51 is unaffected.