CVE-2026-23876: Heap buffer overflow with attacker-controlled data in XBM parser
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.
Security readout for executives and security teams
Plain-English summary
ImageMagick can be crashed or potentially compromised when it processes a malicious XBM image. The risk is highest for services that automatically inspect, resize, or convert uploaded images. Fixed versions are available upstream, so this should be treated as a prompt patching item for exposed image-processing systems.
Executive priority
Patch exposed image-processing systems promptly, especially public upload and preview services. This is not confirmed exploited in the supplied sources, but the vulnerability affects a widely used image library and can be triggered by routine file processing.
Technical view
CVE-2026-23876 is a heap buffer overflow in ImageMagick's XBM decoder, ReadXBMImage. Before 7.1.2-13 and 6.9.13-38, crafted input can cause attacker-controlled data to be written past an allocated heap buffer during image read or identification operations. The CVSS score is 8.1 with high confidentiality, integrity, and availability impact.
Likely exposure
Exposure is likely where ImageMagick processes untrusted images, including upload services, thumbnail generation, file preview systems, media pipelines, and applications using MagickCore or MagickWand. Systems on ImageMagick 7 before 7.1.2-13 or 6 before 6.9.13-38 are in scope.
Exploitation context
The source bundle does not show CISA KEV listing or cited evidence of active exploitation. Exploitation requires a malicious XBM image to be processed, and the CVSS vector rates attack complexity as high. Still, common automated image pipelines can trigger the vulnerable parser without manual operator action.
Researcher notes
Focus analysis on the XBM decoder path in ReadXBMImage and version boundaries 7.1.2-13 and 6.9.13-38. The assigned CWEs are heap overflow, integer overflow, and out-of-bounds write. Avoid assuming exploit reliability or affected downstream products without vendor evidence.
Mitigation direction
Upgrade ImageMagick to 7.1.2-13, 6.9.13-38, or later.
Apply Red Hat RHSA-2026:3058 where applicable to RHEL-managed packages.
Check vendor guidance for backported fixes in distribution packages.
Prioritize systems that process untrusted uploads or external media feeds.
Restrict untrusted image processing until patched if business workflows allow.
Validation and detection
Inventory applications, containers, and hosts that bundle ImageMagick libraries or binaries.
Confirm deployed versions are fixed upstream versions or vendor-patched builds.
Review upload, preview, conversion, and metadata workflows for ImageMagick use.
Verify package status against Red Hat advisories where RHEL packages are used.
Record whether XBM files are accepted from untrusted sources.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-122: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
5Timeline events
2ADP providers
7Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.