CVE-2018-1335 Command injection in org.apache.tika:tika-core
Attackers can inject commands into the tika-server command line via crafted headers, requiring the server to be exposed to untrusted clients.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-1335?
CVE-2018-1335 is a high-severity command injection vulnerability in Apache Tika, published on 25 Apr 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
From Apache Tika versions 1.7 to 1.17, clients could send carefully crafted headers to tika-server that could be used to inject commands into the command line of the server running tika-server. This vulnerability only affects those running tika-server on a server that is open to untrusted clients. The mitigation is to upgrade to Tika 1.18.
Which versions are affected by CVE-2018-1335?
2 open source packages ship an affected version, including org.apache.tika:tika-core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.tika:tika-core Maven | From 1.7 | 1.18 |
org.apache.tika:tika-core Maven | From 1.7 | 1.18 |
Products include Apache Tika.
How do I fix CVE-2018-1335?
Upgrade org.apache.tika:tika-core to 1.18 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2018-1335 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-1335 exists.
Public exploit code: 1 Metasploit module, 2 Exploit-DB entries, 1 Nuclei template and 5 proofs of concept on GitHub.
Other vulnerabilities in Apache Tika
- CVE-2019-10088 Allocation of Resources Without Limits or Throttling in Apache Tika
- CVE-2025-66516 Apache Tika has XXE vulnerability
- CVE-2025-54988 Apache Tika PDF parser module: XXE vulnerability in PDFParser's handling of XFA
- CVE-2019-10094 Allocation of Resources Without Limits or Throttling in Apache Tika
- CVE-2016-4434 Apache Tika does not properly initialize the XML parser or choose handlers
Sources
Also known as DEBIAN-CVE-2018-1335, GHSA-9r24-gp44-h3pm, UBUNTU-CVE-2018-1335.