{"id":"CVE-2026-66758","aliases":["CVE-2026-66758"],"related":[],"kind":"vulnerability","state":"published","title":"Gimp: integer overflow in file-fits plugin causes a heap-based buffer overflow on crafted fits images","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-07-27T19:07:12.789Z","modified":"2026-11-04T23:17:57.333Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-190"],"affected":[{"ranges":[],"vendor":"GNOME","product":"GIMP","package":"gimp","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"8100020260824165450.4c9c024f","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"gimp:2.8","cpe":"cpe:/a:redhat:enterprise_linux:8::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"2:3.0.4-4.el9_8.9","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"gimp","cpe":"cpe:/a:redhat:enterprise_linux:9::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"2:2.99.8-4.el9_2.7","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions","package":"gimp","cpe":"cpe:/a:redhat:rhel_e4s:9.2::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"2:2.99.8-4.el9_4.19","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions","package":"gimp","cpe":"cpe:/a:redhat:rhel_e4s:9.4::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"2:2.99.8-4.el9_6.20","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.6 Extended Update Support","package":"gimp","cpe":"cpe:/a:redhat:rhel_eus:9.6::appstream","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 6","package":"gimp","cpe":"cpe:/o:redhat:rhel_els:6","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","package":"gimp","cpe":"cpe:/o:redhat:rhel_els:7","source":"cvelist"},{"ranges":[{"status":"affected","version":"3.0.8"},{"status":"affected","version":"3.2.4"}],"vendor":"gimp","product":"gimp","cpe":"cpe:2.3:a:gimp:gimp:3.0.8:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"6.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"8.0"},{"status":"affected","version":"9.0"}],"vendor":"redhat","product":"enterprise_linux","cpe":"cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:50817","tags":["issue-tracking","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:62507","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:73768","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:80509","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:93589","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-66758","tags":["vdb-entry","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2507475","tags":["issue-tracking","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://gitlab.gnome.org/GNOME/gimp/-/issues/16528","tags":["exploit","issue-tracking","vendor-advisory"],"sources":["cvelist","nvd"]}],"credits":["Red Hat would like to thank Tristan Madani for reporting this issue."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-07-28T03:56:52.707Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-66758","url":"https://www.cve.org/CVERecord?id=CVE-2026-66758","licence":"CVE Terms of Use","modified":"2026-11-04T23:01:02.540Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-66758","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-66758","licence":"Public domain","modified":"2026-11-04T23:17:57.333Z"}],"updatedAt":"2026-11-25T22:59:30.230Z","epss":{"score":0.0036,"percentile":0.22036,"date":"2026-11-30T12:00:22.000Z"}}