What’s Vulnerable › Vulnerabilities
CVE-2026-23876: Heap buffer overflow with attacker-controlled data in XBM parser
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.7% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-01-20 · updated 2026-07-15
- Weakness: CWE-122
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.
Affected products
- ImageMagick: before 6.9.13-38; from 7.0.0-0 before 7.1.2-13 — fixed in 6.9.13-38, 7.1.2-13
How to fix
Upgrade to a fixed version: ImageMagick 6.9.13-38, 7.1.2-13. Check the vendor advisory for mitigations.
References
- https://github.com/ImageMagick/ImageMagick/commit/2fae24192b78fdfdd27d766fd21d90aeac6ea8b8
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-r49w-jqq3-3gx8
- https://access.redhat.com/errata/RHSA-2026:3058
- https://access.redhat.com/security/cve/CVE-2026-23876
- https://bugzilla.redhat.com/show_bug.cgi?id=2431038
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-23876.json
Get alerted when CVE-2026-23876 or the next vulnerability affects your stack