What’s Vulnerable › Vulnerabilities
CVE-2026-61861: ImageMagick before 7.1.2-26 Use-After-Free in FormatMagickCaption
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-07-11 · updated 2026-10-29
- Weakness: CWE-416
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.
Affected products
- ImageMagick: before 6.9.13-51; from 7.0.0-0 before 7.1.2-26 — fixed in 6.9.13-51, 7.1.2-26
- ImageMagick: from 7.0.0 before 7.1.2-26 — fixed in 7.1.2-26
How to fix
Upgrade to a fixed version: ImageMagick 6.9.13-51, 7.1.2-26; ImageMagick 7.1.2-26. Check the vendor advisory for mitigations.
References
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qvxh-prvr-85w2
- https://www.vulncheck.com/advisories/imagemagick-before-26-use-after-free-in-formatmagickcaption
Get alerted when CVE-2026-61861 or the next vulnerability affects your stack