CVE-2021-43113Itextpdf Itext
Critical 9.8 No auth needed
Follow: this CVE · Itextpdf · Itextpdf Itext We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 5.4% probability of exploitation in 30 days · percentile 93
- Auth required
- No
- Published
- Dec 15, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-77
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Itext.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | com.itextpdf:itext7-core |
< 7.1.17 |
7.1.17 |
— |
| Maven | com.itextpdf:itextpdf |
< 5.5.13.3 |
5.5.13.3 |
— |
Per OSV / GitHub Advisories (GHSA-gv87-q66h-4277). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| itextpdf | itext | ≥ 7.0.0 < 7.1.17 |
| debian | debian_linux | 10.0 |
| debian | debian_linux | 11.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes Third Party Advisory
- github.com
- lists.debian.org Mailing List Third Party Advisory
- pastebin.com Exploit Third Party Advisory
- www.debian.org Third Party Advisory