Apache Software Foundation Apache Tika PDF parser module
Apache Tika PDF parser module: XXE vulnerability in PDFParser's handling of XFA
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. Users are recommended to upgrade to version 3.2.2, which fixes this issue.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 1.13, <= 3.2.1
- >= 1.13, < 3.2.2
Fixed in 3.2.2
from GitHub Security Advisory GHSA-p72g-pv48-7w9x
- >= 1.13, < 2.0.0-ALPHA
Fixed in 2.0.0-ALPHA
from GitHub Security Advisory GHSA-p72g-pv48-7w9x
Mitigation
Upgrade org.apache.tika:tika-parser-pdf-module to 3.2.2 or later.
Upgrade org.apache.tika:tika-parsers to 2.0.0-ALPHA or later.
References
- Vendor advisory lists.apache.org/thread/8xn3rqy6kz5b3l1t83kcofkw0w4m…
Timeline
Days relative to CVE publicationFirst public PoC 14 days after publication; not in CISA KEV. First PoC: mgthuramoemyint/POC-CVE-2025-54988 (created 4 Sep 2025, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| mgthuramoemyint/POC-CVE-2025-54988 | 4 Sep 2025 +14 d | 20 | PoC |
| galoryber/cve-2025-54988-VulnTikaProject | 17 Dec 2025 +119 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Metasploit | Metasploit auxiliary: Elasticsearch ingest-attachment Apache Tika XFA XXE Local File Read (auxiliary/scanner/http/elasticsearch_tika_xfa_xxe) | 31 Jul 2026 | 14 Nov 2026 |
| nuclei template | nuclei template: Apache Tika - XXE Injection | 27 Apr 2026 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 2 PoC reposGET /api/version
POST /api/detect-type
- Body markers
file=@testfile.pdfinmultipart/form-data- Ports
- 8080
- Seen in
- 1 repo: galoryber/cve-2025-54988-VulnTikaProject
- Evidence
- galoryber/cve-2025-54988-VulnTikaProject/README.md:17
POST /api/extract-pdf
- Body markers
file=@testfile.pdfinmultipart/form-data- Ports
- 8080
- Seen in
- 1 repo: galoryber/cve-2025-54988-VulnTikaProject
- Evidence
- galoryber/cve-2025-54988-VulnTikaProject/README.md:19
POST /api/extract-text
- Body markers
file=@testfile.pdfinmultipart/form-data- Ports
- 8080
- Seen in
- 1 repo: galoryber/cve-2025-54988-VulnTikaProject
- Evidence
- galoryber/cve-2025-54988-VulnTikaProject/README.md:15
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/version(?:[?#].*)?$
(?i)^/api/detect-type(?:[?#].*)?$
(?i)^/api/extract-pdf(?:[?#].*)?$
(?i)^/api/extract-text(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2025-54988 Apache Software Foundation Apache Tika PDF parser module exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/version"; reference:url,poc.griffinguard.io/cve/CVE-2025-54988; classtype:web-application-attack; sid:9341596; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2025-54988 Apache Software Foundation Apache Tika PDF parser module exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/detect-type"; http.request_body; content:"file=@testfile.pdf"; reference:url,poc.griffinguard.io/cve/CVE-2025-54988; classtype:web-application-attack; sid:9188644; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2025-54988 Apache Software Foundation Apache Tika PDF parser module exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/extract-pdf"; http.request_body; content:"file=@testfile.pdf"; reference:url,poc.griffinguard.io/cve/CVE-2025-54988; classtype:web-application-attack; sid:9194120; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2025-54988 Apache Software Foundation Apache Tika PDF parser module exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/extract-text"; http.request_body; content:"file=@testfile.pdf"; reference:url,poc.griffinguard.io/cve/CVE-2025-54988; classtype:web-application-attack; sid:9448929; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Apache Software Foundation Apache Tika PDF parser module exploit attempt (CVE-2025-54988)
id: gg-pocmon-cve-2025-54988-9341596
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-54988. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-54988
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/version'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.54988
title: Apache Software Foundation Apache Tika PDF parser module exploit attempt (CVE-2025-54988)
id: gg-pocmon-cve-2025-54988-9188644
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-54988. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-54988
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/detect-type'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.54988
title: Apache Software Foundation Apache Tika PDF parser module exploit attempt (CVE-2025-54988)
id: gg-pocmon-cve-2025-54988-9194120
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-54988. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-54988
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/extract-pdf'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.54988
title: Apache Software Foundation Apache Tika PDF parser module exploit attempt (CVE-2025-54988)
id: gg-pocmon-cve-2025-54988-9448929
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-54988. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-54988
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/extract-text'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.54988