Description
Critical XXE in Apache Tika tika-core (1.13-3.2.1), tika-pdf-module (2.0.0-3.2.1) and tika-parsers (1.13-1.28.5) modules on all platforms allows an attacker to carry out XML External Entity injection via a crafted XFA file inside of a PDF.
This CVE covers the same vulnerability as in CVE-2025-54988. However, this CVE expands the scope of affected packages in two ways.
First, while the entrypoint for the vulnerability was the tika-parser-pdf-module as reported in CVE-2025-54988, the vulnerability and its fix were in tika-core. Users who upgraded the tika-parser-pdf-module but did not upgrade tika-core to >= 3.2.2 would still be vulnerable.
Second, the original report failed to mention that in the 1.x Tika releases, the PDFParser was in the "org.apache.tika:tika-parsers" module.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache Tika core | 1.13 – ≤ 3.2.1 | — |
| Apache Software Foundation | Apache Tika parsers | 1.13 – < 2.0.0 | 2.0.0 |
| Apache Software Foundation | Apache Tika PDF parser module | 2.0.0 – ≤ 3.2.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 11 | tika | 1.22-2+deb11u1 | DLA-4350-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | tika | No fix yet | — |
| Ubuntu 26.04 LTS | tika | No fix yet | — |
| Ubuntu 25.10 | tika | No fix yet | — |
| Ubuntu 24.04 LTS | tika | No fix yet | — |
| Ubuntu 22.04 LTS | tika | 1.22-2+deb11u1build0.22.04.1 | USN-8324-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | tika | 1.22-1ubuntu0.1~esm2 | USN-8324-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | apache-tika-3.1 | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Elasticsearch ingest-attachment Apache Tika XFA XXE Local File Read
auxiliary/scanner/http/elasticsearch_tika_xfa_xxe
GitHub 3 repositories
-
chasingimpact/CVE-2025-66516-Writeup-POC ★ 11 · Dec 12, 2025
CVE-2025-66516 working exploit, scanner, explanation.
-
sid6224/CVE-2025-66516-POC ★ 6 · Dec 17, 2025
A POC for the CVE-2025-66516 Apache Tika Vulnerability for educational purposes only
-
intSheep/Tika-CVE-2025-66516-Lab ★ 0 · Dec 19, 2025
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Apache Tika - XML External Entity Injection http/cves/2025/CVE-2025-66516.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.tika:tika-core | >= 1.13, < 3.2.2 | 3.2.2 | GHSA-f58c-gq56-vjjf |
| Maven | org.apache.tika:tika-parser-pdf-module | >= 2.0.0, < 3.2.2 | 3.2.2 | GHSA-f58c-gq56-vjjf |
| Maven | org.apache.tika:tika-parsers | >= 1.13, < 2.0.0 | 2.0.0 | GHSA-f58c-gq56-vjjf |
Advisories 15
- WID-SEC-2026-3244 Adobe Experience Manager: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 16, 2026
- WID-SEC-2026-0162 Oracle Fusion Middleware: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 24, 2026
- WID-SEC-2025-1883 Apache Tika: Schwachstelle ermöglicht Infogewinn oder Manipulation BSI CERT-Bund (WID) · Aug 10, 2026
- USN-8324-1 tika vulnerabilities Ubuntu Security Notices (USN) · May 27, 2026
- WID-SEC-2026-0177 Atlassian Bamboo, Bitbucket, Confluence und Jira: Mehrere Schwachstellen BSI CERT-Bund (WID) · Mar 18, 2026
- DLA-4350-1 tika - security update Debian Security (DSA / DLA) · Mar 9, 2026
- NCSC-2026-0034 Kwetsbaarheden verholpen in Atlassian producten NCSC-NL (Netherlands) · Jan 22, 2026
- NCSC-2026-0027 Kwetsbaarheden verholpen in Oracle Fusion Middleware NCSC-NL (Netherlands) · Jan 21, 2026
- NCSC-2026-0023 Kwetsbaarheden verholpen in Oracle PeopleSoft NCSC-NL (Netherlands) · Jan 21, 2026
- NCSC-2026-0022 Kwetsbaarheden verholpen in Oracle Communications producten NCSC-NL (Netherlands) · Jan 21, 2026
- NCSC-2026-0020 Kwetsbaarheden verholpen in Oracle Commerce NCSC-NL (Netherlands) · Jan 21, 2026
- WID-SEC-2026-0167 Oracle PeopleSoft: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 20, 2026
- WID-SEC-2026-0160 Oracle Construction and Engineering: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 20, 2026
- WID-SEC-2026-0154 Oracle Commerce: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 20, 2026
- WID-SEC-2026-0153 Oracle Communications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 20, 2026