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

Published Jul 27, 2026
·
Updated

A flaw was found in the file-fits plugin in GIMP, affecting all versions. 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.

Other sources

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.

MITRE

Affected Software

7 affected components
GIMP file-fits plugin
GIMP GIMP=3.0.8
GIMP GIMP=3.2.4
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0

Event History

Jul 27, 2026
Data Sourced
via Red Hat·02:08 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·07:07 PM
Data Sourced
via MITRE·07:07 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:17 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-66758?

CVE-2026-66758 has a severity rating of high with a score of 7.8.

2

How do I fix CVE-2026-66758?

To fix CVE-2026-66758, update GIMP to the latest version that addresses this vulnerability.

3

What type of vulnerability is CVE-2026-66758?

CVE-2026-66758 is categorized as a buffer overflow vulnerability caused by an integer overflow.

4

What impact does CVE-2026-66758 have on GIMP users?

CVE-2026-66758 can lead to a heap-based buffer overflow, potentially allowing for arbitrary code execution.

5

Which versions of GIMP are affected by CVE-2026-66758?

All versions of GIMP that include the file-fits plugin are affected by CVE-2026-66758.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203