CVE-2018-8008 ZipSlip in org.apache.storm:storm-core

Medium 5.5 Published Updated

Attackers can write arbitrary files outside the intended directory via crafted archives, potentially compromising the Apache Storm server.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-8008?

CVE-2018-8008 is a medium-severity path traversal vulnerability in Apache Storm, published on 5 Jun 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Apache Storm version 1.0.6 and earlier, 1.2.1 and earlier, and version 1.1.2 and earlier expose an arbitrary file write vulnerability, that can be achieved using a specially crafted zip archive (affects other archives as well, bzip2, tar, xz, war, cpio, 7z), that holds path traversal filenames. So when the filename gets concatenated to the target extraction directory, the final path ends up outside of the target folder.

Weakness: CWE-22

Which versions are affected by CVE-2018-8008?

6 open source packages ship an affected version, including org.apache.storm:storm-core. It affects 1 product.

PackageAffectedFixed in
org.apache.storm:storm-core MavenAll versions1.0.7
org.apache.storm:storm-core MavenAll versions1.0.7
org.apache.storm:storm-core MavenFrom 1.1.01.1.3
org.apache.storm:storm-core MavenFrom 1.1.01.1.3
org.apache.storm:storm-core MavenFrom 1.2.01.2.2
org.apache.storm:storm-core MavenFrom 1.2.01.2.2

Products include Apache Storm.

How do I fix CVE-2018-8008?

Upgrade org.apache.storm:storm-core to a fixed version for your release line: 1.0.7, 1.1.3 or 1.2.2.

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

Is CVE-2018-8008 being exploited?

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

Sources

Also known as GHSA-898j-5cc8-cmf5.

Is CVE-2018-8008 in your software?

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

Check your SBOMs for free