Skip to content
OpenAdvisories
Medium · 5.5 CVE-2026-66757 EUVD-2026-49403GHSA-3xfh-g29g-69hj

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

Published Jul 27, 2026 · Updated Nov 5, 2026 · Assigned by redhat

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.

Affected products

VendorProductAffectedFixed
GNOME GIMP — —
Red Hat Red Hat Enterprise Linux 6 — —
Red Hat Red Hat Enterprise Linux 7 — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 9 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 gimp 3.2.6-1 —
Debian 13 gimp No fix yet —
Debian 12 gimp No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 gimp No fix yet —
Ubuntu 26.04 LTS gimp No fix yet —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS gimp No fix yet —
Ubuntu Pro 22.04 LTS gimp No fix yet —
Ubuntu Pro 20.04 LTS gimp No fix yet —
Ubuntu Pro 18.04 LTS gimp No fix yet —
Ubuntu Pro 16.04 LTS gimp No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 gimp 2.10.30-150400.3.74.1 SUSE-SU-2026:4309-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed gimp 3.2.4-3.1 openSUSE-SU-2026:11449-1
openSUSE Leap 16.0 gimp 3.0.8-bp160.6.1 openSUSE-SU-2026:21839-1, openSUSE-SU-2026:21733-1, openSUSE-SU-2026:21521-1

Advisories 6

References