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

- Severity: High 7.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-27T19:07:12.789Z
- Modified: 2026-11-04T23:17:57.333Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- gimp: no versions given (not affected: from 2:3.0.4-4.el9_8.9 before *; from 2:2.99.8-4.el9_2.7 before *; from 2:2.99.8-4.el9_4.19 before *; from 2:2.99.8-4.el9_6.20 before *)
- gimp:2.8: no versions given (not affected: from 8100020260824165450.4c9c024f before *)
- gimp gimp: 3.0.8; 3.2.4
- redhat enterprise_linux: 6.0; 7.0; 8.0; 9.0

## References

- <https://gitlab.gnome.org/GNOME/gimp/-/issues/16528> (exploit, issue-tracking, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:50817> (issue-tracking, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:62507> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:73768> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:80509> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:93589> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-66758> (vdb-entry, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2507475> (issue-tracking, vendor-advisory)

## Sources

- CVE List: [CVE-2026-66758](https://www.cve.org/CVERecord?id=CVE-2026-66758), CVE Terms of Use, modified 2026-11-04
- NVD: [CVE-2026-66758](https://nvd.nist.gov/vuln/detail/CVE-2026-66758), Public domain, modified 2026-11-04

---

Page: https://cve.day/CVE-2026-66758 · Whole record: https://cve.day/CVE-2026-66758.json · Rebuilt by cve.day 2026-11-25T22:59:30.230Z
