CVE-2026-23876

Heap buffer overflow with attacker-controlled data in XBM parser

Published Jan 20, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A heap buffer overflow exists in the XBM image decoder of ImageMagick prior to versions 7.1.2‑13 and 6.9.13‑38. The flaw is triggered when the decoder processes a maliciously crafted XBM file, causing it to write attacker‑controlled data beyond the bounds of a heap buffer. This allows an attacker to corrupt memory and potentially execute arbitrary code, falling under CWE‑122, CWE‑190 and CWE‑787 weaknesses.

Affected Systems

The vulnerability affects the ImageMagick image manipulation suite. All releases of ImageMagick older than 7.1.2-13 and 6.9.13-38 are impacted. The fix is delivered in ImageMagick 7.1.2‑13 and 6.9.13‑38 and later builds.

Risk and Exploitability

The CVSS score of 8.1 indicates high severity, and the EPSS score of less than 1% suggests low current exploitation probability, but the flaw remains unpatched in many deployments. Any operation that reads or identifies an XBM image—such as image upload, thumbnail generation, or format conversion—can trigger the overflow. Exploitation requires the ability to supply a crafted XBM file to the ImageMagick decoder, which many web services, content management systems, or image processing pipelines provide.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to version 7.1.2-13 or 6.9.13-38 or later
  • If rebuilding from source, apply the patch from the ImageMagick repository to the XBM decoder
  • Disable or reject XBM image uploads unless the format is absolutely required

Generated by OpenCVE AI on August 14, 2026 at 04:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4448-1 imagemagick security update
Debian DSA Debian DSA DSA-6111-1 imagemagick security update
Ubuntu USN Ubuntu USN USN-8021-1 ImageMagick vulnerability
History
Type Values Removed Values Added
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Imagemagick
Imagemagick imagemagick
Vendors & Products Imagemagick
Imagemagick imagemagick
Type Values Removed Values Added
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.
Title Heap buffer overflow with attacker-controlled data in XBM parser
Weaknesses CWE-122
CWE-190
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 15, 2026, 1:17 AM
Reserved
Jan 16, 2026, 9:02 PM
Status
Modified
Published
Jan 20, 2026, 1:15 AM
Modified
Jul 15, 2026, 2:18 AM
Severity
Important
Public date
Jan 20, 2026, 1:01 AM