cve.bz

CVE-2026-23876 imagemagick imagemagick: Heap-based Buffer Overflow

9.8 criticalExploit referenceEPSS 0.7%Fix available

Critical (9.8) in imagemagick imagemagick. EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 53rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-01-21. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-122 Heap-based Buffer Overflow
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-23876 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-23876?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-23876?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-23876 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
imagemagick:imagemagickbefore 6.9.13-38
imagemagick:imagemagickfrom 7.0.0-0 before 7.1.2-13

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11imagemagick8:6.9.11.60+dfsg-1.3+deb11u9DLA-4448-1
Debian12imagemagick8:6.9.11.60+dfsg-1.6+deb12u6DEBIAN-CVE-2026-23876 DSA-6111-1
Debian13imagemagick8:7.1.1.43+dfsg1-1+deb13u5DEBIAN-CVE-2026-23876 DSA-6111-1
Debian14imagemagick8:7.1.2.13+dfsg1-1DEBIAN-CVE-2026-23876
Ubuntu25.10imagemagickno fix listedUBUNTU-CVE-2026-23876
UbuntuPro:14.04:LTSimagemagick8:6.7.7.10-6ubuntu3.13+esm18UBUNTU-CVE-2026-23876 USN-8021-1
UbuntuPro:16.04:LTSimagemagick8:6.8.9.9-7ubuntu5.16+esm17UBUNTU-CVE-2026-23876 USN-8021-1
UbuntuPro:18.04:LTSimagemagick8:6.9.7.4+dfsg-16ubuntu6.15+esm9UBUNTU-CVE-2026-23876 USN-8021-1
UbuntuPro:20.04:LTSimagemagick8:6.9.10.23+dfsg-2.1ubuntu11.11+esm7UBUNTU-CVE-2026-23876 USN-8021-1
UbuntuPro:22.04:LTSimagemagick8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm7UBUNTU-CVE-2026-23876 USN-8021-1
UbuntuPro:24.04:LTSimagemagick8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm6UBUNTU-CVE-2026-23876 USN-8021-1
Red Hatrhel_els:7ImageMagick, ImageMagick-c++, ImageMagick-doc and 4 more0:6.9.10.68-10.el7_9RHSA-2026:3058
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 moreImageMagick7.1.0.9-150400.6.64.1SUSE-SU-2026:0503-1
SUSELinux Enterprise Module for Desktop Applications 15 SP7, Linux Enterprise Module for Development Tools 15 SP7ImageMagick7.1.1.43-150700.3.33.1SUSE-SU-2026:0437-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5ImageMagick6.8.8.1-71.227.1SUSE-SU-2026:0384-1
SUSELinux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6ImageMagick7.1.1.21-150600.3.38.1SUSE-SU-2026:0438-1
openSUSELeap 15.6ImageMagick7.1.1.21-150600.3.38.1SUSE-SU-2026:0438-1
openSUSELeap 16.0ImageMagick7.1.2.0-160000.6.1openSUSE-SU-2026:20337-1
openSUSETumbleweedImageMagick7.1.2.13-2.1openSUSE-SU-2026:10119-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated Important for Red Hat products as it affects ImageMagick, a widely used image manipulation suite. A heap buffer overflow in the XBM image decoder can be triggered by processing a specially crafted image file, potentially leading to arbitrary code execution or denial of service. Exploitation can occur through common image upload and processing pipelines.

Red Hat's mitigation

To reduce the risk associated with this vulnerability, avoid processing untrusted XBM image files with ImageMagick. Implement strict input validation and sanitization for any image files processed by ImageMagick, especially those originating from external or untrusted sources. Deploying ImageMagick within a sandboxed or containerized environment can further limit the impact of a successful exploit by isolating the process and restricting its access to system resources.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7 Extended Lifecycle SupportImageMagick-0:6.9.10.68-10.el7_9Fixed 2026-02-23RHSA-2026:3058
Red Hat Enterprise Linux 6ImageMagickOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-23876.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON