CVE-2018-1335 Command injection in org.apache.tika:tika-core

High 8.1 Published Updated

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.

PackageAffectedFixed in
org.apache.tika:tika-core MavenFrom 1.71.18
org.apache.tika:tika-core MavenFrom 1.71.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.

Sources

Also known as DEBIAN-CVE-2018-1335, GHSA-9r24-gp44-h3pm, UBUNTU-CVE-2018-1335.

Is CVE-2018-1335 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free