{"answers":{"affected":"6 open source packages ship an affected version, including org.apache.tika:tika-parser-pdf-module, org.apache.tika:tika-core and org.apache.tika:tika-parsers. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-66516 exists.","fix":"Upgrade org.apache.tika:tika-parser-pdf-module to 3.2.2 or later.","what":"CVE-2025-66516 is a high-severity vulnerability in Apache Tika PDF parser module, published on 4 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-66516 and fix it if it is affected.\n\nWhat it is: CVE-2025-66516 is a high-severity vulnerability in Apache Tika PDF parser module, published on 4 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-66516 exists.\n\nAffected packages and fixed versions:\n- org.apache.tika:tika-parser-pdf-module (Maven): affected from 2.0.0; fixed in 3.2.2\n- org.apache.tika:tika-parser-pdf-module (Maven): affected from 2.0.0; fixed in 3.2.2\n- org.apache.tika:tika-core (Maven): affected from 1.13; fixed in 3.2.2\n- org.apache.tika:tika-core (Maven): affected from 1.13; fixed in 3.2.2\n- org.apache.tika:tika-parsers (Maven): affected from 1.13; fixed in 2.0.0\n- org.apache.tika:tika-parsers (Maven): affected from 1.13; fixed in 2.0.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-66516/ (Markdown: https://insights.sbomify.com/CVE-2025-66516/index.md)","id":"CVE-2025-66516","markdown":"https://insights.sbomify.com/CVE-2025-66516/index.md","name":"CVE-2025-66516","record":{"aliases":["CLEANSTART-2026-HF44570","CLEANSTART-2026-TY92460","DEBIAN-CVE-2025-66516","GHSA-f58c-gq56-vjjf","MINI-4x4r-vj96-gqmj","MINI-544p-mwgc-mh5g","MINI-5q4j-f2qv-59xg","MINI-76c2-w3hj-36p4","MINI-94fx-f84v-2vjr","MINI-f7c9-pf88-pg23","MINI-mh68-53jr-53ff","MINI-qw3j-wr6c-8m3g","MINI-whq5-c289-8gqq","MINI-wr7v-5f3w-v7cw","MINI-xgxp-cqqc-j47x","ROOT-APP-MAVEN-CVE-2025-66516","UBUNTU-CVE-2025-66516"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Apache Tika library","requires_auth":"none","summary":"Attackers can exploit XML External Entity injection in Apache Tika via crafted PDFs to read sensitive data or cause denial of service.","user_interaction":"not_required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"tika","vendor":"apache"}],"cvss":{"score":8.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"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. \n\nThis CVE covers the same vulnerability as in CVE-2025-54988. However, this CVE expands the scope of affected packages in two ways. \n\nFirst, 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 \u003e= 3.2.2 would still be vulnerable. \n\nSecond, the original report failed to mention that in the 1.x Tika releases, the PDFParser was in the \"org.apache.tika:tika-parsers\" module.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-08-20","github_poc":3,"max_poc_stars":11,"metasploit":1,"nuclei":1,"refs":[{"date":"2025-12-12T04:28:19Z","kind":"github_poc","ref":"https://github.com/chasingimpact/CVE-2025-66516-Writeup-POC","stars":11,"title":"CVE-2025-66516 working exploit, scanner, explanation."},{"date":"2025-12-17T07:35:58Z","kind":"github_poc","ref":"https://github.com/sid6224/CVE-2025-66516-POC","stars":6,"title":"A POC for the CVE-2025-66516 Apache Tika Vulnerability for educational purposes only"},{"date":"2025-08-20","kind":"metasploit","ref":"auxiliary/scanner/http/elasticsearch_tika_xfa_xxe","stars":null,"title":"Elasticsearch ingest-attachment Apache Tika XFA XXE Local File Read"},{"date":"2025-12-19T07:26:42Z","kind":"github_poc","ref":"https://github.com/intSheep/Tika-CVE-2025-66516-Lab","stars":0,"title":null},{"date":null,"kind":"nuclei","ref":"http/cves/2025/CVE-2025-66516.yaml","stars":null,"title":"Apache Tika - XML External Entity Injection"}],"tier":"weaponised"},"has_fix":true,"headline":"Apache Tika has XXE vulnerability","id":"CVE-2025-66516","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xxe","year":"2025"},"n_packages":6,"n_references":2,"next":{"headline":"Apache Kyuubi: Unauthorized directory access due to missing path normalization","id":"CVE-2025-66518"},"packages":[{"ecosystem":"Maven","fixed":["3.2.2"],"introduced":["1.13"],"last_affected":[],"package":"org.apache.tika:tika-core","purl":null,"source":"GHSA-f58c-gq56-vjjf"},{"ecosystem":"Maven","fixed":["3.2.2"],"introduced":["1.13"],"last_affected":[],"package":"org.apache.tika:tika-core","purl":"pkg:maven/org.apache.tika/tika-core","source":"GHSA-f58c-gq56-vjjf"},{"ecosystem":"Maven","fixed":["3.2.2"],"introduced":["2.0.0"],"last_affected":[],"package":"org.apache.tika:tika-parser-pdf-module","purl":null,"source":"GHSA-f58c-gq56-vjjf"},{"ecosystem":"Maven","fixed":["3.2.2"],"introduced":["2.0.0"],"last_affected":[],"package":"org.apache.tika:tika-parser-pdf-module","purl":"pkg:maven/org.apache.tika/tika-parser-pdf-module","source":"GHSA-f58c-gq56-vjjf"},{"ecosystem":"Maven","fixed":["2.0.0"],"introduced":["1.13"],"last_affected":[],"package":"org.apache.tika:tika-parsers","purl":null,"source":"GHSA-f58c-gq56-vjjf"},{"ecosystem":"Maven","fixed":["2.0.0"],"introduced":["1.13"],"last_affected":[],"package":"org.apache.tika:tika-parsers","purl":"pkg:maven/org.apache.tika/tika-parsers","source":"GHSA-f58c-gq56-vjjf"}],"prev":{"headline":"Nextcloud Approval app allows users to request approval for other users file","id":"CVE-2025-66515"},"products":["Apache Tika PDF parser module","Apache Tika core","Apache Tika parsers"],"published":"2025-12-04","related":[{"cvss_score":8.8,"headline":"Allocation of Resources Without Limits or Throttling in Apache Tika","id":"CVE-2019-10088","kev_date_added":null,"published":"2019-08-02"},{"cvss_score":8.4,"headline":"Apache Tika PDF parser module: XXE vulnerability in PDFParser's handling of XFA","id":"CVE-2025-54988","kev_date_added":null,"published":"2025-08-20"},{"cvss_score":8.1,"headline":"Command injection in org.apache.tika:tika-core","id":"CVE-2018-1335","kev_date_added":null,"published":"2018-04-25"},{"cvss_score":7.8,"headline":"Allocation of Resources Without Limits or Throttling in Apache Tika","id":"CVE-2019-10094","kev_date_added":null,"published":"2019-08-02"},{"cvss_score":7.8,"headline":"Apache Tika does not properly initialize the XML parser or choose handlers","id":"CVE-2016-4434","kev_date_added":null,"published":"2017-09-29"},{"cvss_score":7.5,"headline":"Apache Tika is vulnerable to entity expansions which can lead to a denial of service attack","id":"CVE-2018-11796","kev_date_added":null,"published":"2018-10-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-26","vendors":["Apache Software Foundation"]},"summary":"Attackers can exploit XML External Entity injection in Apache Tika via crafted PDFs to read sensitive data or cause denial of service.","url":"https://insights.sbomify.com/CVE-2025-66516/"}