Apache Tika Core Flaw Allows Attackers to Exploit Systems with Malicious PDF Uploads
A critical vulnerability has been identified in Apache Tika, which may permit attackers to compromise servers by uploading a malicious PDF file. This vulnerability is documented as CVE-2025-66516 and affects the Apache Tika core, Apache Tika parsers, and…
A critical vulnerability has been identified in Apache Tika, which may permit attackers to compromise servers by uploading a malicious PDF file. This vulnerability is documented as CVE-2025-66516 and affects the Apache Tika core, Apache Tika parsers, and the Apache Tika PDF parser module.
CVE ID Severity Vulnerability Type Affected Component Affected Versions
CVE-2025-66516 Critical XML External Entity (XXE) Injection Apache Tika Core, Parsers, PDF Module Tika Core 1.13-3.2.1, Tika Parsers 1.13-1.28.5, PDF Module 2.0.0-3.2.1
This vulnerability arises from an XML External Entity (XXE) injection flaw in Apache Tika's processing of XFA (XML Forms Architecture) content within PDF files. If a crafted PDF with a malicious XFA component is processed, Tika might evaluate external XML entities, potentially granting attackers access to local files, internal network resources, or other sensitive data on the server.
A critical vulnerability has been identified in Apache Tika, which may permit attackers to compromise servers by uploading a malicious PDF file.
Apache Tika core (org.apache.tika:tika-core) from versions 1.13 through 3.2.1 Apache Tika parsers (org.apache.tika:tika-parsers) from 1.13 before 2.0.0 Apache Tika PDF parser module (org.apache.tika:tika-parser-pdf-module) from 2.0.0 through 3.2.1
This issue is an extension of a previous vulnerability, CVE-2025-54988. While the original report focused on the PDF parser module as the entry point, the root cause and resolution are identified in Tika core. Organizations that have only updated the PDF parser module without upgrading tika-core to version 3.2.2 or later remain vulnerable.
Administrators and developers using Apache Tika should:
Determine if their applications utilize the affected versions of tika-core, tika-parsers, or tika-parser-pdf-module. Upgrade tika-core to version 3.2.2 or later, ensuring all associated Tika components are consistently updated. Assess systems processing untrusted PDFs, particularly public-facing upload endpoints, and consider implementing additional security measures and input validation.
Based on reporting by GBHackers.
