
CVE-2025-66516

CVSS: 10.0 | Exploit Type: XXE Injection | Risk Level: MAXIMUM
CVE-2025-66516 is a critical XML External Entity (XXE) vulnerability in Apache Tika’s core processing engine. A single malicious PDF with XFA content can trigger:
This vulnerability affects millions of document-processing pipelines worldwide.
🚩 Unsafe handling of external XML entities embedded inside XFA forms within PDFs.
When Apache Tika parses these documents:
This is a classic XXE vulnerability at enterprise scale.
| Module | Vulnerable Versions |
|---|---|
tika-core | 1.13 → 3.2.1 |
tika-pdf-module | 2.0.0 → 3.2.1 |
tika-parsers (legacy) | 1.13 → 1.28.5 |
✅ Safe Version: 3.2.2+
If an attacker uploads a malicious PDF:
📄 Read sensitive server files
(/etc/passwd, configs, API secrets)
🌍 Make internal network requests (SSRF) (Cloud metadata, private services)
🧬 Chain into Remote Code Execution (In specific JVM + service configurations)
🔥 Data exfiltration at scale
⚠️ No authentication. No user interaction. Network exploitable.
| Old CVE | New CVE |
|---|---|
| Focused on PDF module only | ✅ Fixes core engine flaw |
| Partial mitigation | ✅ Full architectural fix |
| Many systems still vulnerable | ✅ Forces correct patching |
🚨 Updating only the PDF module is NOT enough.
Upgrade ALL Apache Tika components to version 3.2.2+
If you run any system that automatically parses documents, you’re in scope:
| Metric | Value |
|---|---|
| Attack Vector | Network |
| Privileges Required | None |
# 1. Save as CVE-2025-66516.py
# 2. Make executable
chmod +x CVE-2025-66516.py
# 3. Run against your own Tika instance or authorized target
./CVE-2025-66516.py http://your-tika-server:9998
This is not a “patch when convenient” vulnerability. This is a “drop everything and fix now” vulnerability.
| User Interaction |
| None |
| Impact | Confidentiality ✅ Integrity ✅ Availability ✅ |
| CVSS Score | 10.0 (Critical) |