---
id: CVE-2026-66757
title: >-
  Gimp: signed integer overflow in file-sgi (sgi-lib) causes the plugin to crash
  on rle sgi images
summary: >-
  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 f…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'
cvssSource: cna
cwe:
  - CWE-190
vendor: GNOME
product: gimp
affected:
  - gimp (all versions)
  - gimp
  - gimp (all versions)
  - 'gimp:2.8/gimp (all versions)'
  - gimp (all versions)
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-07-27T20:21:10.980868Z'
exploitAvailable: true
published: '2026-07-27'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T22:13:18.535Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-66757'
references:
  - url: 'https://access.redhat.com/security/cve/CVE-2026-66757'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2507465'
    label: RHBZ#2507465
  - url: 'https://gitlab.gnome.org/GNOME/gimp/-/work_items/16494'
tags:
  - cve.org
  - exploit-available
epss: 0.00232
epssPercentile: 0.14194
ingestedAt: '2026-11-05T23:41:31.952Z'
---

## Overview

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.

## Affected

- `gimp (all versions)`
- `gimp`
- `gimp (all versions)`
- `gimp:2.8/gimp (all versions)`
- `gimp (all versions)`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

### Workarounds

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