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.
Fix
Patch, vendor advisory and mitigation references on NVD 1
- https://gitlab.gnome.org/GNOME/gimp/-/issues/16206 Exploit, Issue Tracking, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 7.8 · gimp, redhatNVD modified 2026-10-12 03:17
Affected (CPE criteria) 4
cpe:2.3:a:gimp:gimp:3.2.4:*:*:*:*:*:*:*cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
References 8
- 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 Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2496135 Issue Tracking, Third Party Advisory
- https://gitlab.gnome.org/GNOME/gimp/-/commit/83699817 Broken Link
- https://gitlab.gnome.org/GNOME/gimp/-/issues/16206 Exploit, Issue Tracking, Vendor Advisory