ZeroHour

CVE-2025-66516

mass1

Critical XXE in Apache Tika PDF parsing via crafted XFA forms

CVSS 3.1
9.8 critical
EPSS
80%p100
Published
()
Modified
AI analysis

Apache Tika is vulnerable to XML External Entity (XXE) injection (CWE-611), rated critical at CVSS 9.8 (network-exploitable, no privileges or user interaction required), with the vulnerable code residing in tika-core but reachable through the PDF parser when it processes the XFA form embedded in a PDF. An attacker who can get Tika to parse a crafted PDF, typically by submitting a document to a Tika-based service or tika-server endpoint, can have the XML parser resolve external entities, gaining arbitrary local file read and SSRF from the Tika process, with CVSS impact rated high for confidentiality, integrity and availability. All platforms are affected across tika-core 1.13–3.2.1, tika-parser-pdf-module 2.0.0–3.2.1, and the 1.x tika-parsers module 1.13–1.28.5; notably the fix is in tika-core (3.2.2+), so upgrading only the PDF module leaves deployments vulnerable, and 1.x users need fixes in the tika-parsers module. Anyone running affected Tika versions to process untrusted PDFs is exposed, including standalone tika-server instances and downstream applications that embed Tika (vendors such as Atlassian have shipped fixes for embedded Tika). There is no CISA KEV listing and no public PoC or confirmed in-the-wild exploitation known, but EPSS puts it in the 100th percentile with an 80.3% probability of exploitation within 30 days.

What to do: Upgrade tika-core to 3.2.2 or later (upgrading only tika-parser-pdf-module is insufficient), and keep tika-parser-pdf-module aligned on the fixed 3.x line; users on the 1.x line should upgrade both tika-parsers and tika-core to the patched 1.x releases. If you consume Tika through another product (e.g., Solr-based stacks or Atlassian products), apply that vendor's patch. Until patched, avoid parsing untrusted PDFs with affected Tika versions, and restrict the Tika process's file-system and network access to limit file-read and SSRF impact.

Affected
Apache tika-core1.13 through 3.2.1, all platforms; fixed in 3.2.2 and later
Apache tika-parser-pdf-module (tika-pdf-module)2.0.0 through 3.2.1
Apache tika-parsers (1.x)1.13 through 1.28.5
Estimated exposure
mass≈100k+ exposed systems and plausibly millions of deployments/users (Tika is a ubiquitous Java document-parsing library bundled in Apache Solr, NiFi and… — Estimate based on Tika's role as the default PDF/document parsing library across the Java ecosystem, including major Apache projects and numerous commercial products, rather than direct internet-exposure scans; no public scan counts…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

Vendors
apache
Products
tika
Weakness
CWE-611
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

In the news

Metasploit Wrap Up: This One Goes to Sixteen!

Metasploit adds 16 modules including 10 exploits, five covering CISA KEV vulnerabilities in Cisco, SonicWall, PaperCut, JetBrains and Langflow.

Rapid7's weekly Metasploit update ships 16 new modules, 10 of them exploit modules, with five targeting CISA KEV entries. New exploits cover Cisco Secure Firewall Management Center auth bypass (CVE-2026-20079), a SonicWall SMA1000 SSRF-to-root RCE chain (CVE-2026-83548/CVE-2026-83549), JetBrains TeamCity deserialization RCE (CVE-2026-63077), PaperCut NG/MF chain (CVE-2026-81578/CVE-2026-82078), and Langflow authenticated RCE (CVE-2026-19295). The SonicWall and PaperCut chains were reported as actively exploited zero-days, and a new ESC8 relay module exploits CVE-2026-20929 against AD CS Web Enrollment.

Rapid7 Blog · 4d agoTools in the wildCVE-2025-66516CVE-2025-54988CVE-2026-20929+8 CVEs1