{"id":"CVE-2021-43113","published":"2021-12-15T00:00:00Z","modified":"2026-02-25T17:20:11Z","title":"iTextPDF in iText 7 and up to (excluding 4.4.13.3) 7.1.17 allows command injection via a CompareTool filename that is…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.05425,"percentile":0.92896,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/itext/itext7/releases/tag/7.1.17","tags":[]},{"url":"https://pastebin.com/BXnkY9YY","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00013.html","tags":["mailing-list"]},{"url":"https://www.debian.org/security/2023/dsa-5323","tags":["vendor-advisory"]},{"url":"https://github.com/itext/itextpdf/releases/tag/5.5.13.3","tags":[]}],"priority":{"score":25.4,"factors":[{"name":"EPSS percentile","points":18.58},{"name":"CVSS severity","points":6.86}]},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-01-22T04:55:51.037802Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"com.itextpdf:itext7-core","vulnerableRanges":["<7.1.17"],"patched":["7.1.17"],"from":["GHSA-gv87-q66h-4277"],"provenance":"source"},{"ecosystem":"Maven","package":"com.itextpdf:itextpdf","vulnerableRanges":["<5.5.13.3"],"patched":["5.5.13.3"],"from":["GHSA-gv87-q66h-4277"],"provenance":"source"}],"summary":{"text":"The flaw is a command injection weakness in the iTextPDF library, specifically in the CompareTool component's GhostscriptHelper.java, which mishandles a filename passed onto the gs (Ghostscript) command line; it affects iText 7 and up to (excluding 4.4.13.3) 7.1.17. An attacker who can supply a crafted filename to CompareTool can inject arbitrary commands that are executed through the Ghostscript invocation, and the attack requires no privileges or user interaction, with network access as the attack vector.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T07:23:48Z"},"euvd":{"id":"EUVD-2021-2524","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-43113","published":"2021-12-15","fixed":"7.1.17","kev":false},{"cve":"CVE-2022-24196","published":"2022-02-01","fixed":"7.1.18","kev":false,"link":{"from":"CVE-2021-43113","to":"CVE-2022-24196","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:com.itextpdf:itext7-core","fromFixed":"7.1.17","toFixed":"7.1.18","daysApart":48}]}},{"cve":"CVE-2022-24197","published":"2022-02-01","fixed":"7.1.18","kev":false,"link":{"from":"CVE-2021-43113","to":"CVE-2022-24197","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:com.itextpdf:itext7-core","fromFixed":"7.1.17","toFixed":"7.1.18","daysApart":48}]}},{"cve":"CVE-2022-24198","published":"2022-02-01","fixed":"7.2.0","kev":false}],"package":"Maven:com.itextpdf:itext7-core"}}