A vulnerability was found in GIMP. It has been declared as problematic. This affects the function pnmscanner_gettoken of the component PNM File Handler. Such manipulation leads to off-by-one.

This vulnerability is documented as CVE-2026-58380. The attack needs to be performed locally. There is not any exploit available.