Critical
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-43113
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 08:47 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-43113
Complete source record
{
"id": "a3a41cac1571f7cf3358da25f7d1ca5d5c5fa06c821e2526f641c5f33c1de72f",
"url": "https://osv.dev/vulnerability/CVE-2021-43113",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-43113",
"summary": "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.",
"evidence": "osv:CVE-2021-43113",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2021-43113",
"aliases": [
"CVE-2021-43113",
"GHSA-gv87-q66h-4277"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/itext/itext-java",
"type": "GIT",
"events": [
{
"introduced": "ed042f3ff209ceb0a5571415937bb5aaba8bd5ff"
},
{
"fixed": "a2746010d27536b68d60d53f81912d5a7c537b7e"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:itextpdf:itext:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.0"
},
{
"fixed": "7.1.17"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "a2746010d27536b68d60d53f81912d5a7c537b7e"
}
],
"source": "REFERENCES_TAG",
"original_tag": "7.1.17"
}
]
}
}
],
"versions": [
"7.1.16",
"7.1.15",
"7.1.14",
"7.1.13",
"7.1.12",
"7.1.11",
"7.1.10",
"7.1.9",
"7.1.8",
"7.1.7",
"7.1.6",
"7.1.5",
"7.1.4",
"7.1.3",
"7.1.2",
"7.1.1",
"7.1.0",
"7.0.5",
"7.0.4",
"7.0.3",
"7.0.2",
"7.0.1",
"7.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-43113.json"
}
},
{
"ranges": [
{
"repo": "https://github.com/itext/itextpdf",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "0231a60e92a1968601d1d7779dc3f57f1274f32f"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"fixed": "0231a60e92a1968601d1d7779dc3f57f1274f32f"
}
],
"source": "REFERENCES_TAG",
"original_tag": "5.5.13.3"
}
]
}
}
],
"versions": [
"5.5.13.2",
"5.5.13.1",
"5.5.13",
"5.5.12",
"5.5.11",
"5.5.10",
"5.5.9",
"5.5.8",
"5.5.7",
"5.5.6",
"5.5.5",
"5.5.4",
"5.5.3",
"5.5.2",
"5.5.1",
"5.5.0",
"5.4.5",
"5.4.4",
"5.4.3",
"5.4.2",
"5.4.1",
"5.4.0",
"5.3.5",
"5.3.4",
"5.3.3",
"5.3.2",
"5.3.1",
"5.3.0",
"5.2.1",
"5.2.0",
"5.1.3",
"5.1.2",
"5.1.1",
"5.1.0",
"5.0.6",
"5.0.5",
"5.0.4",
"5.0.3",
"5.0.2",
"5.0.1",
"5.0.0",
"2.1.7",
"2.1.6",
"2.1.5",
"2.1.4",
"2.1.3",
"2.1.2",
"2.1.1",
"2.1.0",
"2.0.8",
"2.0.7",
"2.0.6",
"2.0.5",
"2.0.4",
"2.0.3",
"2.0.2",
"2.0.1",
"2.0.0",
"1.4.9",
"1.4.8",
"1.4.7",
"1.4.6",
"1.4.5",
"1.4.4",
"1.4.3",
"1.4.2",
"1.4.1",
"1.4.0",
"1.3.6",
"1.3.5",
"1.3.4",
"1.3.3",
"1.3.2",
"1.3.1",
"1.3.0",
"1.2.4",
"1.2.3",
"1.2.2",
"1.2.1",
"1.2.0",
"1.1.4",
"1.1.3",
"1.1.2",
"1.1.1",
"1.1.0",
"1.0.3",
"1.0.2",
"1.0.1",
"1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-43113.json"
}
}
],
"modified": "2026-10-24T10:50:08.804657420Z",
"provider": "osv",
"references": [
"https://github.com/itext/itextpdf/releases/tag/5.5.13.3",
"https://github.com/itext/itext7/releases/tag/7.1.17",
"https://lists.debian.org/debian-lts-announce/2023/01/msg00013.html",
"https://www.debian.org/security/2023/dsa-5323",
"https://pastebin.com/BXnkY9YY"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:itextpdf:itext:*:*:*:*:*:*:*:*"
],
"vendor_product": "itextpdf:itext",
"extracted_events": [
{
"range": [
{
"introduced": "7.0.0"
},
{
"fixed": "7.1.17"
}
],
"source": "CPE_RANGE"
}
]
},
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "10.0"
},
{
"last_affected": "10.0"
},
{
"introduced": "11.0"
},
{
"last_affected": "11.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-43113",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 442018,
"published_at": "2021-12-15T07:15:07.453+00:00"
}