CVE-2026-58380

NameCVE-2026-58380
DescriptionA 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
gimp (PTS)bullseye2.10.22-4+deb11u2vulnerable
bullseye (security)2.10.22-4+deb11u8vulnerable
bookworm, bookworm (security)2.10.34-1+deb12u10vulnerable
trixie (security), trixie3.0.4-3+deb13u8vulnerable
forky, sid3.2.4-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
gimpsource(unstable)3.2.4-1

Notes

https://gitlab.gnome.org/GNOME/gimp/-/work_items/16206
Fixed by: https://gitlab.gnome.org/GNOME/gimp/-/commit/8369981756fc2742226b79296fd1886156001d94 (GIMP_3_2_4)

Search for package or bug name: Reporting problems