---
id: CVE-2026-61861
title: >-
  ImageMagick before 7.1.2-26 contains a use-after-free vulnerability in the
  FormatMagickCaption method when memory allocation fails
summary: >-
  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, p…
severity: low
cvss: 3.7
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L'
cwe:
  - CWE-416
published: '2026-07-11'
updated: '2026-07-11'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-61861'
references:
  - url: >-
      https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qvxh-prvr-85w2
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/imagemagick-before-26-use-after-free-in-formatmagickcaption
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-07-12T00:16:39.364Z'
epss: 0.00554
epssPercentile: 0.43825
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
