iTextPDF in iText 7 and up to (excluding 4.4.13.3) 7.1.17 allows command injection via a CompareTool filename that is mishandled on the gs (aka Ghostscript) command line in GhostscriptHelper.java.
https://www.debian.org/security/2023/dsa-5323
https://lists.debian.org/debian-lts-announce/2023/01/msg00013.html