CVE-2026-66758
7.8high
Gimp: integer overflow in file-fits plugin causes a heap-based buffer overflow on crafted fits images
- Severity
- 7.8high CVSS:3.1 by redhat
- Exploit likelihood
- 0.36% (higher than 22% of CVEs)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| gimp | Not specified 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 * | CVE List |
| gimp:2.8 | Not specified Not affected: from 8100020260824165450.4c9c024f before * | CVE List |
| gimp gimp | 3.0.8, 3.2.4 | NVD |
| redhat enterprise_linux | 6.0, 7.0, 8.0, 9.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
References
| 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 | |
| https://gitlab.gnome.org/GNOME/gimp/-/issues/16528 | exploit, issue-tracking, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-66758 changed 2026-11-04 | CVE Terms of Use |
| NVD | CVE-2026-66758 changed 2026-11-04 | Public domain |