CVE-2026-66758

Name
CVE-2026-66758
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.
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
secalert@redhat.com https://access.redhat.com/security/cve/CVE-2026-66758
secalert@redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2507475
secalert@redhat.com https://gitlab.gnome.org/GNOME/gimp/-/issues/16528
secalert@redhat.com https://access.redhat.com/errata/RHSA-2026:50817
secalert@redhat.com https://access.redhat.com/errata/RHSA-2026:62507

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:gimp:gimp:3.0.8:*:*:*:*:*:*:* gimp == None == 3.0.8
cpe:2.3:a:gimp:gimp:3.2.4:*:*:*:*:*:*:* gimp == None == 3.2.4
cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:* enterprise_linux == None == 6.0
cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* enterprise_linux == None == 7.0
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* enterprise_linux == None == 8.0
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:* enterprise_linux == None == 9.0

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
gimp edge-community 3.2.4-r1 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
gimp edge-community 3.2.4-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
gimp 3.24-community 3.2.4-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable