A high-severity heap buffer overflow in ImageMagick’s XBM image decoder (coders/xbm.c, ReadXBMImage) can be triggered by processing a specially crafted XBM file, including through common image upload/processing workflows. The flaw stems from integer truncation where image->rows (a 64-bit size_t) is cast to a 32-bit unsigned int for allocation, but subsequent write operations iterate using the original (non-truncated) image->rows value, creating a mismatch that can lead to memory corruption or crashes when attacker-supplied dimensions are large.
Reporting indicates the overflow is particularly dangerous because attackers can influence both the overflow size (via image dimensions such as rows/columns) and the data written (via hex values embedded in the XBM content), enabling attacker-controlled bytes to be written past the heap buffer. The issue affects ImageMagick versions prior to 7.1.2-13 and 6.9.13-38 and is fixed in 7.1.2-13 and 6.9.13-38; the CVE record lists a high-impact CVSS vector AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H and maps the weakness to CWE-190 and CWE-122, with upstream references including the vendor advisory and patch commit.

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
2 events from the most recent confirmed update back to the earliest known activity.
GitHub Security Advisories received CVE-2026-23876 on January 20, 2026, documenting a high-severity heap buffer overflow in ImageMagick's XBM parser affecting versions prior to 7.1.2-13 and 6.9.13-38. The advisory noted the issue could be triggered through image read or identify operations, making it relevant to image upload and processing pipelines.
ImageMagick addressed a heap buffer overflow in its XBM image decoder (ReadXBMImage / coders/xbm.c) by releasing fixes in versions 7.1.2-13 and 6.9.13-38. The flaw stemmed from integer truncation that could cause undersized allocation followed by attacker-controlled out-of-bounds heap writes when processing crafted XBM images.
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
2 references tracked. Mallory keeps watching after this page renders.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.