{"answers":{"affected":"4 open source packages ship an affected version, including org.apache.tika:tika-parser-pdf-module 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-54988 exists.","fix":"Upgrade org.apache.tika:tika-parser-pdf-module to 3.2.2 or later.","what":"CVE-2025-54988 is a high-severity vulnerability in Apache Tika PDF parser module, published on 20 Aug 2025."},"fix_prompt":"Check this codebase for CVE-2025-54988 and fix it if it is affected.\n\nWhat it is: CVE-2025-54988 is a high-severity vulnerability in Apache Tika PDF parser module, published on 20 Aug 2025. \nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-54988 exists.\n\nAffected packages and fixed versions:\n- org.apache.tika:tika-parser-pdf-module (Maven): affected from 1.13; fixed in 3.2.2\n- org.apache.tika:tika-parser-pdf-module (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-ALPHA\n- org.apache.tika:tika-parsers (Maven): affected from 1.13; fixed in 2.0.0-ALPHA\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-54988/ (Markdown: https://insights.sbomify.com/CVE-2025-54988/index.md)","id":"CVE-2025-54988","markdown":"https://insights.sbomify.com/CVE-2025-54988/index.md","name":"CVE-2025-54988","record":{"aliases":["DEBIAN-CVE-2025-54988","GHSA-p72g-pv48-7w9x","MINI-3m3r-3cr9-jr5g","MINI-797w-jf5h-wfww","MINI-cpw7-fq7j-vwhp","MINI-f842-4fjq-gv2w","MINI-hr43-84m4-6prv","MINI-j7rm-24wr-x664","MINI-m5px-gv3h-3r29","MINI-mwq9-pmvv-wm9j","MINI-r869-5chc-65rf","MINI-rcpq-2qf3-8574","MINI-w8vw-vqc3-p483","ROOT-APP-MAVEN-CVE-2025-54988","UBUNTU-CVE-2025-54988"],"analysis":null,"analysis_generated_by":null,"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-parser-pdf-module) in Apache Tika 1.13 through and including 3.2.1 on all platforms allows an attacker to carry out XML External Entity injection via a crafted XFA file inside of a PDF. An attacker may be able to read sensitive data or trigger malicious requests to internal resources or third-party servers. Note that the tika-parser-pdf-module is used as a dependency in several Tika packages including at least: tika-parsers-standard-modules, tika-parsers-standard-package, tika-app, tika-grpc and tika-server-standard.\n\nUsers are recommended to upgrade to version 3.2.2, which fixes this issue.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-08-20","github_poc":2,"max_poc_stars":20,"metasploit":1,"nuclei":1,"refs":[{"date":"2025-09-04T02:19:13Z","kind":"github_poc","ref":"https://github.com/mgthuramoemyint/POC-CVE-2025-54988","stars":20,"title":"A PDF generator for CVE-2025-54988"},{"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-17T20:23:16Z","kind":"github_poc","ref":"https://github.com/galoryber/cve-2025-54988-VulnTikaProject","stars":0,"title":"Creating a vulnerable instance to test against"},{"date":null,"kind":"nuclei","ref":"http/cves/2025/CVE-2025-54988.yaml","stars":null,"title":"Apache Tika - XXE Injection"}],"tier":"weaponised"},"has_fix":true,"headline":"Apache Tika PDF parser module: XXE vulnerability in PDFParser's handling of XFA","id":"CVE-2025-54988","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":null,"year":"2025"},"n_packages":4,"n_references":1,"next":{"headline":"Firebird XDR Message Parsing NULL Pointer Dereference Denial-of-Service Vulnerability","id":"CVE-2025-54989"},"packages":[{"ecosystem":"Maven","fixed":["3.2.2"],"introduced":["1.13"],"last_affected":[],"package":"org.apache.tika:tika-parser-pdf-module","purl":null,"source":"GHSA-p72g-pv48-7w9x"},{"ecosystem":"Maven","fixed":["3.2.2"],"introduced":["1.13"],"last_affected":[],"package":"org.apache.tika:tika-parser-pdf-module","purl":"pkg:maven/org.apache.tika/tika-parser-pdf-module","source":"GHSA-p72g-pv48-7w9x"},{"ecosystem":"Maven","fixed":["2.0.0-ALPHA"],"introduced":["1.13"],"last_affected":[],"package":"org.apache.tika:tika-parsers","purl":null,"source":"GHSA-p72g-pv48-7w9x"},{"ecosystem":"Maven","fixed":["2.0.0-ALPHA"],"introduced":["1.13"],"last_affected":[],"package":"org.apache.tika:tika-parsers","purl":"pkg:maven/org.apache.tika/tika-parsers","source":"GHSA-p72g-pv48-7w9x"}],"prev":{"headline":"Command injection in Trend Micro Apex One","id":"CVE-2025-54987"},"products":["Apache Tika PDF parser module"],"published":"2025-08-20","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 has XXE vulnerability","id":"CVE-2025-66516","kev_date_added":null,"published":"2025-12-04"},{"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":null,"url":"https://insights.sbomify.com/CVE-2025-54988/"}