Live threats

All CVEs / Itextpdf

CVE-2021-43113Itextpdf Itext

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Itext.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
itextpdfitext≥ 7.0.0 < 7.1.17
debiandebian_linux10.0
debiandebian_linux11.0

Official sources

References

Links published by the sources. Open them with care.