A use-after-free vulnerability in xps_finish_image_path() in devices/vector/gdevxps.c of Artifex Software GhostScript v9.50 allows a remote attacker to escalate privileges via a crafted PDF file. This is fixed in v9.51.
https://www.debian.org/security/2020/dsa-4748
https://usn.ubuntu.com/4469-1/
https://security.gentoo.org/glsa/202008-20
https://lists.debian.org/debian-lts-announce/2020/08/msg00032.html
https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=94d8955cb77