Skip to content
Fencer Vulns
critical 9.8

CVE-2021-43113 json

Command injection in itext7-core

published 2021-12-15 4 y ago modified 2026-06-17 4 mo ago also GHSA-gv87-q66h-4277 , EUVD-2021-2524

cvss
9.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
5.4%
EPSS 5.4% chance of exploitation in 30 days, percentile 92%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven com.itextpdf:itext7-core 7.1.17
  • maven com.itextpdf:itextpdf 5.5.13.3
  • itextpdf itext 7.1.17
  • libitext5-java Debian 14, Debian 13, Debian 12 5.5.13.3-1

debian advisories DEBIAN-CVE-2021-43113

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
total
Assessed
9 mo ago

Exploit prediction

5.42% chance of exploitation in the next 30 days, higher than 92% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • pastebin.com https://pastebin.com/BXnkY9YY referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CISA ADP 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P
GitHub 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
maven com.itextpdf:itext7-core
<7.1.17
7.1.17
maven com.itextpdf:itextpdf
<5.5.13.3
5.5.13.3

Classification

Weakness
  • CWE-77 Improper Neutralization of Special Elements used in a Command

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.