Vulnerability · Published Jul 27, 2026 · Assigned by redhat
CVE-2026-66758Gimp: integer overflow in file-fits plugin causes a heap-based buffer overflow on crafted fits images
High 7.8
In plain English
A high-severity integer overflow in GIMP from GNOME. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 22% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | gimp | 2:2.8.22-26.module_el8.10.0+4267+35168c80.8 | ALSA-2026:62507 |
| AlmaLinux:9 | gimp | 2:3.0.4-4.el9_8.9 | ALSA-2026:50817 |
| AlmaLinux:8 | gimp-devel | 2:2.8.22-26.module_el8.10.0+4267+35168c80.8 | ALSA-2026:62507 |
| AlmaLinux:8 | gimp-devel-tools | 2:2.8.22-26.module_el8.10.0+4267+35168c80.8 | ALSA-2026:62507 |
| AlmaLinux:8 | gimp-libs | 2:2.8.22-26.module_el8.10.0+4267+35168c80.8 | ALSA-2026:62507 |
| AlmaLinux:9 | gimp-libs | 2:3.0.4-4.el9_8.9 | ALSA-2026:50817 |
| AlmaLinux:8 | pygobject2 | 2.28.7-5.module_el8.10.0+4267+35168c80 | ALSA-2026:62507 |
| AlmaLinux:8 | pygobject2-codegen | 2.28.7-5.module_el8.10.0+4267+35168c80 | ALSA-2026:62507 |
| AlmaLinux:8 | pygobject2-devel | 2.28.7-5.module_el8.10.0+4267+35168c80 | ALSA-2026:62507 |
| AlmaLinux:8 | pygobject2-doc | 2.28.7-5.module_el8.10.0+4267+35168c80 | ALSA-2026:62507 |
| AlmaLinux:8 | pygtk2 | 2.24.0-25.module_el8.9.0+3725+d1441900 | ALSA-2026:62507 |
| AlmaLinux:8 | pygtk2-codegen | 2.24.0-25.module_el8.9.0+3725+d1441900 | ALSA-2026:62507 |
| AlmaLinux:8 | pygtk2-devel | 2.24.0-25.module_el8.9.0+3725+d1441900 | ALSA-2026:62507 |
| AlmaLinux:8 | pygtk2-doc | 2.24.0-25.module_el8.9.0+3725+d1441900 | ALSA-2026:62507 |
| AlmaLinux:8 | python2-cairo | 1.16.3-7.module_el8.10.0+4267+35168c80 | ALSA-2026:62507 |
| AlmaLinux:8 | python2-cairo-devel | 1.16.3-7.module_el8.10.0+4267+35168c80 | ALSA-2026:62507 |
| Debian:12 | gimp | no fix listed | DEBIAN-CVE-2026-66758 |
| Debian:13 | gimp | 3.0.4-3+deb13u10 | DEBIAN-CVE-2026-66758 |
| Debian:14 | gimp | 3.2.6-1 | DEBIAN-CVE-2026-66758 |
| Rocky Linux:8 | gimp | 2:2.8.22-26.module+el8.10.0+1998+a08ccc48.2 | RLSA-2026:62507 |
| Rocky Linux:8 | gimp | 2:2.8.22-26.module+el8.10.0+40033+6fd27379.3 | RLSA-2026:62507 |
| Rocky Linux:8 | gimp | 2:2.8.22-26.module+el8.10.0+40075+a21479b4.4 | RLSA-2026:62507 |
| Rocky Linux:8 | gimp | 2:2.8.22-26.module+el8.10.0+1927+52edb5a0 | RLSA-2026:62507 |
| Rocky Linux:8 | gimp | 2:2.8.22-26.module+el8.10.0+40181+ad0e3a65.6 | RLSA-2026:62507 |
| Rocky Linux:8 | gimp | 2:2.8.22-26.module+el8.10.0+40134+eab491b1.5 | RLSA-2026:62507 |
| Rocky Linux:8 | pygobject2 | 0:2.28.7-5.module+el8.10.0+1927+52edb5a0 | RLSA-2026:62507 |
| Rocky Linux:8 | pygtk2 | 0:2.24.0-25.module+el8.9.0+1723+9bc93544 | RLSA-2026:62507 |
| Rocky Linux:8 | python2-pycairo | 0:1.16.3-7.module+el8.10.0+1927+52edb5a0 | RLSA-2026:62507 |
| Ubuntu:26.04:LTS | gimp | no fix listed | UBUNTU-CVE-2026-66758 |
| Ubuntu:26.10 | gimp | no fix listed | UBUNTU-CVE-2026-66758 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| GNOME | GIMP | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | see references |
| Red Hat | Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions | see references |
| Red Hat | Red Hat Enterprise Linux 9.6 Extended Update Support | see references |
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
Weakness: CWE-190 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- RHSA-2026:50817 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:62507 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:73768 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:80509 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:93589 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-66758 vdb-entry, x_refsource_REDHAT
- RHBZ#2507475 issue-tracking, x_refsource_REDHAT
- https://gitlab.gnome.org/GNOME/gimp/-/issues/16528