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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 6.9.13-38, 7.1.2-13 (CNA); fix release not confirmed
- Status: published
- Published: 2026-01-20 · Modified: 2026-07-15
- Aliases: UBUNTU-CVE-2026-23876, USN-8021-1, DEBIAN-CVE-2026-23876, CGA-3wwr-3fvp-f24m, CGA-mq64-rpjr-cfhf
- Record: https://cvemate.com/vulnerability/CVE-2026-23876 · JSON: https://cvemate.com/vulnerability/CVE-2026-23876/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.672%, percentile 53.46%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- chainguard imagemagick-6 (Chainguard): All versions (No fix recorded)
- debian imagemagick (Debian): \< 8:6.9.11.60+dfsg-1.6+deb12u6 \| \< 8:7.1.1.43+dfsg1-1+deb13u5 \| \< 8:7.1.2.13+dfsg1-1
- ubuntu imagemagick (Ubuntu): All versions (No fix recorded) \| \< 8:6.7.7.10-6ubuntu3.13+esm18 \| \< 8:6.8.9.9-7ubuntu5.16+esm17 \| \< 8:6.9.7.4+dfsg-16ubuntu6.15+esm9 \| \< 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm7 \| \< 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm7 \| \< 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm6
- imagemagick imagemagick: \< 7.1.2-13 \| \< 6.9.13-38 \| ≥ 7.0.0-0, \< 7.1.2-13

## References

- <https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-r49w-jqq3-3gx8>
- <https://github.com/ImageMagick/ImageMagick/commit/2fae24192b78fdfdd27d766fd21d90aeac6ea8b8>
- <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>
- <https://access.redhat.com/errata/RHSA-2026:3058>
- <https://ubuntu.com/security/CVE-2026-23876>
- <https://www.cve.org/CVERecord?id=CVE-2026-23876>
- <https://ubuntu.com/security/notices/USN-8021-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-23876>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23876.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-23876>

---

Data as of 2026-12-05T09:58:49.196Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
