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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | gimp | 3.2.6-1 | — |
| Debian 13 | gimp | 3.0.4-3+deb13u10 | — |
| Debian 12 | gimp | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | gimp | No fix yet | — |
| Ubuntu 26.04 LTS | gimp | No fix yet | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | gimp +1 | 2:3.0.4-4.el9_8.9 | ELSA-2026-50817 |
Advisories 11
- WID-SEC-2026-2539 GIMP Plugins: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 5, 2026
- ALSA-2026:50817 Important: gimp security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:62507 Important: gimp:2.8 security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2026:50817 Red Hat Security Advisory: gimp security update Red Hat Security Advisories (RHSA) · Oct 14, 2026
- RHSA-2026:80509 Red Hat Security Advisory: gimp security update Red Hat Security Advisories (RHSA) · Oct 14, 2026
- RHSA-2026:73768 Red Hat Security Advisory: gimp security update Red Hat Security Advisories (RHSA) · Oct 12, 2026
- RHSA-2026:62507 Red Hat Security Advisory: gimp:2.8 security update Red Hat Security Advisories (RHSA) · Oct 12, 2026
- RLSA-2026:62507 Important: gimp:2.8 security update Rocky Linux Security Advisories · Sep 2, 2026
- openSUSE-SU-2026:21521-1 Security update for gimp SUSE / openSUSE Security Updates · Aug 5, 2026
- openSUSE-SU-2026:11449-1 gimp-3.2.4-3.1 on GA media SUSE / openSUSE Security Updates · Aug 5, 2026
- ELSA-2026-50817 Important: gimp security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Aug 5, 2026
References
- RHSA-2026:50817 vendor-advisory
- RHSA-2026:62507 vendor-advisory
- RHSA-2026:73768 vendor-advisory
- RHSA-2026:80509 vendor-advisory
- RHSA-2026:93589 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-66758 vdb-entry
- RHBZ#2507475 issue-tracking
- https://gitlab.gnome.org/GNOME/gimp/-/issues/16528