CVE-2026-58380
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.
Executive briefing
The source record describes: 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. The practical risk depends on whether an affected product/version is present, reachable and configured in an exploitable way. Review the affected-product evidence and linked vendor advisories before assigning exposure status.
Evidence confidence: Moderate Evidence-derived, not an exploitability verdict
Severity & attack characteristics
CVSS vector:CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Technical explanation & impact
The technical mechanism is not expanded beyond the source description unless a referenced advisory supplies additional evidence. Read the linked vendor/CERT advisories for root-cause detail.
Potential impact must be interpreted from the published CVSS impact metrics and the affected component. A CVSS impact score is not proof that a particular asset is exploitable.
Weakness classification
CWE-193Affected products and versions
Products below are parsed from NVD vulnerable CPE configuration entries. Version boundaries are shown as published; verify applicability with the vendor.
| Vendor | Product | Version evidence |
|---|---|---|
| gimp | gimp | CPE version 3.2.4 |
| redhat | enterprise_linux | CPE version 7.0 · CPE version 8.0 · CPE version 9.0 |
Remediation & validation
- Identify exposure by comparing the affected product and version ranges with your asset inventory, SBOM and externally exposed services.
- Review the linked vendor security advisory or patch notes. Upgrade to a vendor-confirmed fixed release; do not infer a fixed version from the CVE description.
- Until patched, consider restricting network access or disabling the affected feature where operationally safe. These are temporary controls, not a substitute for a vendor fix.
- Validate the remediation with a version check and vulnerability rescan, then retain change evidence.
No fixed version is displayed unless it is explicitly established by a vendor advisory. Follow the vendor's release notes for exact product and branch applicability.
Vendor advisories, patches & exploit references
- https://access.redhat.com/errata/RHSA-2026:40751 VENDOR secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2026:62507 VENDOR secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2026:73768 VENDOR secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2026:80509 VENDOR secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2026:93589 VENDOR secalert@redhat.com
- https://access.redhat.com/security/cve/CVE-2026-58380 ADVISORY secalert@redhat.com
- https://bugzilla.redhat.com/show_bug.cgi?id=2496135 ADVISORY secalert@redhat.com
- https://gitlab.gnome.org/GNOME/gimp/-/commit/83699817 REFERENCE secalert@redhat.com
- https://gitlab.gnome.org/GNOME/gimp/-/issues/16206 EXPLOIT secalert@redhat.com