CVE-2026-61861 ImageMagick before 7.1.2-26 Use-After-Free in FormatMagickCaption

Medium 6.3 Published Updated

Attackers can trigger memory allocation failures to cause a use-after-free, potentially leading to denial of service or code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-61861?

CVE-2026-61861 is a medium-severity use after free vulnerability in Imagemagick Imagemagick, published on 11 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-416

Which versions are affected by CVE-2026-61861?

34 open source packages ship an affected version, including Magick.NET-Q16-AnyCPU, Magick.NET-Q16-HDRI-AnyCPU and Magick.NET-Q16-HDRI-OpenMP-arm64. It affects 1 product.

PackageAffectedFixed in
Magick.NET-Q16-AnyCPU NuGetAll versions14.15.0
Magick.NET-Q16-AnyCPU NuGetAll versions14.15.0
Magick.NET-Q16-HDRI-AnyCPU NuGetAll versions14.15.0
Magick.NET-Q16-HDRI-AnyCPU NuGetAll versions14.15.0
Magick.NET-Q16-HDRI-OpenMP-arm64 NuGetAll versions14.15.0
Magick.NET-Q16-HDRI-OpenMP-arm64 NuGetAll versions14.15.0
28 more packages
Magick.NET-Q16-HDRI-arm64 NuGetAll versions14.15.0
Magick.NET-Q16-HDRI-arm64 NuGetAll versions14.15.0
Magick.NET-Q16-HDRI-x64 NuGetAll versions14.15.0
Magick.NET-Q16-HDRI-x64 NuGetAll versions14.15.0
Magick.NET-Q16-HDRI-x86 NuGetAll versions14.15.0
Magick.NET-Q16-HDRI-x86 NuGetAll versions14.15.0
Magick.NET-Q16-OpenMP-arm64 NuGetAll versions14.15.0
Magick.NET-Q16-OpenMP-arm64 NuGetAll versions14.15.0
Magick.NET-Q16-OpenMP-x64 NuGetAll versions14.15.0
Magick.NET-Q16-OpenMP-x64 NuGetAll versions14.15.0
Magick.NET-Q16-arm64 NuGetAll versions14.15.0
Magick.NET-Q16-arm64 NuGetAll versions14.15.0
Magick.NET-Q16-x64 NuGetAll versions14.15.0
Magick.NET-Q16-x64 NuGetAll versions14.15.0
Magick.NET-Q16-x86 NuGetAll versions14.15.0
Magick.NET-Q16-x86 NuGetAll versions14.15.0
Magick.NET-Q8-AnyCPU NuGetAll versions14.15.0
Magick.NET-Q8-AnyCPU NuGetAll versions14.15.0
Magick.NET-Q8-OpenMP-arm64 NuGetAll versions14.15.0
Magick.NET-Q8-OpenMP-arm64 NuGetAll versions14.15.0
Magick.NET-Q8-OpenMP-x64 NuGetAll versions14.15.0
Magick.NET-Q8-OpenMP-x64 NuGetAll versions14.15.0
Magick.NET-Q8-arm64 NuGetAll versions14.15.0
Magick.NET-Q8-arm64 NuGetAll versions14.15.0
Magick.NET-Q8-x64 NuGetAll versions14.15.0
Magick.NET-Q8-x64 NuGetAll versions14.15.0
Magick.NET-Q8-x86 NuGetAll versions14.15.0
Magick.NET-Q8-x86 NuGetAll versions14.15.0

Products include Imagemagick Imagemagick.

How do I fix CVE-2026-61861?

Upgrade Magick.NET-Q16-AnyCPU to 14.15.0 or later.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2026-61861 being exploited?

There is no known exploitation of CVE-2026-61861 in the wild and no public exploit code.

All Imagemagick Imagemagick vulnerabilities

Sources

Also known as DEBIAN-CVE-2026-61861, ECHO-39af-2f5f-cbf0, GHSA-qvxh-prvr-85w2, GHSA-vg96-jmxw-665f, JLSEC-2026-1067, MINI-753v-8h6j-gwq5 and 2 more.

Is CVE-2026-61861 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free