CVE-2026-23876 Heap buffer overflow with attacker-controlled data in XBM parser

High 8.1 Published Updated

Heap buffer overflow in ImageMagick's XBM parser allows attackers to execute arbitrary code or cause denial of service via crafted images.

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-23876?

CVE-2026-23876 is a high-severity memory corruption vulnerability in Imagemagick Imagemagick, published on 20 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-13 and 6.9.13-38, a heap buffer overflow vulnerability in the XBM image decoder (ReadXBMImage) allows an attacker to write controlled data past the allocated heap buffer when processing a maliciously crafted image file. Any operation that reads or identifies an image can trigger the overflow, making it exploitable via common image upload and processing pipelines. Versions 7.1.2-13 and 6.9.13-38 fix the issue.

Weakness: CWE-787, CWE-190, CWE-122

Which versions are affected by CVE-2026-23876?

It affects 1 product.

Products include Imagemagick Imagemagick.

How do I fix CVE-2026-23876?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-23876 being exploited?

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

All Imagemagick Imagemagick vulnerabilities

Sources

Also known as CLSA-2026-1770802828, CLSA-2026-1770820858, CLSA-2026-1770903151, CLSA-2026-1770909956, CLSA-2026-1770910304, DEBIAN-CVE-2026-23876 and 6 more.

Is CVE-2026-23876 in your software?

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

Check your SBOMs for free