Skip to main content
Public proof of conceptFix available

CVE-2025-66516

A public proof of concept exists; no exploitation attested.

  • Published2025-12-04
  • Fixed in3.2.2
  • WeaknessCWE-611

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2025-12-0417:15CVE publishedNVD
  2. 2026-12-0204:55EPSS crossed 10 %FIRST EPSS

Versions per branch

NVD · OSV
Apache tika
BranchAffectedFixed in
3.2≥ 1.13, < 3.2.23.2.2
3.2≥ 2.0.0, < 3.2.23.2.2
tika-parsers
BranchAffectedFixed in
2.0≥ 1.13, < 2.0.02.0.0

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA3 products

As apache, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Apache Software Foundation Apache Tika coreother versions: not affected

    package org.apache.tika:tika-corehttps://repo.maven.apache.org/maven2

    Affected
    • ≥ 1.13, ≤ 3.2.1no fix statedsemver
  • Apache Software Foundation Apache Tika parsersother versions: not affected

    package org.apache.tika:tika-parsershttps://repo.maven.apache.org/maven2

    Affected
    • ≥ 1.13, < 2.0.0fixed in 2.0.0semver
  • Apache Software Foundation Apache Tika PDF parser moduleother versions: not affected

    package org.apache.tika:tika-parser-pdf-modulehttps://repo.maven.apache.org/maven2

    Affected
    • ≥ 2.0.0, ≤ 3.2.1no fix statedsemver

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2025-12-30

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • apache-nifiCleanStartall versions · fixed in 2.5.0-r1
  • apache-nifiCleanStartall versions · fixed in 2.5.0-r0
  • apache-tika-2.9Chainguardall versions · no fixed version listedand 6 other packages
  • apache-tika-3.0MinimOSall versions · fixed in 3.0.0-r5and 1 other package
  • apache-tika-3.1Wolfiall versions · no fixed version listed
  • apache-tika-3.1MinimOSall versions · fixed in 3.1.0-r5and 1 other package
  • elasticsearch-8.15MinimOSall versions · no fixed version listedand 6 other packages
  • elasticsearch-9.1MinimOSall versions · fixed in 9.1.4-r0and 2 other packages

21 more package ranges on OSV.dev

Vendor advisories

  • CVE-2025-66516 Red Hat Product Security9 products fixed

    tika-core: tika-parsers: tika-parser-pdf-module: Apache Tika core, Apache Tika parsers, Apache Tika PDF parser module: Update to CVE-2025-54988 to expand scope of artifacts affected

  • RHSA-2025:23225 Red Hat Product Security8 products fixed

    Red Hat Security Advisory: Red Hat OpenShift Dev Spaces 3.25.0 Release.

  • RHSA-2025:23143 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Build of Apache Camel 4.14.2 for Spring Boot release.

Full record on NVD

Fix

  1. Update Apache tika to 3.2.2
  2. Vendor fix Red Hat Product Security RHSA-2025:23225 · 8 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2025:23143 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
1 moduleauxiliary/scanner/http/elasticsearch_tika_xfa_xxerank: normalModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause.
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2025-12-04
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-f58c-gq56-vjjf

Frequently asked questions

What is CVE-2025-66516?

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.

Is CVE-2025-66516 actively exploited?

A proof-of-concept exploit exists for CVE-2025-66516, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2025-66516?

CVE-2025-66516 has a CVSS v3 base score of 9.8 (Critical severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running tika-core? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record