cve.bz

CVE-2025-66516 apache tika

9.8 criticalExploitEPSS 89%Fix available

Critical (9.8) in apache tika. EPSS 89% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.tika:tika-core 3.2.2.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
89% (unchanged from 89% a week ago; 89% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-01-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-611 Improper Restriction of XML External Entity Reference
OWASP Top 10
A02:2025 Security Misconfiguration
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-66516 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-66516?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-66516?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-66516 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Tika corefrom 1.13 through 3.2.1
Apache Software Foundation Apache Tika parsersfrom 1.13 before 2.0.0
Apache Software Foundation Apache Tika PDF parser modulefrom 2.0.0 through 3.2.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-f58c-gq56-vjjfMavenorg.apache.tika:tika-core>=1.13 <3.2.23.2.2
GHSA-f58c-gq56-vjjfMavenorg.apache.tika:tika-parsers>=1.13 <2.0.02.0.0
GHSA-f58c-gq56-vjjfMavenorg.apache.tika:tika-parser-pdf-module>=2.0.0 <3.2.23.2.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11tika1.22-2+deb11u1DLA-4350-1
Ubuntu22.04:LTStika1.22-2+deb11u1build0.22.04.1UBUNTU-CVE-2025-66516 USN-8324-1
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 1 moretikano fix listedUBUNTU-CVE-2025-66516
UbuntuPro:20.04:LTStika1.22-1ubuntu0.1~esm2UBUNTU-CVE-2025-66516 USN-8324-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Critical.

Red Hat's statement

This vulnerability is rated Critical because it can be triggered when Apache Tika processes a maliciously crafted XFA file embedded within a PDF. Successful exploitation enables XML External Entity (XXE) injection, allowing an attacker to access sensitive local files and initiate arbitrary requests to internal or external network resources. This can lead to Server-Side Request Forgery (SSRF), data tampering, and potential elevation of privileges. With high impact across confidentiality, integrity, and availability, this vulnerability poses a severe risk to affected systems.

ProductPackageStateAdvisory
Red Hat build of Apache Camel 4.14.2 for Spring Boot 3.5.8tika-coreFixed 2025-12-11RHSA-2025:23143
Red Hat OpenShift Dev Spaces (RHOSDS) 3.25devspaces/openvsx-rhel9:3.25.0-1765276570Fixed 2025-12-15RHSA-2025:23225
Red Hat OpenShift Dev Spaces (RHOSDS) 3.25devspaces/pluginregistry-rhel9:3.25.0-1765299828Fixed 2025-12-15RHSA-2025:23225
Red Hat build of Apache Camel for Spring Boot 4tika-parser-pdf-moduleNot affected
Red Hat Fuse 7tika-coreNot affected
Red Hat Fuse 7tika-parsersNot affected
Red Hat JBoss Enterprise Application Platform 7tika-coreNot affected
Red Hat JBoss Enterprise Application Platform 7tika-parser-pdf-moduleNot affected
Red Hat JBoss Enterprise Application Platform 7tika-parsersNot affected
Red Hat JBoss Enterprise Application Platform 8tika-coreNot affected
Red Hat JBoss Enterprise Application Platform 8tika-parser-pdf-moduleNot affected
Red Hat JBoss Enterprise Application Platform 8tika-parsersNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packtika-coreNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packtika-parser-pdf-moduleNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packtika-parsersNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-66516.

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-221 Data Serialization External Entities Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON