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 that is mishandled on the gs (aka Ghostscript)…

Critical · published December 15, 2021

CVSS v3.1
9.8
EPSS
5%
Percentile
92.7
In the wild
Unconfirmed
What it is

🚨 A crafty command injection vulnerability lurks in iTextPDF versions 7.1.17 and earlier! A rogue filename could unleash chaos right from the Ghostscript command line. 🔥 Think of this as a chef who takes any order without checking the recipe. If a customer slips in a forbidden ingredient, that dish could explode in the kitchen! An attacker could manipulate the CompareTool filename to execute arbitrary commands on the server, potentially leading to full server compromise. Imagine unauthorized access to sensitive files, or worse—complete control over the server's operations! This could be absolutely devastating for any organization relying on this software.

Put simply

Think of this as a chef who takes any order without checking the recipe. If a customer slips in a forbidden ingredient, that dish could explode in the kitchen! This command injection flaw in iTextPDF allows attackers to execute arbitrary commands by exploiting a mishandled filename argument in the GhostscriptHelper.java component. This vulnerability affects versions up to and including 7.1.17 but not 4.4.13.3.

What to do

An attacker could manipulate the CompareTool filename to execute arbitrary commands on the server, potentially leading to full server compromise. Imagine unauthorized access to sensitive files, or worse—complete control over the server's operations! This could be absolutely devastating for any organization relying on this software. Upgrade to iTextPDF version 7.1.18 or higher immediately to mitigate this risk. Additionally, review your command handling practices to ensure filenames are sanitized before use. Don't let this vulnerability linger! You've got this! Take these steps and you'll lock down your server in no time. 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.05425 · 92.7th percentile
Published
2021-12-15T00:00Z
EPSS history
Timeline
  • 15 DEC 00:00Z
    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)…
    cvelistv5