Description
Artifex Ghostscript before 9.53.0 has an out-of-bounds write and use-after-free in devices/vector/gdevtxtw.c (for txtwrite) because a single character code in a PDF document can map to more than one Unicode code point (e.g., for a ligature).
References
bugs.ghostscript.com/show_bug.cgi?id=702229
git.ghostscript.com/...bd787defa071c96289b7da9397f673fddb874
bugzilla.opensuse.org/show_bug.cgi?id=1177922
github.com/...oftware/ghostpdl-downloads/releases/tag/gs9530