PoC Monitor
← All CVEs
CVE-2026-58380published 6 Jul 2026 13:58 UTCData: JSON · API

Red Hat Enterprise Linux 8

Gimp: gimp: stack buffer overflow in pnmscanner_gettoken()

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.8high · scored by NVD · CWE-193
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Red Hat Red Hat Enterprise Linux 8

    Fixed in 8100020260824165450.4c9c024f

    Red Hat Red Hat Enterprise Linux 9

      Fixed in 2:3.0.4-4.el9_8.7

      Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

        Fixed in 2:2.99.8-4.el9_2.7

        Red Hat Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions

          Fixed in 2:2.99.8-4.el9_4.19

          Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support

            Fixed in 2:2.99.8-4.el9_6.20

            Mitigation

            Upgrade Red Hat Enterprise Linux 8 to 8100020260824165450.4c9c024f or later.

            Upgrade Red Hat Enterprise Linux 9 to 2:3.0.4-4.el9_8.7 or later.

            Upgrade Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions to 2:2.99.8-4.el9_2.7 or later.

            Upgrade Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions to 2:2.99.8-4.el9_4.19 or later.

            Upgrade Red Hat Enterprise Linux 9.6 Extended Update Support to 2:2.99.8-4.el9_6.20 or later.

            Workaround

            None — requires opening a crafted PNM file.

            References

            3 more

            Timeline

            Days relative to CVE publication
            -2t=0+2+4+6+8CVE published6 Jul 2026 · t = 0

            No public PoC found yet; not in CISA KEV.

            PoC repositories

            Found on GitHub.

            No PoC repositories found yet.