{"id":"CVE-2026-58380","summary":"Gimp: gimp: stack buffer overflow in pnmscanner_gettoken()","details":"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.","modified":"2026-08-12T03:51:24.557358109Z","published":"2026-07-06T13:58:43.680Z","related":["ALSA-2026:40751","SUSE-SU-2026:3399-1","openSUSE-SU-2026:21359-1"],"database_specific":{"cwe_ids":["CWE-193"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58380.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:40751"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-58380"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58380.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58380"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2496135"},{"type":"REPORT","url":"https://gitlab.gnome.org/GNOME/gimp/-/issues/16206"},{"type":"FIX","url":"https://gitlab.gnome.org/GNOME/gimp/-/commit/83699817"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/gnome/gimp","events":[{"introduced":"6987b3853c10517eb581deeb20572fb5f99a7086"},{"last_affected":"6987b3853c10517eb581deeb20572fb5f99a7086"}],"database_specific":{"source":"CPE_STRING","cpe":"cpe:2.3:a:gimp:gimp:3.2.4:*:*:*:*:*:*:*","extracted_events":[{"introduced":"3.2.4"},{"last_affected":"3.2.4"}]}}],"versions":["3.2.4","GIMP_3_2_4"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-58380.json"}},{"ranges":[{"type":"GIT","repo":"https://gitlab.gnome.org/gnome/gimp","events":[{"introduced":"6987b3853c10517eb581deeb20572fb5f99a7086"},{"fixed":"83699817"}],"database_specific":{"source":["CPE_STRING","REFERENCES"],"cpe":"cpe:2.3:a:gimp:gimp:3.2.4:*:*:*:*:*:*:*","extracted_events":[{"introduced":"3.2.4"},{"last_affected":"3.2.4"}]}}],"versions":["3.2.4"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-58380.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"}]}