CVE-2018-11762 Moderate severity vulnerability that affects org.apache.tika:tika-core

Medium 5.9 Published Updated

An attacker can overwrite arbitrary files on the system by providing a crafted input file with an absolute path when the extract directory is not specified.

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-11762?

CVE-2018-11762 is a medium-severity path traversal vulnerability in Apache Tika, published on 19 Sep 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In Apache Tika 0.9 to 1.18, in a rare edge case where a user does not specify an extract directory on the commandline (--extract-dir=) and the input file has an embedded file with an absolute path, such as "C:/evil.bat", tika-app would overwrite that file.

Weakness: CWE-22

Which versions are affected by CVE-2018-11762?

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 0.91.19
org.apache.tika:tika-core MavenFrom 0.91.19

Products include Apache Tika.

How do I fix CVE-2018-11762?

Upgrade org.apache.tika:tika-core to 1.19 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2018-11762 being exploited?

There is no known exploitation of CVE-2018-11762 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2018-11762, GHSA-w6g3-v46q-5p28, UBUNTU-CVE-2018-11762.

Is CVE-2018-11762 in your software?

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

Check your SBOMs for free