Summary
A flaw was found in GIMP's file-gif-load plugin when processing specially crafted JIF image files. A 32-bit integer overflow occurs during the pixel buffer size calculation, while the zlib output limit is computed separately without wrapping. This results in an undersized heap allocation and a heap-based buffer overflow (CWE-122) when the compressed image data is decompressed.
Per the CVSS vector (7.8, high), the attack is local: the attacker must deliver a malicious file that the user opens or browses in GIMP. No privileges are required and complexity is low, but user interaction is needed. According to the description, this can crash the application (denial of service) or potentially allow arbitrary code execution in the user's context, with full impact on confidentiality, integrity and availability.
The vulnerability is not listed in the CISA KEV catalog and no EPSS data is available.
Who is affected
Users and organizations running GIMP 3.1.2 or later, including Red Hat Enterprise Linux 6, 7, 8, 9 and 10 systems with GIMP installed.
What to do
- No fixed version is listed in the record; monitor the official GNOME/GIMP advisory (gitlab.gnome.org/GNOME/gimp/-/work_items/17001) and Red Hat (access.redhat.com/security/cve/CVE-2026-136329) and apply the patch as soon as it is available.
- Do not open JIF files from untrusted sources in GIMP or navigate to directories containing such files.
- Disable thumbnail generation in GIMP preferences to prevent the vulnerable code path from being reached via the GIMP file chooser.
- Inventory systems with GIMP 3.1.2 or later installed and consider removing it from servers where it is not needed.
Vendor workaround
To mitigate this vulnerability, do not open JIF files or navigate to directories containing JIF files from untrusted sources using GIMP. Additionally, users can disable thumbnail generation in the preferences to prevent the vulnerable code path from being reached when using the GIMP file chooser.
Original text from the vendor's CVE record.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-122 Heap-based Buffer Overflow
References
- access.redhat.com/security/cve/CVE-2026-136329
- bugzilla.redhat.com/show_bug.cgi?id=2583413
- gitlab.gnome.org/GNOME/gimp/-/work_items/17001
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.