Integer overflow in Gimp
CVE-2026-66758
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.
Vulnerability class: Integer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.003, 22.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Gimp — versions 3.0.8, 3.2.4
- GNOME Gimp
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux — versions 6.0, 7.0, 8.0
Weakness classification (CWE)
References
- access.redhat.com/security/cve/CVE-2026-66758 (vdb-entry, Vendor Advisory)
- bugzilla.redhat.com/show_bug.cgi (issue-tracking, Issue Tracking, Vendor Advisory)
- gitlab.gnome.org/GNOME/gimp/-/issues/16528 (Exploit, Issue Tracking, Vendor Advisory)
- access.redhat.com/errata/RHSA-2026:50817 (vendor-advisory, Issue Tracking)
- access.redhat.com/errata/RHSA-2026:62507 (vendor-advisory)
- access.redhat.com/errata/RHSA-2026:73768 (vendor-advisory)
- access.redhat.com/errata/RHSA-2026:80509 (vendor-advisory)
- access.redhat.com/errata/RHSA-2026:93589 (vendor-advisory)