cve.bz

CVE-2026-4152 gimp gimp: Heap-based Buffer Overflow

7.8 highEPSS 0.8%Fix available

High (7.8) in gimp gimp. EPSS 0.8% estimated probability of exploitation activity in the next 30 days.

On this page
GIMP JP2 File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GIMP. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the parsing of JP2 files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-28863.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 56th 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-04-13. 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-787 Out-of-bounds Write
CWE-131 Incorrect Calculation of Buffer Size
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-4152 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-4152?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-4152?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-4152 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
gimp:gimp3.0.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11gimp2.10.22-4+deb11u8DLA-4547-1
Debian12gimp2.10.34-1+deb12u10DEBIAN-CVE-2026-4152 DSA-6215-1
Debian13gimp3.0.4-3+deb13u8DEBIAN-CVE-2026-4152 DSA-6215-1
Debian14gimp3.2.0-1DEBIAN-CVE-2026-4152
Ubuntu25.10, Pro:16.04:LTS, Pro:18.04:LTS and 3 moregimpno fix listedUBUNTU-CVE-2026-4152
Red Hatenterprise_linux:9::appstreamgimp, gimp-libs, gimp-debuginfo and 3 more2:3.0.4-1.el9_7.5RHSA-2026:16484
Red Hatenterprise_linux:9::appstreamgimp, gimp-libs, gimp-debuginfo and 3 more2:3.0.4-4.el9_8.4RHSA-2026:19362
Red Hatrhel_e4s:9.0::appstreamgimp, gimp-libs, gimp-debuginfo and 3 more2:2.99.8-3.el9_0.6RHSA-2026:20691
Red Hatrhel_e4s:9.2::appstreamgimp, gimp-libs, gimp-debuginfo and 3 more2:2.99.8-4.el9_2.6RHSA-2026:25899
Red Hatrhel_e4s:9.4::appstreamgimp, gimp-libs, gimp-debuginfo and 3 more2:2.99.8-4.el9_4.6RHSA-2026:25907
Red Hatrhel_eus:9.6::appstreamgimp, gimp-libs, gimp-debuginfo and 3 more2:2.99.8-4.el9_6.7RHSA-2026:25901
AlmaLinux9gimp, gimp-libs2:3.0.4-1.el9_7.5ALSA-2026:16484
AlmaLinux9gimp, gimp-libs2:3.0.4-4.el9_8.4ALSA-2026:19362
Rocky Linux9gimp2:3.0.4-1.el9_7.5RLSA-2026:16484

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; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This is an Important vulnerability in GIMP that could lead to arbitrary code execution. The flaw is a heap-based buffer overflow in the JP2 file parsing component. Exploitation requires user interaction, where a victim must open a specially crafted malicious JP2 file.

Red Hat's mitigation

To mitigate this issue, users should avoid opening JP2 (JPEG 2000) files from untrusted sources in GIMP. If GIMP is not required, consider removing the `gimp` package to eliminate the attack surface. For systems where GIMP is necessary, running the application within a sandboxed environment can limit the potential impact of successful exploitation. Removing this package may affect other applications that depend on GIMP.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9gimp-2:3.0.4-1.el9_7.5Fixed 2026-05-12RHSA-2026:16484
Red Hat Enterprise Linux 9gimp-2:3.0.4-4.el9_8.4Fixed 2026-05-19RHSA-2026:19362
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionsgimp-2:2.99.8-3.el9_0.6Fixed 2026-05-26RHSA-2026:20691
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsgimp-2:2.99.8-4.el9_2.6Fixed 2026-06-15RHSA-2026:25899
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionsgimp-2:2.99.8-4.el9_4.6Fixed 2026-06-15RHSA-2026:25907
Red Hat Enterprise Linux 9.6 Extended Update Supportgimp-2:2.99.8-4.el9_6.7Fixed 2026-06-15RHSA-2026:25901
Red Hat Enterprise Linux 6gimpOut of support scope
Red Hat Enterprise Linux 7gimpNot affected
Red Hat Enterprise Linux 8gimp:2.8/gimpNot affected

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-4152.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High
  • CAPEC-47 Buffer Overflow via Parameter Expansion Likelihood: Medium · Severity: High
  • CAPEC-100 Overflow Buffers Likelihood: High · Severity: Very High

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

References

Check your stackJSON