CVE-2018-8009: Path Traversal

Published Jun 19, 2018
·
Updated

A vulnerability has been found in the way developers have implemented the archive extraction of files. 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. Of course if an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily. This affects multiple libraries that lacks of a high level APIs that provide the archive extraction functionality.

References: https://snyk.io/research/zip-slip-vulnerability

Patch: https://github.com/apache/hadoop/commit/745f203e577bacb35b042206db94615141fa5e6f#diff-19cfa944d1bb9ce1daa46aa4223f3642

Other sources

Apache Hadoop 3.1.0, 3.0.0-alpha to 3.0.2, 2.9.0 to 2.9.1, 2.8.0 to 2.8.4, 2.0.0-alpha to 2.7.6, 0.23.0 to 0.23.11 is exploitable via the zip slip vulnerability in places that accept a zip file.

Affected Software

22 affected componentsFixes available
Apache Hadoop>=0.23.0<=0.23.11
Apache Hadoop>=2.0.0<=2.7.6
Apache Hadoop>=2.8.0<=2.8.4
Apache Hadoop>=2.9.0<=2.9.1
Apache Hadoop>=3.0.0<=3.0.2
Apache Hadoop=2.0.0-alpha
Apache Hadoop=3.0.0-alpha1
Apache Hadoop=3.0.0-alpha2
Apache Hadoop=3.0.0-alpha3
Apache Hadoop=3.0.0-alpha4
Apache Hadoop=3.0.0-beta1
Apache Hadoop=3.1.0
redhat/hadoop<3.1.1
3.1.1
redhat/hadoop<3.0.3
3.0.3
redhat/hadoop<2.9.2
2.9.2
redhat/hadoop<2.8.5
2.8.5
redhat/hadoop<2.7.7
2.7.7
maven/org.apache.hadoop:hadoop-main<2.7.7
2.7.7
maven/org.apache.hadoop:hadoop-main>=2.8.0<2.8.5
2.8.5
maven/org.apache.hadoop:hadoop-main>=2.9.0<2.9.2
2.9.2
maven/org.apache.hadoop:hadoop-main>=3.0.0<3.0.3
3.0.3
maven/org.apache.hadoop:hadoop-main=3.1.0
3.1.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.apache.hadoop:hadoop-main to a version that resolves this vulnerability.

    Fixed in 2.7.7
  2. Upgrade

    Upgrade maven/org.apache.hadoop:hadoop-main to a version that resolves this vulnerability.

    Fixed in 2.8.5
  3. Upgrade

    Upgrade maven/org.apache.hadoop:hadoop-main to a version that resolves this vulnerability.

    Fixed in 2.9.2
  4. Upgrade

    Upgrade maven/org.apache.hadoop:hadoop-main to a version that resolves this vulnerability.

    Fixed in 3.0.3
  5. Upgrade

    Upgrade maven/org.apache.hadoop:hadoop-main to a version that resolves this vulnerability.

    Fixed in 3.1.1
  6. Upgrade

    Upgrade redhat/hadoop to a version that resolves this vulnerability.

    Fixed in 3.1.1
  7. Upgrade

    Upgrade redhat/hadoop to a version that resolves this vulnerability.

    Fixed in 3.0.3
  8. Upgrade

    Upgrade redhat/hadoop to a version that resolves this vulnerability.

    Fixed in 2.9.2
  9. Upgrade

    Upgrade redhat/hadoop to a version that resolves this vulnerability.

    Fixed in 2.8.5
  10. Upgrade

    Upgrade redhat/hadoop to a version that resolves this vulnerability.

    Fixed in 2.7.7

Event History

Jun 19, 2018
Data Sourced
via Red Hat·09:04 PM
DescriptionSeverityAffected Software
Nov 13, 2018
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
DescriptionWeakness
Dec 21, 2018
Advisory Published
via GitHub·05:50 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2018-8009?

CVE-2018-8009 is a vulnerability in Apache Hadoop versions 3.1.0, 3.0.0-alpha to 3.0.2, 2.9.0 to 2.9.1, 2.8.0 to 2.8.4, 2.0.0-alpha to 2.7.6, and 0.23.0 to 0.23.11.

2

How severe is CVE-2018-8009?

CVE-2018-8009 has a severity rating of 8.8, which is classified as high.

3

What is the zip slip vulnerability?

The zip slip vulnerability is a security issue where an attacker can exploit the extraction of ZIP files to overwrite arbitrary files on the file system.

4

How can I fix CVE-2018-8009?

You can fix CVE-2018-8009 by updating to Apache Hadoop version 3.1.1, 3.0.3, 2.9.2, 2.8.5, 2.7.7, or by applying the appropriate patches provided by Red Hat.

5

Where can I find more information about CVE-2018-8009?

You can find more information about CVE-2018-8009 on the Snyk research page, the GitHub commit, and the Red Hat Bugzilla page.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203