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
EPSS: 0.003 (22.0th percentile) — read the EPSS interpretation.
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.
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 8
- Red Hat Enterprise Linux 9 — versions 2:3.0.4-4.el9_8.9
- Redhat Enterprise_linux — versions 6.0, 7.0, 8.0
Weakness classification (CWE)
References
- secalert@redhat.com (x_refsource_REDHAT, vdb-entry, Vendor Advisory)
- secalert@redhat.com (x_refsource_REDHAT, issue-tracking, Issue Tracking, Vendor Advisory)
- secalert@redhat.com (Exploit, Issue Tracking, Vendor Advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory, Issue Tracking)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory)
Frequently asked questions
- What is CVE-2026-66758?
- CVE-2026-66758 is a high-severity vulnerability in Gimp, classified under Integer Overflow or Wraparound. CVSS score: 7.8/10. Published 2026-07-27.
- How severe is CVE-2026-66758?
- High severity. CVSS v3 base score is 7.8 out of 10.