Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Gimp | Gimp | 3.2.4 |
| Redhat | Enterprise Linux | 7.0 |
Related Weaknesses (CWE)
References
- https://access.redhat.com/errata/RHSA-2026:40751
- https://access.redhat.com/security/cve/CVE-2026-58380Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2496135Issue TrackingThird Party Advisory
- https://gitlab.gnome.org/GNOME/gimp/-/commit/83699817Broken Link
- https://gitlab.gnome.org/GNOME/gimp/-/issues/16206ExploitIssue TrackingVendor Advisory
FAQ
What is CVE-2026-58380?
CVE-2026-58380 is a vulnerability with a CVSS score of 7.3 (HIGH). 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 buf...
How severe is CVE-2026-58380?
CVE-2026-58380 has been rated HIGH with a CVSS base score of 7.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-58380?
Check the references section above for vendor advisories and patch information. Affected products include: Gimp Gimp, Redhat Enterprise Linux.