CVE-2026-42169

Gimp: gimp apng loader heap-buffer-overflow when fctl width exceeds ihdr width (file-png.c)

Published Aug 4, 2026 CVSS 3.1 · 7.3 High EPSS < 1% KEV · Not listed
Description
A heap-buffer-overflow vulnerability exists in the APNG (Animated PNG) file loader of GIMP. This flaw occurs when the `fcTL` width exceeds the `IHDR` width, leading to pixel data being written past the end of a heap allocation. Additionally, a heap-based buffer overflow exists in the DDS plug-in due to a BPP mismatch in the `load_layer()` function. Both vulnerabilities can be triggered by opening a specially crafted image file, potentially leading to code execution.

Analysis

AI-generated

Technical impact

A heap-buffer-overflow in GIMP’s animated‑PNG loader can be triggered by opening an image that contains an fcTL chunk whose width field is larger than the width in the preceding IHDR chunk; this causes pixel data to be written beyond the end of the allocated heap block. A second heap overflow occurs in the DDS plug‑in when a BPP mismatch in load_layer() leads to a similar out‑of‑bounds write. Both overflow paths can be exploited to execute arbitrary code. The weakness is classified as CWE‑131: Incorrect Calculation of Buffer Size.

Affected Systems

The vulnerability is present in the GIMP component delivered with Red Hat Enterprise Linux 6, 7, 8, and 9. All installed versions that include the affected GIMP binary are impacted; the list does not specify stricter version limits.

Risk and Exploitability

The CVSS score of 7.3 indicates a high level of risk. No EPSS score is currently available and the vulnerability is not listed in the CISA KEV catalog, which suggests an unknown exploitation probability. The error can be triggered simply by opening a malicious image file, so the likely attack vector is local; an attacker with sufficient privileges to run GIMP can potentially gain code execution on the host. Until a vendor patch is issued, the risk remains significant for systems that accept untrusted graphic input.

Remediation

Vendor Workaround

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.


OpenCVE Recommended Actions

  • Limit the use of GIMP to trusted users or disable the APNG loader if the functionality is not required.
  • Keep the RHEL system updated and monitor Red Hat errata for a patch that addresses this GIMP vulnerability; apply any available patch as soon as it is released.
  • Implement strict application confinement (SELinux or AppArmor) to restrict GIMP’s file system access and prevent arbitrary code execution.
  • Avoid opening unknown or untrusted image files with GIMP; use file‑type validation and user education as a temporary precaution.

Generated by OpenCVE AI on August 4, 2026 at 09:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Redhat rhel Els
CPEs cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:8
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
CPEs cpe:/a:redhat:rhel_e4s:9.2::appstream
References
Type Values Removed Values Added
First Time appeared Redhat rhel E4s
CPEs cpe:/a:redhat:rhel_e4s:9.4::appstream
Vendors & Products Redhat rhel E4s
References
Type Values Removed Values Added
First Time appeared Redhat enterprise Linux Eus
CPEs cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux_eus:9.6:*:*:*:*:*:*:*
Vendors & Products Redhat enterprise Linux Eus
Type Values Removed Values Added
First Time appeared Redhat rhel Eus
CPEs cpe:/a:redhat:rhel_eus:9.6::appstream
Vendors & Products Redhat rhel Eus
References
Type Values Removed Values Added
First Time appeared Gimp
Gimp gimp
Vendors & Products Gimp
Gimp gimp
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:9 cpe:/a:redhat:enterprise_linux:9::appstream
References
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A heap-buffer-overflow vulnerability exists in the APNG (Animated PNG) file loader of GIMP. This flaw occurs when the `fcTL` width exceeds the `IHDR` width, leading to pixel data being written past the end of a heap allocation. Additionally, a heap-based buffer overflow exists in the DDS plug-in due to a BPP mismatch in the `load_layer()` function. Both vulnerabilities can be triggered by opening a specially crafted image file, potentially leading to code execution.
Title Gimp: gimp apng loader heap-buffer-overflow when fctl width exceeds ihdr width (file-png.c)
First Time appeared Redhat
Redhat enterprise Linux
Weaknesses CWE-131
CPEs cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
References
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-131

    Incorrect Calculation of Buffer Size

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 5, 2026, 8:46 PM
Reserved
Apr 24, 2026, 8:54 PM
Status
Modified
Published
Aug 4, 2026, 4:16 AM
Modified
Nov 5, 2026, 9:18 PM
Severity
Moderate
Public date
Aug 4, 2026, 12:20 AM