Cyber Resilience

CVE-2025-66516

XXE in Apache Tika 1.13 – 3.2.2

High EPSSXXE
Published
04 December 2025
Modified
30 December 2025
Patch / advisory
CVSS Score v3.1 8.4
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.79 99.6th percentile
Risk Priority 87 floored blend · peak EPSS

Summary

CVE-2025-66516 is a high-severity Improper Restriction of XML External Entity Reference (CWE-611) vulnerability in Apache Tika. Its CVSS base score is 8.4 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 0.4% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to CM-6 (Configuration Settings) and SA-11 (Developer Testing and Evaluation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2025-66516 is a critical XML External Entity (XXE) vulnerability, classified under CWE-611, affecting Apache Tika's tika-core module versions 1.13 through 3.2.1, tika-pdf-module versions 2.0.0 through 3.2.1, and tika-parsers module versions 1.13 through 1.28.5 on all platforms. The flaw enables attackers to conduct XXE injection by processing a crafted XFA file embedded inside a PDF document. This CVE covers the same vulnerability as CVE-2025-54988 but expands the scope in two key ways: the root issue and fix are in tika-core, meaning upgrades to tika-pdf-module alone are insufficient if tika-core remains below 3.2.2; additionally, in Tika 1.x releases, the PDFParser resides in the tika-parsers module.

Exploitation requires local access (AV:L) with low complexity (AC:L), no privileges (PR:N), and no user interaction (UI:N), yielding high impacts on confidentiality, integrity, and availability (CVSSv3.1 score of 8.4). An attacker can leverage the XXE via the crafted PDF to inject external entities when the affected Tika modules parse the file.

The Apache advisory, referenced in the mailing list thread, recommends upgrading tika-core to version 3.2.2 or higher as the primary mitigation, emphasizing that partial upgrades to dependent modules like tika-pdf-module do not resolve the issue. Further details on the original report and expanded scope are available in the CVE-2025-54988 record.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1005 Data from Local System Collection
Adversaries may search local system sources, such as file systems, configuration files, local databases, virtual machine files, or process memory, to find files of interest and sensitive data prior to Exfiltration.
T1213 Data from Information Repositories Collection
Adversaries may leverage information repositories to mine valuable information.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-54988Same product: Apache Tika
CVE-2026-47898Same vendor: Apache
CVE-2023-48362Same vendor: Apache
CVE-2026-44618Same vendor: Apache
CVE-2025-68280Same vendor: Apache
CVE-2026-65432Same vendor: Apache
CVE-2023-49733Same vendor: Apache
CVE-2018-1335Same product: Apache Tika
CVE-2026-49875Same vendor: Apache
CVE-2023-22832Same vendor: Apache

Affected Assets

apache
tika
1.13 — 3.2.2

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V1.5.1
  • V15.3.2

Mitigating Controls (NIST 800-53 r5) AI

Secure configuration settings can disable external entity processing in XML parsers.

Developer testing can discover XXE flaws through targeted XML parsing tests.

Input validation can reject or sanitize XML containing external entity references.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-01 mostly match
prevents

Hardened XML parser configurations directly disable external entity resolution.

PR.PS-06 mostly match
prevents

Secure SDLC practices include input validation and safe XML parser configuration that prevent XXE.

ID.RA-01 partial match
prevents

Vulnerability scanning can discover XXE flaws but does not prevent their introduction in code.

PR.PS-02 partial match
prevents

Patching eliminates XXE-vulnerable parser versions but is only one aspect of software maintenance.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing in development catches XXE via static analysis and dynamic XML fuzzing.

finds

Vulnerability management identifies and patches XML libraries with unsafe default entity settings.

prevents

Secure development life cycle mandates input validation and entity handling that directly prevents XXE.

prevents

Application security requirements explicitly call for disabling external entity processing in XML parsers.

prevents

Secure architecture principles include safe parser configuration that mitigates external entity risks.

prevents

Secure coding standards require disabling DTDs and external entities in XML processing.

References