{"id":"CVE-2026-58380","aliases":["CVE-2026-58380"],"related":[],"kind":"vulnerability","state":"published","title":"Gimp: gimp: stack buffer overflow in pnmscanner_gettoken()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-07-06T13:58:43.680Z","modified":"2026-11-17T20:59:23.850Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3,"rating":"HIGH"},{"scorer":"NVD","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-193"],"affected":[{"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.7","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","fixed":"3.2.4"}],"vendor":"gimp","product":"gimp","cpe":"cpe:2.3:a:gimp:gimp:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"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:7.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:40751","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:62507","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:73768","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:80509","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:93589","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-58380","tags":["third-party-advisory","vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2496135","tags":["issue-tracking","third-party-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://gitlab.gnome.org/GNOME/gimp/-/commit/83699817","tags":["broken-link"],"sources":["cvelist","nvd"]},{"url":"https://gitlab.gnome.org/GNOME/gimp/-/issues/16206","tags":["exploit","issue-tracking","vendor-advisory"],"sources":["cvelist","nvd"]}],"credits":["Red Hat would like to thank bb1abu for reporting this issue."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-07-06T15:41:04.583Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-58380","url":"https://www.cve.org/CVERecord?id=CVE-2026-58380","licence":"CVE Terms of Use","modified":"2026-11-05T22:17:47.242Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-58380","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58380","licence":"Public domain","modified":"2026-11-17T20:59:23.850Z"}],"updatedAt":"2026-11-25T22:59:27.228Z","epss":{"score":0.00344,"percentile":0.29993,"date":"2026-12-01T12:00:22.000Z"}}