CVE-2026-23876: Heap buffer overflow in ImageMagick XBM decoder
- Vendor
- Imagemagick
CVE-2026-23876 is a heap-based buffer overflow in ImageMagick's XBM decoder, ReadXBMImage, affecting releases before 7.1.2-13 in the 7.x branch and 6.9.13-38 in the 6.x branch. Improper bounds checking while parsing a maliciously crafted XBM image allows attacker-controlled data to be written beyond an allocated heap buffer. Any operation that reads or identifies the image can trigger the overflow, exposing image upload and automated processing pipelines to memory corruption and potentially arbitrary code execution.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can corrupt heap memory and potentially execute arbitrary code with the privileges of the ImageMagick process. Possible consequences include confidentiality and integrity compromise and denial of service. Arbitrary code execution is a potential outcome, not an established result for every triggering image.
Mitigation
If you can’t patch tonight, do this now.
Until updates are installed, limit or disable ImageMagick processing of untrusted user-supplied images. Increase monitoring for suspicious image-processing activity and exploitation attempts, and maintain incident-response readiness. Updating the software does not remediate an existing compromise.
Remediation
Patch, then assume compromise.
Upgrade to ImageMagick 7.1.2-13 or later in the 7.x branch, or 6.9.13-38 or later in the 6.x branch. For Debian packages with backported fixes, upgrade bookworm to 8:6.9.11.60+dfsg-1.6+deb12u6 or later, and trixie to 8:7.1.1.43+dfsg1-1+deb13u5 or later. Apply the relevant vendor updates across affected deployments after appropriate testing, prioritizing network-facing and automated image-processing services.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-23876 exploited in the wild?
- As of Oct 2, 2026, Mallory has no reports of CVE-2026-23876 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-23876?
- Yes. As of Oct 2, 2026, Mallory has reports of a public exploit for CVE-2026-23876.
- Is there a patch for CVE-2026-23876?
- Upgrade to ImageMagick 7.1.2-13 or later in the 7.x branch, or 6.9.13-38 or later in the 6.x branch. For Debian packages with backported fixes, upgrade bookworm to 8:6.9.11.60+dfsg-1.6+deb12u6 or later, and trixie to 8:7.1.1.43+dfsg1-1+deb13u5 or later.
- What products are affected by CVE-2026-23876?
- Imagemagick.
- How severe is CVE-2026-23876?
- CVE-2026-23876 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 0.68% (53rd percentile) as of Oct 2, 2026.
Recent activity
17 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.