CVE-2026-23876CWE-122CWE-190

Heap buffer overflow with attacker-controlled data in XBM parser

High · published January 20, 2026

CVSS v3.1
8.1
EPSS
1%
Percentile
51.8
In the wild
Unconfirmed
What it is

⚡ A heap buffer overflow in ImageMagick turns your image processing pipelines into a dangerous avenue for attacks! Think of your computer's memory as a busy restaurant kitchen. If a chef doesn't carefully measure their ingredients, they might accidentally spill food into the wrong pot, causing a chaotic overflow – and that’s what’s happening here with ImageMagick! An attacker could craft a malicious image file that, when processed, writes data beyond the allocated memory space. This could lead to unauthorized access, crashes, or even taking control of the server! Talk about a recipe for disaster!

Put simply

Think of your computer's memory as a busy restaurant kitchen. If a chef doesn't carefully measure their ingredients, they might accidentally spill food into the wrong pot, causing a chaotic overflow – and that’s what’s happening here with ImageMagick! This vulnerability in the XBM image decoder allows attackers to exploit a heap buffer overflow by sending specially crafted image files, which can trigger uncontrolled writes in memory during image processing operations like uploads or conversions.

What to do

An attacker could craft a malicious image file that, when processed, writes data beyond the allocated memory space. This could lead to unauthorized access, crashes, or even taking control of the server! Talk about a recipe for disaster! Upgrade to ImageMagick version 7.1.2-13 or 6.9.13-38 immediately to patch this vulnerability. Additionally, consider implementing image validation and sanitization best practices to further secure your image processing pipelines! You've got this! Fixing this vulnerability is a straightforward path to securing your applications. 🛡️

The record
Technical detail
CVSS v3.1
8.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00678 · 51.8th percentile
Weaknesses
CWE-122 · Heap-based Buffer Overflow; CWE-190 · Integer Overflow or Wraparound
Published
2026-01-20T01:01Z
EPSS history
Timeline
  • 20 JAN 01:01Z
    Heap buffer overflow with attacker-controlled data in XBM parser
    cvelistv5