# CVE-2021-43113: Command injection in itext7-core

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 5.42%, higher than 92% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-12-15T00:00:00.000Z
- Modified: 2026-06-17T04:10:31.607Z
- Also known as: GHSA-gv87-q66h-4277
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- com.itextpdf:itext7-core (Maven): before 7.1.17
- com.itextpdf:itextpdf (Maven): before 5.5.13.3
- itextpdf itext: from 7.0.0 before 7.1.17
- debian debian_linux: 10.0; 11.0

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://pastebin.com/BXnkY9YY> (exploit, third-party-advisory, web)
- <https://github.com/itext/itext7/releases/tag/7.1.17> (release-notes, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2023/01/msg00013.html> (mailing-list, third-party-advisory, web)
- <https://www.debian.org/security/2023/dsa-5323> (third-party-advisory, vendor-advisory, web)
- <https://github.com/itext/itextpdf/releases/tag/5.5.13.3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-43113> (advisory)
- <https://github.com/itext/itext7> (package)

## Sources

- CVE List: [CVE-2021-43113](https://www.cve.org/CVERecord?id=CVE-2021-43113), CVE Terms of Use, modified 2026-02-25
- GitHub Advisory Database: [GHSA-gv87-q66h-4277](https://github.com/advisories/GHSA-gv87-q66h-4277), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-43113](https://nvd.nist.gov/vuln/detail/CVE-2021-43113), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-43113 · Whole record: https://cve.day/CVE-2021-43113.json · Rebuilt by cve.day 2026-11-25T22:24:36.248Z
