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.
Published: 2026-07-27
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

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

History

Tue, 28 Jul 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Gimp
Gimp gimp
Vendors & Products Gimp
Gimp gimp

Mon, 27 Jul 2026 23:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 27 Jul 2026 20:30:00 +0000

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'}


Subscriptions

Gimp Gimp
Redhat Enterprise Linux
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-07-31T15:19:36.468Z

Reserved: 2026-07-27T17:24:27.249Z

Link: CVE-2026-66757

cve-icon Vulnrichment

Updated: 2026-07-27T20:21:31.637Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-27T19:17:23.473

Modified: 2026-08-10T13:45:01.340

Link: CVE-2026-66757

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T17:00:06Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound