CVE Database›Document archive›CVE-2026-66757

CVE-2026-66757

gimp: signed integer overflow in file-sgi (sgi-lib) causes the plugin to crash on RLE SGI images

Loading…

Severity

Moderate

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · July 7, 2026

Updated · August 1, 2026

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.

Statement

To exploit this vulnerability, an attacker needs to convince a user to process a specially crafted RLE-compressed SGI file with GIMP, reducing the likelihood of exploitation. Due to this reason, this flaw has been rated with a moderate severity.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

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

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

CWE-190 · Integer Overflow or Wraparound