# CVE-2025-66516: Apache Tika has XXE vulnerability

Source: https://junglewise.ai/threats/cve-2025-66516-apache-tika-has-xxe-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-12-04  
License: CC BY 4.0 with a link back

CVE-2025-66516 · Severity: medium · CVSS 4 · Published 2025-12-04

Apache Tika has XXE vulnerability

Technologies: [org.apache.tika:tika-core (Maven)](https://junglewise.ai/threats/technologies/org-apache-tika-tika-core), [org.apache.tika:tika-parsers (Maven)](https://junglewise.ai/threats/technologies/org-apache-tika-tika-parsers). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2025-66516 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-66516 being exploited in the wild.

**How severe is CVE-2025-66516?** Medium severity, with a CVSS score of 4, published 4 December 2025.

**Which products and versions are affected?** org.apache.tika:tika-core (Maven) ECOSYSTEM:introduced=1.13,fixed=3.2.2; org.apache.tika:tika-parser-pdf-module (Maven) ECOSYSTEM:introduced=2.0.0,fixed=3.2.2; org.apache.tika:tika-parsers (Maven) ECOSYSTEM:introduced=1.13,fixed=2.0.0.

**Is there a fix for CVE-2025-66516?** Yes. org.apache.tika:tika-core (Maven): upgrade to 3.2.2 or later; org.apache.tika:tika-parser-pdf-module (Maven): upgrade to 3.2.2 or later; org.apache.tika:tika-parsers (Maven): upgrade to 2.0.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-66516?** Check whether you run org.apache.tika:tika-core (Maven), org.apache.tika:tika-parser-pdf-module (Maven) or org.apache.tika:tika-parsers (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.apache.tika:tika-core (Maven): upgrade to 3.2.2 or later

  ```sh
  # set org.apache.tika:tika-core to 3.2.2 in your pom.xml or build.gradle
  ```

- org.apache.tika:tika-parser-pdf-module (Maven): upgrade to 3.2.2 or later

  ```sh
  # set org.apache.tika:tika-parser-pdf-module to 3.2.2 in your pom.xml or build.gradle
  ```

- org.apache.tika:tika-parsers (Maven): upgrade to 2.0.0 or later

  ```sh
  # set org.apache.tika:tika-parsers to 2.0.0 in your pom.xml or build.gradle
  ```


## Affected products

- org.apache.tika:tika-core (Maven) ECOSYSTEM:introduced=1.13,fixed=3.2.2
- org.apache.tika:tika-parser-pdf-module (Maven) ECOSYSTEM:introduced=2.0.0,fixed=3.2.2
- org.apache.tika:tika-parsers (Maven) ECOSYSTEM:introduced=1.13,fixed=2.0.0

## Identifiers

- CVE-2025-66516
- GHSA-f58c-gq56-vjjf

## Related threats

- [Apache Tika XXE Vulnerability via Crafted XFA File Inside a PDF](https://junglewise.ai/threats/cve-2025-54988-apache-tika-xxe-vulnerability-via-crafted-xfa-file-inside-a-pdf)
- [Regular expression denial of service in apache tika](https://junglewise.ai/threats/cve-2022-30973-regular-expression-denial-of-service-in-apache-tika)
- [Regular expression denial of service in apache tika](https://junglewise.ai/threats/cve-2022-30126-regular-expression-denial-of-service-in-apache-tika)
- [Allocation of Resources Without Limits or Throttling in Apache Tika](https://junglewise.ai/threats/cve-2019-10088-allocation-of-resources-without-limits-or-throttling-in-apache)
- [Allocation of Resources Without Limits or Throttling in Apache Tika](https://junglewise.ai/threats/cve-2019-10093-allocation-of-resources-without-limits-or-throttling-in-apache)
