GIMP JP2 File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability
Published Apr 11, 2026
7.8
HIGHCVSS 3.1
EPSS 0.60%
Description
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.
Affected products
-
- Version 3.0.8StatusaffectedConstraints-
- Version
No data.
Red Hat Enterprise Linux 9
gimp-2:3.0.4-1.el9_7.5
Fixed · RHSA-2026:16484
Red Hat Enterprise Linux 9
gimp-2:3.0.4-4.el9_8.4
Fixed · RHSA-2026:19362
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
gimp-2:2.99.8-3.el9_0.6
Fixed · RHSA-2026:20691
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
gimp-2:2.99.8-4.el9_2.6
Fixed · RHSA-2026:25899
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions
gimp-2:2.99.8-4.el9_4.6
Fixed · RHSA-2026:25907
Red Hat Enterprise Linux 9.6 Extended Update Support
gimp-2:2.99.8-4.el9_6.7
Fixed · RHSA-2026:25901
Red Hat Enterprise Linux 6
gimp
Out of support scope
Red Hat Enterprise Linux 7
gimp
Not affected
Red Hat Enterprise Linux 8
gimp:2.8/gimp
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 9 | gimp-2:3.0.4-1.el9_7.5 | Fixed | RHSA-2026:16484 |
| Red Hat Enterprise Linux 9 | gimp-2:3.0.4-4.el9_8.4 | Fixed | RHSA-2026:19362 |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | gimp-2:2.99.8-3.el9_0.6 | Fixed | RHSA-2026:20691 |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | gimp-2:2.99.8-4.el9_2.6 | Fixed | RHSA-2026:25899 |
| Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions | gimp-2:2.99.8-4.el9_4.6 | Fixed | RHSA-2026:25907 |
| Red Hat Enterprise Linux 9.6 Extended Update Support | gimp-2:2.99.8-4.el9_6.7 | Fixed | RHSA-2026:25901 |
| Red Hat Enterprise Linux 6 | gimp | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | gimp | Not affected | n/a |
| Red Hat Enterprise Linux 8 | gimp:2.8/gimp | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat 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 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.
References (13)
- https://access.redhat.com/errata/RHSA-2026:16484
- https://access.redhat.com/errata/RHSA-2026:19362
- https://access.redhat.com/errata/RHSA-2026:20691
- https://access.redhat.com/errata/RHSA-2026:25899
- https://access.redhat.com/errata/RHSA-2026:25901
- https://access.redhat.com/errata/RHSA-2026:25907
- https://access.redhat.com/security/cve/CVE-2026-4152 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2457533 Issue Tracking
- https://gitlab.gnome.org/GNOME/gimp/-/commit/f64c9c23ba3c37dc7b875a9fb477c23953b4666e vendor-advisoryPatch
- https://nvd.nist.gov/vuln/detail/CVE-2026-4152
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4152.json
- https://www.cve.org/CVERecord?id=CVE-2026-4152
- https://www.zerodayinitiative.com/advisories/ZDI-26-219/ x_research-advisoryThird Party Advisory
Change history (0)
No recorded changes yet.