CVE-2021-43113
Command injection in itext7-core
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
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.
- Record
CVE-2021-43113- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-77
- Updated
- 2026-11-02
CVE List
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.
- Record
CVE-2021-43113- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-77
- Updated
- 2026-11-02
EUVDEUVD-2021-2524
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.
- Record
EUVD-2021-2524- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-gv87-q66h-4277
9.8
Command injection in itext7-core
iTextPDF in iText before 7.1.17 allows command injection via a CompareTool filename that is mishandled on the gs (aka Ghostscript) command line in GhostscriptHelper.java.
- Record
GHSA-gv87-q66h-4277- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-77
- Updated
- 2026-11-02
OSV
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.
- Record
CVE-2021-43113- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-43113
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.
- Record
DEBIAN-CVE-2021-43113- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-gv87-q66h-4277
9.8
Command injection in itext7-core
iTextPDF in iText before 7.1.17 allows command injection via a CompareTool filename that is mishandled on the gs (aka Ghostscript) command line in GhostscriptHelper.java.
- Record
GHSA-gv87-q66h-4277- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-77
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-43113
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.
- Record
UBUNTU-CVE-2021-43113- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11980-1 No score
itextpdf-5.5.13.3-1.1 on GA media
These are all security issues fixed in the itextpdf-5.5.13.3-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11980-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
com.itextpdf:itext7-coreMaven |
before 7.1.17 | 7.1.17 |
com.itextpdf:itextpdfMaven |
before 5.5.13.3 | 5.5.13.3 |
libitext5-javaDebian:12 |
before 5.5.13.3-1 | 5.5.13.3-1 |
libitext5-javaDebian:13 |
before 5.5.13.3-1 | 5.5.13.3-1 |
libitext5-javaDebian:14 |
before 5.5.13.3-1 | 5.5.13.3-1 |
libitext5-javaDebian:10 |
before 5.5.13-1+deb10u1, plus listed versions 5.5.13-1 |
5.5.13-1+deb10u1 |
libitext5-javaDebian:11 |
before 5.5.13.2-1+deb11u1, plus listed versions 5.5.13.2-1 |
5.5.13.2-1+deb11u1 |
com.itextpdf:itext7-coreMaven |
before 7.1.17, plus listed versions 7.0.27.0.37.0.47.0.57.0.6 Show 19 moreShow less7.0.77.0.87.1.07.1.17.1.107.1.117.1.127.1.137.1.147.1.157.1.167.1.27.1.37.1.47.1.57.1.67.1.77.1.87.1.9 |
7.1.17 |
com.itextpdf:itextpdfMaven |
before 5.5.13.3, plus listed versions 5.0.65.1.05.1.15.1.25.1.3 Show 28 moreShow less5.2.05.2.15.3.05.3.15.3.25.3.45.4.05.4.15.4.25.4.35.4.45.4.55.5.05.5.15.5.105.5.115.5.125.5.135.5.13.15.5.13.25.5.25.5.35.5.45.5.55.5.65.5.75.5.85.5.9 |
5.5.13.3 |
libitext5-javaUbuntu:24.04:LTS |
All versions, plus listed versions 5.5.13.3-25.5.13.3-35.5.13.3-4 |
None known |
libitext5-javaUbuntu:25.10 |
All versions, plus listed versions 5.5.13.3-4 |
None known |
libitext5-javaUbuntu:26.10 |
All versions, plus listed versions 5.5.13.4-2 |
None known |
libitext5-javaUbuntu:26.04:LTS |
All versions, plus listed versions 5.5.13.3-45.5.13.4-15.5.13.4-2 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-43113 is a critical vulnerability (CVSS 9.8) in Itextpdf Itext, published December 15, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 5.42%, the 92nd percentile. Fixed in com.itextpdf:itext7-core 7.1.17.
References
github.com/itext/itext7/releases/tag/7.1.17
pastebin.com/BXnkY9YY
lists.debian.org/debian-lts-announce/2023/01/msg00013.html
debian.org/security/2023/dsa-5323
github.com/itext/itextpdf/releases/tag/5.5.13.3
nvd.nist.gov/vuln/detail/CVE-2021-43113