Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. com.itextpdf/itext7-core
  4. ›
  5. CVE-2021-43113

CVE-2021-43113: Improper Neutralization of Special Elements used in a Command ('Command Injection')

December 16, 2021 (updated February 10, 2022)

iTextPDF in iText 7 and up to allows command injection via a CompareTool filename that is mishandled on the gs (aka Ghostscript) command line in GhostscriptHelper.java.

References

  • github.com/advisories/GHSA-gv87-q66h-4277
  • github.com/itext/itext7/releases/tag/7.1.17
  • nvd.nist.gov/vuln/detail/CVE-2021-43113
  • pastebin.com/BXnkY9YY

Code Behaviors & Features

Detect and mitigate CVE-2021-43113 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 7.1.17

Fixed versions

  • 7.1.17

Solution

Upgrade to version 7.1.17 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')

Source file

maven/com.itextpdf/itext7-core/CVE-2021-43113.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:41 +0000.