An issue was discovered in base/gsdevice.c in Artifex Ghostscript before 10.04.0. An integer overflow when parsing the filename format string (for the output filename) results in path truncation, and possible path traversal and code execution.
https://www.suse.com/support/update/announcement/2024/suse-su-20243942-1/
https://github.com/ArtifexSoftware/ghostpdl/blob/master/doc/News.html