CVE-2026-58380
CVE-2026-58380 · Gimp: gimp: stack buffer overflow in pnmscanner_gettoken()
This page contains facts from public vulnerability sources. Check the original advisory before updating.
A flaw was found in GIMP's PNM file format parser. When parsing a specially crafted PNM file, the pnmscanner_gettoken() function writes a null terminator one byte past the end of a stack-allocated buffer due to an off-by-one error in the loop boundary check. This could lead to memory corruption, potentially resulting in denial of service or arbitrary code execution.
CVSS 7.3 · High · EPSS 0.3% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
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.7: 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
- Affected ranges
- ECOSYSTEM: < 3.2.4-1
Update to 3.2.4-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:25.10
- Versions
- 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-5
- 3.0.4-6
- 3.0.4-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:40751
- 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-58380
- https://bugzilla.redhat.com/show_bug.cgi?id=2496135
- https://gitlab.gnome.org/GNOME/gimp/-/commit/83699817
- https://gitlab.gnome.org/GNOME/gimp/-/issues/16206
- https://nvd.nist.gov/vuln/detail/CVE-2026-58380