CVE-2026-66758
CVE-2026-66758 · Gimp: integer overflow in file-fits plugin causes a heap-based buffer overflow on crafted fits images
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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 7.8 · High · EPSS 0.3% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
gimp
No fix published
red hat enterprise linux 8
- Versions
- ≥ 8100020260824165450.4c9c024f: Not affected (rpm)
No fix published
red hat enterprise linux 9
- Versions
- ≥ 2:3.0.4-4.el9_8.9: Not affected (rpm)
No fix published
red hat enterprise linux 9.4 update services for sap solutions
- Versions
- ≥ 2:2.99.8-4.el9_4.19: Not affected (rpm)
No fix published
red hat enterprise linux 9.6 extended update support
- Versions
- ≥ 2:2.99.8-4.el9_6.20: Not affected (rpm)
No fix published
red hat enterprise linux 6
No fix published
red hat enterprise linux 7
No fix published
gimp Debian:12
- Versions
- 2.10.34-1
- 2.10.34-1+deb12u1
- 2.10.34-1+deb12u10
- 2.10.34-1+deb12u2
- 2.10.34-1+deb12u3
- 2.10.34-1+deb12u4
- 2.10.34-1+deb12u5
- 2.10.34-1+deb12u6
- 2.10.34-1+deb12u7
- 2.10.34-1+deb12u8
- 2.10.34-1+deb12u9
- 2.10.36-1
- 2.10.36-2
- 2.10.36-3
- 2.10.38-1
- 2.10.38-2
- 2.99.10-1
- 2.99.12-1
- 2.99.12-2
- 2.99.14-1
- 2.99.14-2
- 2.99.16-1
- 2.99.16-2
- 2.99.18-1
- 3.0.0-1
- 3.0.0-2
- 3.0.0~RC1-1
- 3.0.0~RC1-3
- 3.0.0~RC1-4
- 3.0.0~RC2-1
- 3.0.0~RC3-1
- 3.0.2-1
- 3.0.2-2
- 3.0.2-3
- 3.0.2-3.1
- 3.0.4-1
- 3.0.4-2
- 3.0.4-3
- 3.0.4-4
- 3.0.4-5
- 3.0.4-6
- 3.0.4-6.1
- 3.0.4-6.2
- 3.0.6-1
- 3.2.0-1
- 3.2.0~RC2-1
- 3.2.0~RC2-2
- 3.2.0~RC2-3
- 3.2.0~RC2-3.1
- 3.2.0~RC2-3.2
- 3.2.0~RC2-3.3
- 3.2.0~RC3-1
- 3.2.2-1
- 3.2.4-1
- 3.2.4-2
- 3.2.4-3
- 3.2.6-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
gimp Debian:13
- Versions
- 3.0.4-3
- 3.0.4-3+deb13u1
- 3.0.4-3+deb13u2
- 3.0.4-3+deb13u3
- 3.0.4-3+deb13u4
- 3.0.4-3+deb13u5
- 3.0.4-3+deb13u6
- 3.0.4-3+deb13u7
- 3.0.4-3+deb13u8
- 3.0.4-3+deb13u9
- Affected ranges
- ECOSYSTEM: < 3.0.4-3+deb13u10
Update to 3.0.4-3+deb13u10
gimp Debian:14
- Versions
- 3.0.4-3
- 3.0.4-4
- 3.0.4-5
- 3.0.4-6
- 3.0.4-6.1
- 3.0.4-6.2
- 3.0.6-1
- 3.2.0-1
- 3.2.0~RC2-1
- 3.2.0~RC2-2
- 3.2.0~RC2-3
- 3.2.0~RC2-3.1
- 3.2.0~RC2-3.2
- 3.2.0~RC2-3.3
- 3.2.0~RC3-1
- 3.2.2-1
- 3.2.4-1
- 3.2.4-2
- 3.2.4-3
- Affected ranges
- ECOSYSTEM: < 3.2.6-1
Update to 3.2.6-1
gimp Ubuntu:Pro:16.04:LTS
- Versions
- 2.8.14-1ubuntu2
- 2.8.14-1.2ubuntu1
- 2.8.16-1ubuntu1
- 2.8.16-1ubuntu1.1
- 2.8.16-1ubuntu1.1+esm1
- 2.8.16-1ubuntu1.1+esm2
- 2.8.16-1ubuntu1.1+esm3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
gimp Ubuntu:Pro:18.04:LTS
- Versions
- 2.8.20-1
- 2.8.20-1.1
- 2.8.20-2
- 2.8.22-1
- 2.8.22-1ubuntu0.1~esm1
- 2.8.22-1ubuntu0.1~esm2
- 2.8.22-1ubuntu0.1~esm3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
gimp Ubuntu:Pro:20.04:LTS
- Versions
- 2.10.8-2
- 2.10.14-2
- 2.10.14-2build1
- 2.10.14-2ubuntu1
- 2.10.14-3
- 2.10.18-1
- 2.10.18-1ubuntu0.1
- 2.10.18-1ubuntu0.1+esm1
- 2.10.18-1ubuntu0.1+esm2
- 2.10.18-1ubuntu0.1+esm3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
gimp Ubuntu:Pro:22.04:LTS
- Versions
- 2.10.24-2
- 2.10.28-1
- 2.10.30-1
- 2.10.30-1build1
- 2.10.30-1ubuntu0.1
- 2.10.30-1ubuntu0.1+esm1
- 2.10.30-1ubuntu0.1+esm2
- 2.10.30-1ubuntu0.1+esm3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
gimp Ubuntu:Pro:24.04:LTS
- Versions
- 2.10.34-1
- 2.10.36-1
- 2.10.36-2
- 2.10.36-3build2
- 2.10.36-3build3
- 2.10.36-3ubuntu0.24.04.1
- 2.10.36-3ubuntu0.24.04.1+esm1
- 2.10.36-3ubuntu0.24.04.1+esm2
- 2.10.36-3ubuntu0.24.04.1+esm3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
gimp Ubuntu:26.10
- Versions
- 3.2.2-1
- 3.2.4-1
- 3.2.4-2
- 3.2.4-3
- 3.2.6-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
gimp Ubuntu:26.04:LTS
- Versions
- 3.0.4-6.1
- 3.0.4-6.2
- 3.0.6-1
- 3.2.0~RC2-2
- 3.2.0~RC2-3
- 3.2.0~RC2-3.1
- 3.2.0~RC2-3.2
- 3.2.0~RC2-3.3
- 3.2.0~RC3-1
- 3.2.0-1
- 3.2.2-1
- 3.2.2-1ubuntu0.26.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://access.redhat.com/errata/RHSA-2026:50817
- https://access.redhat.com/errata/RHSA-2026:62507
- https://access.redhat.com/errata/RHSA-2026:73768
- https://access.redhat.com/errata/RHSA-2026:80509
- https://access.redhat.com/security/cve/CVE-2026-66758
- https://bugzilla.redhat.com/show_bug.cgi?id=2507475
- https://gitlab.gnome.org/GNOME/gimp/-/issues/16528
- https://nvd.nist.gov/vuln/detail/CVE-2026-66758