---
id: CVE-2026-66758
title: A flaw was found in the file-fits plugin in GIMP
summary: >-
  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, the…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-190
vendor: gimp
product: gimp
affected:
  - gimp = 3.0.8
  - gimp = 3.2.4
  - enterprise_linux = 6.0
  - enterprise_linux = 7.0
  - enterprise_linux = 8.0
  - enterprise_linux = 9.0
published: '2026-07-27'
updated: '2026-09-30'
sourceUpdated: '2026-09-30T15:22:33.133'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-66758'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2026:50817'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:62507'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:73768'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2026-66758'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2507475'
    label: secalert@redhat.com
  - url: 'https://gitlab.gnome.org/GNOME/gimp/-/issues/16528'
    label: secalert@redhat.com
tags:
  - nvd
  - cve.org
epss: 0.0036
epssPercentile: 0.27336
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-07-28T03:56:52.707001Z'
ingestedAt: '2026-09-30T15:07:05.380Z'
---

## Overview

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

- `gimp = 3.0.8`
- `gimp = 3.2.4`
- `enterprise_linux = 6.0`
- `enterprise_linux = 7.0`
- `enterprise_linux = 8.0`
- `enterprise_linux = 9.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
