Skip to content
Fencer Vulns
high 7.8

CVE-2026-66758 json

Gimp: integer overflow in file-fits plugin causes a heap-based buffer overflow on crafted fits images

published 2026-07-27 3 mo ago modified 2026-11-04 4 d ago also EUVD-2026-49402

cvss
7.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 22%
public exploits
0
none known

Summary

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.

Patch / fix

  • Red Hat Red Hat Enterprise Linux 8 8100020260824165450.4c9c024f
  • Red Hat Red Hat Enterprise Linux 9 2:3.0.4-4.el9_8.9
  • Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions 2:2.99.8-4.el9_2.7
  • Red Hat Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions 2:2.99.8-4.el9_4.19
  • Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support 2:2.99.8-4.el9_6.20
  • gimp Debian 13 3.0.4-3+deb13u10
  • gimp Debian 14 3.2.6-1

debian advisories DEBIAN-CVE-2026-66758

  • gimp RHEL 8 2:2.8.22-26.module+el8.10.0+24752+9e6a86ef.8
  • pygtk2 RHEL 8 2.24.0-25.module+el8.9.0+21228+8e80d31d
  • gimp-libs RHEL 8 2:2.8.22-26.module+el8.10.0+24752+9e6a86ef.8
  • pygobject2 RHEL 8 2.28.7-5.module+el8.10.0+22676+becd68d6
  • python2-cairo RHEL 8 1.16.3-7.module+el8.10.0+22676+becd68d6
  • pygtk2-codegen RHEL 8 2.24.0-25.module+el8.9.0+21228+8e80d31d
  • python2-pycairo RHEL 8 1.16.3-7.module+el8.10.0+22676+becd68d6
  • gimp-devel-tools RHEL 8 2:2.8.22-26.module+el8.10.0+24752+9e6a86ef.8

red hat advisories RHSA-2026:80509RHSA-2026:73768RHSA-2026:62507RHSA-2026:50817

  • gimp openSUSE Tumbleweed 3.2.4-3.1
  • gimp openSUSE Leap 16.0 3.0.8-bp160.6.1

opensuse advisories openSUSE-SU-2026:11449-1openSUSE-SU-2026:21521-1

  • gimp AlmaLinux 8 2:2.8.22-26.module_el8.10.0+4267+35168c80.8
  • pygtk2 AlmaLinux 8 2.24.0-25.module_el8.9.0+3725+d1441900
  • gimp-libs AlmaLinux 8 2:2.8.22-26.module_el8.10.0+4267+35168c80.8
  • pygobject2 AlmaLinux 8 2.28.7-5.module_el8.10.0+4267+35168c80
  • python2-cairo AlmaLinux 8 1.16.3-7.module_el8.10.0+4267+35168c80
  • pygtk2-codegen AlmaLinux 8 2.24.0-25.module_el8.9.0+3725+d1441900
  • gimp-devel-tools AlmaLinux 8 2:2.8.22-26.module_el8.10.0+4267+35168c80.8
  • pygobject2-codegen AlmaLinux 8 2.28.7-5.module_el8.10.0+4267+35168c80

almalinux advisories ALSA-2026:62507ALSA-2026:50817

  • gimp Rocky Linux 8 2:2.8.22-26.module+el8.10.0+1927+52edb5a0
  • gimp Rocky Linux 8 2:2.8.22-26.module+el8.10.0+40181+ad0e3a65.6
  • gimp Rocky Linux 8 2:2.8.22-26.module+el8.10.0+40134+eab491b1.5
  • gimp Rocky Linux 8 2:2.8.22-26.module+el8.10.0+1998+a08ccc48.2
  • gimp Rocky Linux 8 2:2.8.22-26.module+el8.10.0+40033+6fd27379.3
  • gimp Rocky Linux 8 2:2.8.22-26.module+el8.10.0+40075+a21479b4.4
  • pygtk2 Rocky Linux 8 2.24.0-25.module+el8.9.0+1723+9bc93544
  • pygobject2 Rocky Linux 8 2.28.7-5.module+el8.10.0+1927+52edb5a0

rocky linux advisories RLSA-2026:62507

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-66758 updated cvss 7.8

gimp: integer overflow in file-fits plugin causes a heap-based buffer overflow on crafted FITS images

  • Red Hat Enterprise Linux 6 gimp, gimp-libs, gimp-devel-tools, gimp-help-browser
    affected: workaround, no fix planned “To mitigate this vulnerability, do not open FITS files from untrusted sources with GIMP.”
  • Red Hat Enterprise Linux 7 gimp, gimp-libs, gimp-devel-tools
    affected: workaround, no fix available “To mitigate this vulnerability, do not open FITS files from untrusted sources with GIMP.”
  • Red Hat Enterprise Linux AppStream (v. 8) pygtk2 2.24.0-25.module+el8.9.0+21228+8e80d31d, gimp 2.8.22-26.module+el8.10.0+24752+9e6a86ef.8, pygobject2 2.28.7-5.module+el8.10.0+22676+becd68d6, gimp-libs 2.8.22-26.module+el8.10.0+24752+9e6a86ef.8, python2-cairo 1.16.3-7.module+el8.10.0+22676+becd68d6, pygtk2-codegen 2.24.0-25.module+el8.9.0+21228+8e80d31d, +3 more
    fixed: vendor fix “To mitigate this vulnerability, do not open FITS files from untrusted sources with GIMP.” RHSA-2026:62507
  • Red Hat Enterprise Linux AppStream (v. 9) gimp 3.0.4-4.el9_8.9, gimp-libs 3.0.4-4.el9_8.9
    fixed: vendor fix “To mitigate this vulnerability, do not open FITS files from untrusted sources with GIMP.” RHSA-2026:50817
  • Red Hat Enterprise Linux AppStream E4S (v.9.2) gimp 2.99.8-4.el9_2.7, gimp-libs 2.99.8-4.el9_2.7
    fixed: vendor fix “To mitigate this vulnerability, do not open FITS files from untrusted sources with GIMP.” RHSA-2026:93589
  • Red Hat Enterprise Linux AppStream E4S (v.9.4) gimp 2.99.8-4.el9_4.19, gimp-libs 2.99.8-4.el9_4.19
    fixed: vendor fix “To mitigate this vulnerability, do not open FITS files from untrusted sources with GIMP.” RHSA-2026:80509
  • Red Hat Enterprise Linux AppStream EUS (v.9.6) gimp 2.99.8-4.el9_6.20, gimp-libs 2.99.8-4.el9_6.20
    fixed: vendor fix “To mitigate this vulnerability, do not open FITS files from untrusted sources with GIMP.” RHSA-2026:73768

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
3 mo ago

Exploit prediction

0.30% chance of exploitation in the next 30 days, higher than 22% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • gitlab.gnome.org https://gitlab.gnome.org/GNOME/gimp/-/issues/16528 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

  • 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

Classification

Weakness
  • CWE-190 Integer Overflow or Wraparound

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.