CVE-2026-66758 Details
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.
A heap-based buffer overflow vulnerability has been identified in the GIMP file-fits plugin, affecting versions 3.0.8, 3.2.4, and the master HEAD. The issue arises when the plugin processes FITS image files. It uses signed 32-bit integers to calculate memory allocation sizes based on the image's width and height. If a crafted FITS file sets these dimensions to large values, their product can exceed the maximum value for a signed integer, leading to an overflow. This results in an undersized buffer allocation on the heap. The vulnerability is exploited when the cfitsio library writes pixel data into this improperly sized buffer, causing memory corruption. This exploitation could potentially allow for arbitrary code execution or cause a denial-of-service condition.
Users are advised not to open FITS files from untrusted sources with GIMP. Red Hat has released a patch for this vulnerability in GIMP versions 2.8 and 2.10.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 28, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2026:50817 | [email protected] | Issue Tracking |
| https://access.redhat.com/errata/RHSA-2026:62507 | [email protected] | |
| https://access.redhat.com/security/cve/CVE-2026-66758 | [email protected] | Vendor Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2507475 | [email protected] | Issue TrackingVendor Advisory |
| https://gitlab.gnome.org/GNOME/gimp/-/issues/16528 | [email protected] | ExploitIssue TrackingVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gimp gimp | 3.0.8 3.2.4 |
CPE
Remediation
| |
| redhat enterprise linux | 6.0 7.0 8.0 9.0 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 2, 2026 | CVE Modified | [email protected] |
| Aug 7, 2026 | Initial Analysis | [email protected] |
| Aug 5, 2026 | CVE Modified | [email protected] |
| Jul 31, 2026 | CVE Modified | [email protected] |
| Jul 29, 2026 | CVE Modified | CISA-ADP |
| Jul 28, 2026 | CVE Modified | CISA-ADP |
| Jul 27, 2026 | New CVE Received | [email protected] |