Skip to content
OpenAdvisories

Description

A flaw was found in the file-fits plugin in GIMP. When processing a FITS image file, the plugin calculates memory allocation sizes using signed 32-bit integers for width and height. If a crafted file sets both values to large values, their product exceeds 2^31 and overflows, resulting in an undersized heap-based buffer allocation. This integer overflow issue results in a heap-based buffer overflow when cfitsio subsequently writes a full row of pixels in the buffer, causing memory corruption, potentially leading to arbitrary code execution or a denial of service.

Affected products

VendorProductAffectedFixed
GNOME GIMP — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support — —
Red Hat Red Hat Enterprise Linux 6 — —
Red Hat Red Hat Enterprise Linux 7 — —

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 3.0.4-3+deb13u10 —
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
RHEL 9 gimp +1 2:3.0.4-4.el9_8.9 RHSA-2026:50817
RHEL 8 gimp +3 2:2.8.22-26.module+el8.10.0+24752+9e6a86ef.8 RHSA-2026:62507
RHEL 8 pygobject2 +3 2.28.7-5.module+el8.10.0+22676+becd68d6 RHSA-2026:62507
RHEL 8 pygtk2 +3 2.24.0-25.module+el8.9.0+21228+8e80d31d RHSA-2026:62507
RHEL 8 python2-cairo +2 1.16.3-7.module+el8.10.0+22676+becd68d6 RHSA-2026:62507
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.6 EUS gimp +1 2:2.99.8-4.el9_6.20 RHSA-2026:73768
RHEL 9.4 E4S gimp +1 2:2.99.8-4.el9_4.19 RHSA-2026:80509

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 gimp +1 2:3.0.4-4.el9_8.9 ALSA-2026:50817
AlmaLinux 8 gimp +3 2:2.8.22-26.module_el8.10.0+4267+35168c80.8 ALSA-2026:62507
AlmaLinux 8 pygobject2 +3 2.28.7-5.module_el8.10.0+4267+35168c80 ALSA-2026:62507
AlmaLinux 8 pygtk2 +3 2.24.0-25.module_el8.9.0+3725+d1441900 ALSA-2026:62507
AlmaLinux 8 python2-cairo +1 1.16.3-7.module_el8.10.0+4267+35168c80 ALSA-2026:62507

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 gimp 2:2.8.22-26.module+el8.10.0+1927+52edb5a0 RLSA-2026:62507
Rocky Linux 8 pygobject2 2.28.7-5.module+el8.10.0+1927+52edb5a0 RLSA-2026:62507
Rocky Linux 8 pygtk2 2.24.0-25.module+el8.9.0+1723+9bc93544 RLSA-2026:62507
Rocky Linux 8 python2-pycairo 1.16.3-7.module+el8.10.0+1927+52edb5a0 RLSA-2026:62507
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:21521-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 gimp +1 2:3.0.4-4.el9_8.9 ELSA-2026-50817

Advisories 11

References