CVE-2026-66758
Gimp: integer overflow in file-fits plugin causes a heap-based buffer overflow on crafted fits images
- Published
- Updated
- Reserved
- 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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.30% · top 78% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Weakness
Affected products
All versions: affected
Red Hat · Red Hat Enterprise Linux 8
- unaffected 8100020260824165450.4c9c024f – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 2:3.0.4-4.el9_8.9 – < *
Red Hat · Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
- unaffected 2:2.99.8-4.el9_2.7 – < *
Red Hat · Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions
- unaffected 2:2.99.8-4.el9_4.19 – < *
Red Hat · Red Hat Enterprise Linux 9.6 Extended Update Support
- unaffected 2:2.99.8-4.el9_6.20 – < *
Red Hat · Red Hat Enterprise Linux 6
All versions: affected
Red Hat · Red Hat Enterprise Linux 7
All versions: affected
What to do
Workaround: To mitigate this vulnerability, do not open FITS files from untrusted sources with GIMP.
References (8)
- RHSA-2026:50817 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:62507 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:73768 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:80509 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:93589 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-66758 (opens in a new tab)vdb-entryx_refsource_REDHAT
- RHBZ#2507475 (opens in a new tab)issue-trackingx_refsource_REDHAT
- https://gitlab.gnome.org/GNOME/gimp/-/issues/16528 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2026-66758)Record last updated .