CVE-2026-23876: Heap buffer overflow with attacker-controlled data in XBM parser

Published Jan 20, 2026
·
Updated

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.

Affected Software

4 affected components
ImageMagick ImageMagick<7.1.2-13
ImageMagick ImageMagick<6.9.13-38
ImageMagick ImageMagick<6.9.13-38
ImageMagick ImageMagick>=7.0.0-0<7.1.2-13

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ImageMagick XBM image decoder (ReadXBMImage) to a version that resolves this vulnerability.

    Fixed in 7.1.2-13
  2. Upgrade

    Upgrade ImageMagick XBM image decoder (ReadXBMImage) to a version that resolves this vulnerability.

    Fixed in 6.9.13-38

Event History

Jan 20, 2026
CVE Published
via MITRE·01:01 AM
Data Sourced
via MITRE·01:01 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·02:01 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-23876?

CVE-2026-23876 is categorized as a critical severity vulnerability due to the potential for remote code execution via a heap buffer overflow.

2

How do I fix CVE-2026-23876?

To fix CVE-2026-23876, upgrade to ImageMagick version 7.1.2-13 or 6.9.13-38 and above.

3

What types of attacks can exploit CVE-2026-23876?

CVE-2026-23876 allows an attacker to execute arbitrary code on the target system through malicious XBM image files.

4

What software is affected by CVE-2026-23876?

CVE-2026-23876 affects ImageMagick versions prior to 7.1.2-13 and 6.9.13-38.

5

What impact does CVE-2026-23876 have on systems?

The impact of CVE-2026-23876 includes potential system compromise, unauthorized access, and execution of arbitrary code.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203