Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

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

75
This week
CRITICAL 9.8REMOTEWATCHLISTUPGRADEMITIGATE

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 score9.8 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance5.4% (top 7%)
CISA exploited listNo
WeaknessCWE-77
Published2021-12-15
Last modified2026-06-17
Publisher (CNA): MITRE · Vendor: debian · itextpdf

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

itextpdf itext UPGRADE
Affected: >= 7.0.0 and < 7.1.17
Fixed in: 7.1.17
Safe to downgrade to: a release before 7.0.0
1. Check installed version
apt-cache policy itext || rpm -q itext || itext --version
2. UPGRADE to 7.1.17 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade itext
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade itext
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 7.0.0 (Debian / Ubuntu)
apt-cache madison itext sudo apt install itext=<VERSION_BEFORE_7.0.0> sudo apt-mark hold itext
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list itext sudo dnf downgrade itext-<VERSION_BEFORE_7.0.0> sudo dnf versionlock add itext
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
debian debian linux MITIGATE
Affected: 10.0 · 11.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 10.0
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.

Exact fixes by distribution

A distro patch exists: prefer upgrading over downgrading.
Maven · com.itextpdf:itext7-core · FIXED · 7.1.17 · vulnerable: < 7.1.17 · source
Set com.itextpdf:itext7-core to 7.1.17 or later in pom.xml or build.gradle, then rebuild and redeploy.
Maven · com.itextpdf:itextpdf · FIXED · 5.5.13.3 · vulnerable: < 5.5.13.3 · source
Set com.itextpdf:itextpdf to 5.5.13.3 or later in pom.xml or build.gradle, then rebuild and redeploy.
Fedora 46 · nemo · FIXED · 6.8.0-1.fc46 · FEDORA-2026-0edead723f · source
sudo dnf upgrade --advisory=FEDORA-2026-0edead723f
Fedora ELN · composer · FIXED · 2.11.1-1.eln159 · FEDORA-2026-cb4f992456 · source
sudo dnf upgrade --advisory=FEDORA-2026-cb4f992456
Ubuntu 20.04 · libitext5-java · NOT AFFECTED
Ubuntu 22.04 · libitext5-java · NOT AFFECTED
Debian 12 · libitext5-java · FIXED · 5.5.13.3-1
sudo apt update && sudo apt install --only-upgrade libitext5-java dpkg --compare-versions "$(dpkg-query -W -f='${Version}' libitext5-java)" ge "5.5.13.3-1" && echo PATCHED || echo STILL-VULNERABLE
Debian 13 · libitext5-java · FIXED · 5.5.13.3-1
sudo apt update && sudo apt install --only-upgrade libitext5-java dpkg --compare-versions "$(dpkg-query -W -f='${Version}' libitext5-java)" ge "5.5.13.3-1" && echo PATCHED || echo STILL-VULNERABLE

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · Report a problem with this page
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

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.