LiveActive security incident?Get immediate response
CVE Record

CVE-2021-43113: iTextPDF in iText 7 and up to (excluding 4.4.13.3) 7.1.17 allows command injection via a CompareTool filena...

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.

CriticalCVSS 9.8Not KEV-listedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

This CVE is a command-injection flaw in iTextPDF handling of CompareTool filenames passed to Ghostscript. If reachable in an application workflow, it could let an attacker make the server run unintended commands, with potential full confidentiality, integrity, and availability impact.

Executive priority

Treat as urgent if affected iText functionality is internet-facing or processes customer-supplied files. The business risk is high because successful exploitation could compromise the application server. If CompareTool is not deployed or not reachable by untrusted input, urgency is lower but inventory confirmation is still needed.

Technical view

The issue is CWE-77 command injection in GhostscriptHelper.java, where a CompareTool filename is mishandled on the gs/Ghostscript command line. The CVSS v3.1 score is 9.8 with network, low-complexity, unauthenticated, no-user-interaction characteristics as reported in the bundle.

Likely exposure

Exposure is most likely where applications use affected iText/iTextPDF or Debian libitext5-java functionality that invokes CompareTool with attacker-influenced filenames. The provided affected CPE/product fields are empty, so exact product-version inventory must be verified against vendor and distribution advisories.

Exploitation context

The bundle does not show CISA KEV status and provides no confirmed active exploitation evidence. Public references include a Pastebin entry and vendor/distribution advisories, but the prompt does not establish exploitation in the wild.

Researcher notes

Key uncertainty is version scope: the bundle references iText 7.1.17, iTextPDF 5.5.13.3, and Debian libitext5-java advisories, but affected product metadata is not populated. Avoid assuming reachability without confirming CompareTool use and filename control in the target application.

Mitigation direction

  • Identify all iText, iTextPDF, and libitext5-java dependencies in application inventories.
  • Check iText release notes and Debian advisories for fixed package versions.
  • Upgrade affected packages following vendor or distribution guidance.
  • Restrict any workflow that passes user-controlled filenames into PDF comparison tooling.
  • Review server permissions around Ghostscript execution paths and temporary-file handling.

Validation and detection

  • Confirm whether CompareTool or GhostscriptHelper is used in production code paths.
  • Map deployed iText and libitext5-java versions against the cited advisories.
  • Check whether untrusted users can influence filenames used by PDF comparison workflows.
  • Review dependency lockfiles, container images, and OS packages for vulnerable libraries.
  • Look for historical logs showing unexpected Ghostscript invocation errors or abnormal process execution.
Prepared
Confidence
medium
Sources
7

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-77: Command execution behavior lookup

Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-43113 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
6Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
9.8CVSS 3.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H3.95.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

9.8Critical
CVSS 3.1 vector shape for CVE-2021-43113Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-77 · source CWE mapping

Improper Neutralization of Special Elements used in a Command ('Command Injection')

Improper Neutralization of Special Elements used in a Command ('Command Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.