High severity · published Jul 27, 2026
CVE-2026-66758
Gimp: integer overflow in file-fits plugin causes a heap-based buffer overflow on crafted fits images
7.8
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 22% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GI
Gimp · Gimp
3.0.8; 3.2.4 · source: vendor, NVD
RH
Red Hat Enterprise Linux 6 · Red Hat
All versions, or not specified · source: vendor
RH
Red Hat Enterprise Linux 7 · Red Hat
All versions, or not specified · source: vendor
RH
Red Hat Enterprise Linux 8 · Red Hat
All versions, or not specified · source: vendor
RH
Red Hat Enterprise Linux 9 · Red Hat
All versions, or not specified · source: vendor
RH
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions · Red Hat
All versions, or not specified · source: vendor
RH
Red Hat Enterprise Linux 9.6 Extended Update Support · Red Hat
All versions, or not specified · source: vendor
EL
Enterprise Linux · Redhat
6.0; 7.0; 8.0; 9.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-66758
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-66758
vendor-advisory
https://access.redhat.com/errata/RHSA-2026:50817
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
vdb-entry
https://access.redhat.com/security/cve/CVE-2026-66758
issue-tracking
https://bugzilla.redhat.com/show_bug.cgi?id=2507475
More from GIMP
7.8
CVE-2026-92248
Gimp: integer overflow when generating a thumbnail preview for a psd file
7.1
CVE-2026-66759
Gimp: out-of-bounds read in file-icns plugin causes information disclosure or crash on crafted icns images
7.0
CVE-2026-78465
Gimp: integer overflow in pcx loader (planes=4) leads to heap overflow on 32-bit
6.1
CVE-2026-82343
Gimp: heap out-of-bounds read and stack out-of-bounds access in psd loader from channel-count handling
6.1
CVE-2026-82330
Gimp: heap out-of-bounds read in pvr vq (compressed) decoder due to missing bounds check
