CVE-2021-43113: Command Injection

Published Dec 15, 2021
·
Updated

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.

Affected Software

6 affected componentsFixes available
debian/libitext5-java<=5.5.13-1
5.5.13-1+deb10u15.5.13.2-1+deb11u15.5.13.3-2
debian/libitext5-java<=5.5.13.2-1, <=5.5.13-1
iTextPDF iText>=7.0.0<7.1.17
Debian Debian Linux=10.0
Debian Debian Linux=11.0
ubuntu/libitext5-java*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/libitext5-java to a version that resolves this vulnerability.

    Fixed in 5.5.13-1+deb10u1Fixed in 5.5.13.2-1+deb11u1Fixed in 5.5.13.3-2

Event History

Dec 15, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via OSV·07:15 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:15 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is CVE-2021-43113?

CVE-2021-43113 is a vulnerability in iTextPDF that allows command injection via a mishandled filename on the Ghostscript command line.

2

What is the severity of CVE-2021-43113?

The severity of CVE-2021-43113 is critical with a severity value of 9.8.

3

Which software versions are affected by CVE-2021-43113?

Versions up to (excluding) 4.4.13.3 and 7.1.17 of iTextPDF are affected by CVE-2021-43113.

4

How can I fix CVE-2021-43113?

To fix CVE-2021-43113, update iTextPDF to version 5.5.13.3 or higher.

5

Where can I find more information about CVE-2021-43113?

You can find more information about CVE-2021-43113 in the following references: [GitHub - itext/itext7/releases/tag/7.1.17](https://github.com/itext/itext7/releases/tag/7.1.17), [GitHub - itext/itextpdf/releases/tag/5.5.13.3](https://github.com/itext/itextpdf/releases/tag/5.5.13.3), [Debian LTS Announce](https://lists.debian.org/debian-lts-announce/2023/01/msg00013.html).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203