CVE-2026-58380
Gimp: gimp: stack buffer overflow in pnmscanner_gettoken()
- State
- Published
- Severity
- 7.3 High
- Published
- Jul 6, 2026
- Updated
- Nov 2, 2026
- Reserved
- Jun 30, 2026
Description
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 7.3 High | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H | redhat |
Weaknesses
- CWE-193 Off-by-one Error
Affected Products
| Product | Versions |
|---|---|
Red Hat Enterprise Linux 8Red Hat |
|
Red Hat Enterprise Linux 9Red Hat |
|
Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsRed Hat |
|
Red Hat Enterprise Linux 9.4 Update Services for SAP SolutionsRed Hat |
|
Red Hat Enterprise Linux 9.6 Extended Update SupportRed Hat |
|
Red Hat Enterprise Linux 6Red Hat | |
Red Hat Enterprise Linux 7Red Hat |
References
- RHSA-2026:40751vendor-advisory
- RHSA-2026:62507vendor-advisory
- RHSA-2026:73768vendor-advisory
- RHSA-2026:80509vendor-advisory
- RHSA-2026:93589vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-58380vdb-entry
- RHBZ#2496135issue-tracking
- https://gitlab.gnome.org/GNOME/gimp/-/commit/83699817
- https://gitlab.gnome.org/GNOME/gimp/-/issues/16206
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.