CVE-2026-23876: imagemagick Heap-based Buffer Overflow
Vulnerability summary
CVE-2026-23876 is a critical (CVSS 9.8) Heap-based Buffer Overflow vulnerability in imagemagick. EPSS estimates a 0.68% chance of exploitation in the next 30 days, higher than 51.3% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 9 · Related 7Timeline
- 20-01-2026PublishedVulnerability first disclosed.
- 15-07-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
0.68%
Chance of exploitation in the next 30 days
Percentile
51%
Versus all other CVEs
30-day change
+0.01 pp
From 0.66% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundImagemagick
Maturity: poc
Weaknesses
CWE · root cause- CWE-122Heap-based Buffer OverflowA heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
- CWE-190Integer Overflow or WraparoundThe product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Chainguard1 product
- imagemagick-6All versions (No fix recorded)
Debian1 product
- imagemagick< 8:6.9.11.60+dfsg-1.6+deb12u6 | < 8:7.1.1.43+dfsg1-1+deb13u5 | < 8:7.1.2.13+dfsg1-1
Imagemagick1 product
- imagemagick< 7.1.2-13 | < 6.9.13-38 | ≥ 7.0.0-0, < 7.1.2-13
Ubuntu1 product
- imagemagickAll 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
4 vendors · 4 products
References
12 links- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-r49w-jqq3-3gx8X Refsource CONFIRMREPORTAdvisoryExploitVendor Advisory
- github.com/ImageMagick/ImageMagick/commit/2fae24192b78fdfdd27d766fd21d90aeac6ea8b8X Refsource MISCREPORTFIXPatch