CVE-2026-86425 ImageMagick before 7.1.2-30 Heap-use-after-free via Layer

Medium 4.8 Published Updated

An attacker can cause a denial of service in ImageMagick by supplying a crafted list of images that triggers a heap-use-after-free in PerlMagick.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-86425?

CVE-2026-86425 is a medium-severity use after free vulnerability in Imagemagick Imagemagick, published on 7 Sep 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

ImageMagick before 7.1.2-30 and 6.9.x before 6.9.13-55 contains a heap-use-after-free vulnerability in the Layer method of PerlMagick. An attacker who supplies a crafted list of images can trigger memory access after deallocation, resulting in a crash (denial of service).

Weakness: CWE-416

Which versions are affected by CVE-2026-86425?

It affects 1 product.

Products include Imagemagick Imagemagick.

How do I fix CVE-2026-86425?

Upgrade to a fixed version.

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-86425 being exploited?

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

All Imagemagick Imagemagick vulnerabilities

Sources

Also known as DEBIAN-CVE-2026-86425, ECHO-3659-505c-9f90, GHSA-chf5-8rv9-gjqr, GHSA-cq4h-xmp2-xr98, MINI-g2hg-x7x8-9jhj, UBUNTU-CVE-2026-86425.

Is CVE-2026-86425 in your software?

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

Check your SBOMs for free