Skip to content
statance
MenuClose
high · CVSS 7.8

CVE-2026-66758

Gimp: integer overflow in file-fits plugin causes a heap-based buffer overflow on crafted fits images

Published 27 Jul 2026 · Source updated 4 Nov 2026 · Retrieved 2026-11-04 23:20 UTC

Statance checks for CVE-2026-66758. Connected servers are checked automatically against the fixed versions their distribution or package ecosystem has published for it, including app dependency lockfiles. Check my servers ↗
Monitor this CVE ↗Full CVE monitoring on Pro and Business

What happened?

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.

Description supplied by CVE Program. Formatting is simplified; follow the original advisory for full details.

Affected software and versions

Source-provided software and version information
SoftwareVersion informationFixed version
gimpGNOMEDefault status: affectedSee vendor advisory
gimp:2.8Red Hatunaffected: 8100020260824165450.4c9c024f to < *See vendor advisory
gimpRed Hatunaffected: 2:3.0.4-4.el9_8.9 to < *See vendor advisory
gimpRed Hatunaffected: 2:2.99.8-4.el9_2.7 to < *See vendor advisory
gimpRed Hatunaffected: 2:2.99.8-4.el9_4.19 to < *See vendor advisory
gimpRed Hatunaffected: 2:2.99.8-4.el9_6.20 to < *See vendor advisory
gimpRed HatDefault status: affectedSee vendor advisory
gimpRed HatDefault status: affectedSee vendor advisory

Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.

Is it being exploited?

This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.

CISA data retrieved 2026-11-06 16:38 UTC. Check CISA ↗

How to respond

  1. Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
  2. Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
  3. Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.

Sources and remediation references

This public advisory does not determine whether a particular server is affected. Records are refreshed as sources change; verify urgent decisions against the original advisory.

← Browse the public CVE feed