Skip to main content
EPSS 0.3%top 78%

CVE-2026-66758: Integer Overflow or Wraparound in GNOME GIMP

0
High
VulnerabilityCVE-2026-66758cvecve-2026-66758gcvecwe-190
Published: 07/27/2026 (07/27/2026, 19:07:12 UTC)
Source: CVE Database V5
Vendor/Project: GNOME
Product: GIMP

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 v3.1

Score 7.8high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

GNOME

GIMP

Red Hat

Red Hat Enterprise Linux 8

Red Hat

Red Hat Enterprise Linux 9

Red Hat

Red Hat Enterprise Linux 6

Red Hat

Red Hat Enterprise Linux 7

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/06/2026, 13:31:03 UTC

Technical Analysis

CVE-2026-66758 is an integer overflow vulnerability in the GIMP file-fits plugin. The plugin calculates memory allocation sizes using signed 32-bit integers for image width and height. If a crafted FITS image sets these values large enough, their product exceeds the 32-bit integer limit, causing an integer overflow and resulting in an undersized heap buffer allocation. Subsequently, when the cfitsio library writes a full row of pixels, it causes a heap-based buffer overflow, leading to memory corruption. This can potentially allow arbitrary code execution or denial of service. Exploitation requires local user interaction to open a malicious FITS file. Red Hat's advisory notes that default security mitigations such as SELinux enforcement, ASLR, and NX stack protection increase exploitation difficulty. Red Hat has released a security update for GIMP in Red Hat Enterprise Linux 9 to address this vulnerability.

Potential Impact

Successful exploitation can lead to memory corruption resulting in arbitrary code execution or denial of service. However, exploitation requires user interaction by opening a crafted FITS image file. Default security mechanisms like SELinux, ASLR, and NX stack protection reduce the risk of arbitrary code execution. The vulnerability affects confidentiality, integrity, and availability of the affected system.

Mitigation Recommendations

A security update fixing this vulnerability is available in Red Hat Enterprise Linux 9 (e.g., gimp-3.0.4-4.el9_8.9). Users should apply this update promptly. Until patched, avoid opening FITS image files from untrusted sources with GIMP to mitigate risk.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
redhat
Date Reserved
2026-07-27T17:24:27.249Z
Cvss Version
3.1
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-66758","vendor":"Red Hat"}]

Threat ID: 6a67b0129c2644c7f8ad2d32

Added to database: 07/27/2026, 19:22:58 UTC

Last enriched: 08/06/2026, 13:31:03 UTC

Last updated: 09/10/2026, 20:02:43 UTC

Views: 83

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses