CVE-2025-66516: Apache Tika core · XML External Entity (XXE)
Affects Apache Tika coreSource CVE Database V5
Mentioned vulnerabilities
Not known to be exploited · public detection template (Nuclei) · 89% EPSS · CVSS 8.4 High.
Data as of 16 Nov 2026, 20:25 UTC
- EPSS
- 89.0% chance of exploitation in 30 days – higher than 99% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 4 Dec 2025
Detectable: evidence found.
nuclei template: Apache Tika - XML External Entity Injection
Weaponized: evidence found.
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 16 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Mavenorg.apache.tika/tika-corepkg:maven/org.apache.tika/tika-coreOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2025-66516, organizations should immediately upgrade all Apache Tika components to tika-core version 3.2.2 or later, ensuring that tika-pdf-module and tika-parsers are also updated to compatible versions to fully address the vulnerability. It is critical to verify that all Tika modules are consistently updated, as upgrading only tika-pdf-module without upgrading tika-core leaves systems vulnerable. Additionally, implement strict input validation and sandboxing for document parsing processes to limit exposure to malicious files. Employ network segmentation and least privilege principles to restrict access to systems running Apache Tika. Monitor logs for unusual XML parsing errors or unexpected file access patterns indicative of XXE exploitation attempts. Where possible, disable or restrict external entity resolution in XML parsers used by Tika if configurable. Finally, conduct regular security assessments and penetration testing focused on document ingestion pipelines to detect potential exploitation.
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.