CVE-2026-66757

Gimp: signed integer overflow in file-sgi (sgi-lib) causes the plugin to crash on rle sgi images

Published Jul 27, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
A flaw was found in the file-sgi plugin in GIMP. When processing an RLE-compressed SGI image, the plugin allocates memory for a row table. The image header dimensions (ysize and zsize) are read as 16-bit unsigned integers. If a crafted file sets both dimensions to their maximum value (65535), the multiplication ysize * zsize overflows the standard 32-bit int boundary before being passed to calloc. This integer overflow issue results in undefined behavior, aborting the plugin and causing a denial of service.

Analysis

AI-generated

Technical impact

A signed integer overflow occurs in the file-sgi plugin of GIMP when handling RLE-compressed SGI images. The plugin reads the ysize and zsize header fields as 16‑bit unsigned integers and multiplies them before allocating memory. If a crafted file sets both values to 65535, the product overflows a 32‑bit integer and the subsequent calloc call receives a malformed size argument, causing undefined behavior that aborts the plugin. The resulting denial of service prevents the GIMP application from completing image loading, potentially interrupting user workflows or automated processes that rely on the editor.

Affected Systems

The vulnerability impacts GIMP installations delivered by Red Hat on Red Hat Enterprise Linux 6, 7, 8 and 9. Any host running these distributions and using the bundled GIMP package is potentially affected.

Risk and Exploitability

The CVSS base score of 5.5 indicates medium severity. Exploitation requires a crafted SGI file; the attack vector is inferred to be local file opening by a user or automated import process. No publicly available exploit exists and the vulnerability is not listed in the CISA KEV catalog. The EPSS score of < 1% indicates a very low probability of exploitation. Nevertheless, the denial of service can disrupt graphics workflows and should be treated with caution.

Remediation

Vendor Workaround

To mitigate this vulnerability, do not open SGI files from untrusted sources with GIMP.


OpenCVE Recommended Actions

  • Update GIMP to the latest version available from the vendor that includes the fix for CVE-2026-66757
  • Avoid opening SGI files from untrusted or unknown sources, following the workaround supplied by the vendor
  • If feasible, disable SGI support in GIMP or restrict the file types that can be imported

Generated by OpenCVE AI on August 3, 2026 at 16:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
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:/o:redhat:enterprise_linux:9
cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
First Time appeared Gimp
Gimp gimp
Vendors & Products Gimp
Gimp gimp
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A flaw was found in the file-sgi plugin in GIMP. When processing an RLE-compressed SGI image, the plugin allocates memory for a row table. The image header dimensions (ysize and zsize) are read as 16-bit unsigned integers. If a crafted file sets both dimensions to their maximum value (65535), the multiplication ysize * zsize overflows the standard 32-bit int boundary before being passed to calloc. This integer overflow issue results in undefined behavior, aborting the plugin and causing a denial of service.
Title Gimp: signed integer overflow in file-sgi (sgi-lib) causes the plugin to crash on rle sgi images
First Time appeared Redhat
Redhat enterprise Linux
Weaknesses CWE-190
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': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 24, 2026, 8:19 PM
Reserved
Jul 27, 2026, 5:24 PM
Status
Analyzed
Published
Jul 27, 2026, 7:17 PM
Modified
Nov 24, 2026, 9:18 PM