{"id":"CVE-2026-66758","summary":"Gimp: integer overflow in file-fits plugin causes a heap-based buffer overflow on crafted fits images","details":"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.","modified":"2026-08-08T03:48:19.213145699Z","published":"2026-07-27T19:07:12.789Z","related":["ALSA-2026:50817","openSUSE-SU-2026:11449-1","openSUSE-SU-2026:21521-1"],"database_specific":{"cwe_ids":["CWE-190"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66758.json","cna_assigner":"redhat"},"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:50817"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-66758"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66758.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-66758"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2507475"},{"type":"REPORT","url":"https://gitlab.gnome.org/GNOME/gimp/-/issues/16528"},{"type":"PACKAGE","url":"https://gitlab.gnome.org/GNOME/gimp"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/gnome/gimp","events":[{"introduced":"6ac8031c9555667e080fef0324fca9f28a02e5ab"},{"last_affected":"6987b3853c10517eb581deeb20572fb5f99a7086"}],"database_specific":{"source":"CPE_STRING","cpe":["cpe:2.3:a:gimp:gimp:3.0.8:*:*:*:*:*:*:*","cpe:2.3:a:gimp:gimp:3.2.4:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"3.0.8"},{"last_affected":"3.0.8"},{"introduced":"3.2.4"},{"last_affected":"3.2.4"}]}}],"versions":["3.0.8","3.2.4"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-66758.json"}},{"ranges":[{"type":"GIT","repo":"https://gitlab.gnome.org/gnome/gimp","events":[{"introduced":"6ac8031c9555667e080fef0324fca9f28a02e5ab"},{"last_affected":"6987b3853c10517eb581deeb20572fb5f99a7086"}],"database_specific":{"extracted_events":[{"introduced":"3.0.8"},{"last_affected":"3.0.8"},{"introduced":"3.2.4"},{"last_affected":"3.2.4"}],"source":"CPE_STRING","cpe":["cpe:2.3:a:gimp:gimp:3.0.8:*:*:*:*:*:*:*","cpe:2.3:a:gimp:gimp:3.2.4:*:*:*:*:*:*:*"]}}],"versions":["3.0.8","3.2.4"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-66758.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}