CVE-2021-43113: iTextPDF in iText 7 and up to (excluding 4.4.13.3) 7.1.17 allows command injection via a CompareTool filename
CVE-2021-43113 is a critical-severity flaw (CVSS 9.8) affecting itext, debian linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- EPSS top 7%: very likely to be exploited
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 5.4% (top 7%) |
| CISA exploited list | No |
| Weakness | CWE-77 |
| Published | 2021-12-15 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Write-up: pastebin.com/BXnkY9YY
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-43113?
itext: upgrade to 7.1.17; debian linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2021-43113 being exploited?
CVE-2021-43113 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-43113 affect?
CVE-2021-43113 affects itext, debian linux. Severity is critical (CVSS 9.8). 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.
How urgent is CVE-2021-43113?
Priority 75/100. Critical severity; EPSS top 7%: very likely to be exploited; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action; On your watchlist
Software pages
Java vulnerabilities · Debian vulnerabilities · Ghostscript vulnerabilities
Related CVEs
- CVE-2023-6299 MEDIUM 4.3 DOWNGRADE A vulnerability, which was classified as problematic, has been found in Apryse iText 8.0.1
- CVE-2023-6298 MEDIUM 4.3 DOWNGRADE A vulnerability classified as problematic was found in Apryse iText 8.0.2
- CVE-2022-24198 MEDIUM 6.5 DOWNGRADE iText v7.1.17 was discovered to contain an out-of-bounds exception via the component ARCFOUREncryption.encrypt
- CVE-2022-24197 MEDIUM 6.5 UPGRADE iText v7.1.17 was discovered to contain a stack-based buffer overflow via the component ByteBuffer.append, whi
- CVE-2022-24196 MEDIUM 6.5 UPGRADE iText v7.1.17, up to (exluding)": 7.1.18 and 7.2.2 was discovered to contain an out-of-memory error via the co