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


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
2.7% (86th 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-15674470
  • published17 Mar 2026
  • 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:itextpdf to version 5.5.13.3 or higher.

Overview

com.itextpdf:itextpdf is a software developer toolkit that allows users to integrate PDF functionalities within their applications, processes or products.

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 Base Scores

version 3.1