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

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-07-27 · Modified: 2026-11-04
- Aliases: UBUNTU-CVE-2026-66758, DEBIAN-CVE-2026-66758
- Record: https://cvemate.com/vulnerability/CVE-2026-66758 · JSON: https://cvemate.com/vulnerability/CVE-2026-66758/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.304%, percentile 24.92%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- debian gimp (Debian): All versions (No fix recorded) \| \< 3.0.4-3+deb13u10 \| \< 3.2.6-1
- ubuntu gimp (Ubuntu): All versions (No fix recorded)
- gimp gimp: 3.0.8 \| 3.2.4
- redhat enterprise\_linux: 6.0 \| 7.0 \| 8.0 \| 9.0

## References

- <https://access.redhat.com/errata/RHSA-2026:50817>
- <https://access.redhat.com/errata/RHSA-2026:62507>
- <https://access.redhat.com/errata/RHSA-2026:73768>
- <https://access.redhat.com/errata/RHSA-2026:80509>
- <https://access.redhat.com/security/cve/CVE-2026-66758>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2507475>
- <https://gitlab.gnome.org/GNOME/gimp/-/issues/16528>
- <https://ubuntu.com/security/CVE-2026-66758>
- <https://www.cve.org/CVERecord?id=CVE-2026-66758>
- <https://security-tracker.debian.org/tracker/CVE-2026-66758>
- <https://access.redhat.com/errata/RHSA-2026:93589>

---

Data as of 2026-12-05T04:21:29.715Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
