WaratekVRT Sign in

CVE-2021-43113 iTextPDF iText

Affected softwareiTextPDF iText
Severity9.8 Critical CVSS 3.1 3 scores
Fixed in7.1.17
WeaknessCommand injection (CWE-77)
Published15 Dec 2021
Updated17 Jun 2026

Description

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 4 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC none indexed
  • EPSS 5.4% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR command-injection security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-77: Command Injection.

How to mitigate CVE-2021-43113

Upgrade iTextPDF iText to 7.1.17 or later. Until you can, Waratek RASP blocks exploitation with its process rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

9.8 CRITICAL v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 3 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
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 NVD Primary published
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 CISA-ADP Secondary
CVSS 2.0 7.5 none AV:N/AC:L/Au:N/C:P/I:P/A:P NVD Primary

Affected software and releases

Oracle advisories

AdvisoryTypeQuarterProducts Oracle names in its risk matrix
Oracle Critical Patch Update January 2026 ↗ CPU 2026-Q1 Oracle Construction and Engineering / Reports (iTextPDF) (21.12.0-21.12.17, 22.12.0-22.12.15, 23.12.0-23.12.16, 24.12.0-24.12.12, 25.12.0)
Oracle Critical Patch Update April 2024 ↗ CPU 2024-Q2 Oracle Insurance Applications / Enterprise Edition (iTextPDF) (12.6, 12.7)
Oracle Critical Patch Update July 2023 ↗ CPU 2023-Q3 Oracle Fusion Middleware / Content Server (iTextPDF) (12.2.1.4.0)

Oracle components and versions

FamilyComponentVersions, as Oracle lists themRead as
Oracle Construction and Engineering Reports (iTextPDF) 21.12.0-21.12.17, 22.12.0-22.12.15, 23.12.0-23.12.16, 24.12.0-24.12.12, 25.12.0 25.12.0
Oracle Fusion Middleware Content Server (iTextPDF) 12.2.1.4.0 12.2.1.4.0
Oracle Insurance Applications Enterprise Edition (iTextPDF) 12.6, 12.7 12.6 · 12.7

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
com.itextpdf:itext7-core 0 7.1.17 unbounded
com.itextpdf:itextpdf 0 5.5.13.3 unbounded

Products and versions

4 products, 5 version entries
SourceVendorProductSchemeAffected versions
osv com.itextpdf itext7-core generic < 7.1.17
osv com.itextpdf itextpdf generic < 5.5.13.3
nvd debian debian linux generic 10.0 · 11.0
nvd itextpdf itext generic ≥ 7.0.0 and < 7.1.17

References

URLTags
https://github.com/itext/itext7 PACKAGE
https://github.com/itext/itext7/releases/tag/7.1.17 WEB
https://github.com/itext/itextpdf/releases/tag/5.5.13.3 WEB
https://lists.debian.org/debian-lts-announce/2023/01/msg00013.html WEB
https://pastebin.com/BXnkY9YY WEB
https://www.debian.org/security/2023/dsa-5323 WEB

Timeline

Published2021-12-15By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.