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.
Published: 2026-01-20
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary code execution via heap buffer overflow in XBM decoder
Action: Patch
AI Analysis

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 and CWE‑190 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, though 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.

Generated by OpenCVE AI on April 18, 2026 at 04:52 UTC.

Remediation

No vendor fix or workaround currently provided.

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 April 18, 2026 at 04:52 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

Thu, 29 Jan 2026 14:00:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*

Tue, 20 Jan 2026 22:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 20 Jan 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Tue, 20 Jan 2026 08:45:00 +0000

Type Values Removed Values Added
First Time appeared Imagemagick
Imagemagick imagemagick
Vendors & Products Imagemagick
Imagemagick imagemagick

Tue, 20 Jan 2026 01:15:00 +0000

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'}


Subscriptions

Imagemagick Imagemagick
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-02-26T14:44:46.038Z

Reserved: 2026-01-16T21:02:02.900Z

Link: CVE-2026-23876

cve-icon Vulnrichment

Updated: 2026-01-20T21:35:22.616Z

cve-icon NVD

Status : Analyzed

Published: 2026-01-20T01:15:57.440

Modified: 2026-01-29T13:54:14.303

Link: CVE-2026-23876

cve-icon Redhat

Severity : Important

Publid Date: 2026-01-20T01:01:38Z

Links: CVE-2026-23876 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-18T05:00:06Z

Weaknesses