CVE-2026-23876 Details
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.
A heap buffer overflow vulnerability has been identified in ImageMagick versions prior to 7.1.2-13 and 6.9.13-38. The issue arises in the XBM image decoder, specifically within the 'ReadXBMImage' function. Here, an attacker can manipulate data to be written beyond the limits of an allocated heap buffer while processing a maliciously crafted image file. This vulnerability can be triggered by any operation that reads or identifies an image, making it exploitable through common image upload and processing workflows. The root cause is an integer truncation error when calculating buffer sizes, allowing for controlled overflow by exploiting the 'image->rows' and 'image->columns' values in the crafted file.
Users can upgrade to ImageMagick versions 7.1.2-13 or 6.9.13-38, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-122 | Heap-based Buffer Overflow | [email protected] |
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
| CWE-787 | Out-of-bounds Write | redhat-SADP |
Affected Products
| Product | Versions |
|---|---|
| imagemagick imagemagick | < 6.9.13-38 >= 7.0.0-0, < 7.1.2-13 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 29, 2026 | Initial Analysis | [email protected] |
| Jan 20, 2026 | New CVE Received | [email protected] |