A flaw was found in GIMP's Paint Shop Pro (PSP) file format parser. This heap buffer overflow vulnerability allows a remote attacker to cause arbitrary code execution or a denial of service (DoS) by tricking a user into opening a specially crafted PSP image file. The vulnerability occurs because the software incorrectly calculates buffer sizes when processing low bit-depth images, leading to an overwrite of adjacent memory.
https://gitlab.gnome.org/GNOME/gimp/-/issues/16205
https://gitlab.gnome.org/GNOME/gimp/-/commit/b630f167
https://bugzilla.redhat.com/show_bug.cgi?id=2495997