CVE-2026-66758

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

HIGH
7.8
CVSS Score
Published: July 27, 2026 at 07:07 PM UTC
Updated: October 12, 2026 at 03:17 AM UTC
3 products affected across 3 vendorsEnterprise LinuxGIMPGIMP

Using Red Hat Enterprise Linux 6 by Red Hat?

Get instant alerts when new vulnerabilities affect Red Hat Enterprise Linux 6 - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

Vendor states this is fixed in 2:2.99.8-4.el9_4.19 (unaffected)
Vendor states this is fixed in 2:2.99.8-4.el9_6.20 (unaffected)
Vendor states this is fixed in 2:3.0.4-4.el9_8.9 (unaffected)
Vendor states this is fixed in 8100020260824165450.4c9c024f (unaffected)
All versions

References (7)

VDB Entryx_refsource_REDHATVendor Advisory
https://access.redhat.com/security/cve/CVE-2026-66758
Issue Trackingx_refsource_REDHATVendor Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2507475
Vendor Advisoryx_refsource_REDHATIssue Tracking
Source: cverecord
https://access.redhat.com/errata/RHSA-2026:50817
Vendor Advisoryx_refsource_REDHAT
Source: cverecord
https://access.redhat.com/errata/RHSA-2026:62507
Vendor Advisoryx_refsource_REDHAT
Source: cverecord
https://access.redhat.com/errata/RHSA-2026:73768
Vendor Advisoryx_refsource_REDHAT
Source: cverecord
https://access.redhat.com/errata/RHSA-2026:80509

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHredhat
Attack Vector
LOCAL
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-190

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card