Command Injection Affecting com.itextpdf:io package, versions [,7.1.17)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.19% (57th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-COMITEXTPDF-2320389
  • published15 Dec 2021
  • disclosed15 Dec 2021
  • creditGabriele Zuddas

Introduced: 15 Dec 2021

CVE-2021-43113  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade com.itextpdf:io to version 7.1.17 or higher.

Overview

com.itextpdf:io is a package that represents the next level of SDKs for developers that want to take advantage of the benefits PDF can bring. Equipped with a better document engine, high and low-level programming capabilities and the ability to create, edit and enhance PDF documents, iText 7 can be a boon to nearly every workflow.

Affected versions of this package are vulnerable to Command Injection. An attacker controlling the filename passed to the CompareTool class, is able to inject arbitrary parameters in the command line being executed (ghostscript). The vulnerable code resides inside com/itextpdf/io/util/GhostscriptHelper.java .

CVSS Scores

version 3.1