CVE-2021-43113Published Dec 15, 2021 · Dec 15Updated Oct 24
Command injection in itext7-core
Critical9.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| com.itextpdf:itext7-core Maven |
|
|
| com.itextpdf:itextpdf Maven |
|
|
| Product | Affected | Fixed in |
|---|---|---|
| com.itextpdf:itext7-core Maven |
|
|
| com.itextpdf:itextpdf Maven |
|
|
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.
From the CVE record · mitre
iTextPDF mishandles a CompareTool filename on the Ghostscript command line in GhostscriptHelper.java. An attacker who can supply that filename could inject commands when CompareTool invokes Ghostscript; the input does not specify authentication or user-interaction requirements.
Check applications using Maven com.itextpdf:itext7-core before 7.1.17 or com.itextpdf:itextpdf before 5.5.13.3.