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.
Published: 2026-07-27
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw in GIMP's file-fits plugin allows an attacker to craft a FITS image with very large width and height values. The plugin uses 32‑bit signed integers to compute the allocation size; when the product of width and height exceeds 2^31 it overflows, allocating a buffer that is too small. A subsequent full row of pixels is written into this undersized buffer by cfitsio, resulting in a heap‑based buffer overflow that can corrupt memory and may lead to arbitrary code execution or a denial of service.

Affected Systems

The vulnerability affects GIMP installations across GNOME and Red Hat Enterprise Linux releases 6 through 9. Any system running GIMP, whether from the GNOME package or the RHEL distribution, is susceptible when the file‑fits plugin is enabled. No specific product or component version numbers beyond the operating system family are available.

Risk and Exploitability

With a CVSS score of 7.8 the vulnerability is classified as high severity; EPSS score is <1% and it is not listed in the CISA KEV catalog. The likely attack vector requires that a user run GIMP and open a malicious FITS image; remote exploitation is not supported by the information provided. Consequently, the risk is significant for systems where the FITS plugin is enabled and files from untrusted sources can be opened.

Generated by OpenCVE AI on August 3, 2026 at 16:57 UTC.

Remediation

Vendor Workaround

To mitigate this vulnerability, do not open FITS files from untrusted sources with GIMP.


OpenCVE Recommended Actions

  • Check the GIMP or GNOME website for available patches addressing the file-fits plugin integer overflow issue.
  • If no patch is available, uninstall or disable the FITS plugin to eliminate the vulnerable code path.
  • Do not open FITS files from untrusted or unknown sources.

Generated by OpenCVE AI on August 3, 2026 at 16:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 05 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:9 cpe:/a:redhat:enterprise_linux:9::appstream
References

Wed, 29 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 28 Jul 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Gimp
Gimp gimp
Vendors & Products Gimp
Gimp gimp

Mon, 27 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
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.
Title Gimp: integer overflow in file-fits plugin causes a heap-based buffer overflow on crafted fits images
First Time appeared Redhat
Redhat enterprise Linux
Weaknesses CWE-190
CPEs cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}


Subscriptions

Gimp Gimp
Redhat Enterprise Linux
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-08-05T15:21:32.496Z

Reserved: 2026-07-27T17:24:27.249Z

Link: CVE-2026-66758

cve-icon Vulnrichment

Updated: 2026-07-29T18:16:48.029Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-27T19:17:23.613

Modified: 2026-08-07T00:04:58.133

Link: CVE-2026-66758

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T17:00:06Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound