Apache Hadoop Zip Slip Vulnerability (CVE-2018-8009)
🗓️ 14 Nov 2018 00:00:00Reported by Copyright (C) 2018 Greenbone AGType
openvas🔗 plugins.openvas.org👁 32 Views
10
| Source | Link |
|---|---|
| hadoop | www.hadoop.apache.org/cve_list.html |
| snyk | www.snyk.io/research/zip-slip-vulnerability |
# SPDX-FileCopyrightText: 2018 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only
if( description )
{
script_oid("1.3.6.1.4.1.25623.1.0.112430");
script_version("2026-01-28T05:49:43+0000");
script_tag(name:"last_modification", value:"2026-01-28 05:49:43 +0000 (Wed, 28 Jan 2026)");
script_tag(name:"creation_date", value:"2018-11-14 15:33:11 +0100 (Wed, 14 Nov 2018)");
script_tag(name:"cvss_base", value:"6.5");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:S/C:P/I:P/A:P");
script_tag(name:"severity_vector", value:"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H");
script_tag(name:"severity_origin", value:"NVD");
script_tag(name:"severity_date", value:"2020-10-08 10:15:00 +0000 (Thu, 08 Oct 2020)");
script_tag(name:"qod_type", value:"remote_banner");
script_tag(name:"solution_type", value:"VendorFix");
script_cve_id("CVE-2018-8009");
script_name("Apache Hadoop Zip Slip Vulnerability (CVE-2018-8009)");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2018 Greenbone AG");
script_family("Web application abuses");
script_dependencies("gb_apache_hadoop_http_detect.nasl");
script_mandatory_keys("apache/hadoop/detected");
script_tag(name:"summary", value:"Apache Hadoop is prone to the 'Zip Slip' vulnerability.");
script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");
script_tag(name:"insight", value:"The vulnerability is exploited using a specially crafted archive
that holds directory traversal filenames (e.g. ../../evil.sh). The Zip Slip vulnerability can
affect numerous archive formats, including tar, jar, war, cpio, apk, rar and 7z.");
script_tag(name:"impact", value:"Zip Slip is a form of directory traversal that can be exploited
by extracting files from an archive. The premise of the directory traversal vulnerability is that
an attacker can gain access to parts of the file system outside of the target folder in which they
should reside. The attacker can then overwrite executable files and either invoke them remotely or
wait for the system or user to call them, thus achieving remote command execution on the victim's
machine. The vulnerability can also cause damage by overwriting configuration files or other
sensitive resources, and can be exploited on both client (user) machines and servers.");
script_tag(name:"affected", value:"Apache Hadoop versions 3.1.0, 3.0.0-alpha through 3.0.2, 2.9.0
through 2.9.1, 2.8.0 through 2.8.4, 2.0.0-alpha through 2.7.6 and 0.23.0 through 0.23.11.");
script_tag(name:"solution", value:"Update to version 3.1.1, 3.0.3, 2.8.5 or 2.7.7 respectively.");
script_xref(name:"URL", value:"https://hadoop.apache.org/cve_list.html#cve-2018-8009-http-cve-mitre-org-cgi-bin-cvename-cgi-name-cve-2018-8009-zip-slip-impact-on-apache-hadoop");
script_xref(name:"URL", value:"https://snyk.io/research/zip-slip-vulnerability");
exit(0);
}
CPE = "cpe:/a:apache:hadoop";
include( "host_details.inc" );
include( "version_func.inc" );
if( ! port = get_app_port( cpe: CPE ) )
exit( 0 );
if( ! version = get_app_version( cpe: CPE, port: port ) )
exit( 0 );
if( version_in_range( version: version, test_version: "0.23.0", test_version2: "0.23.11" ) ||
version_in_range( version: version, test_version: "2.0.0", test_version2: "2.7.6" ) ) {
report = report_fixed_ver( installed_version: version, fixed_version: "2.7.7" );
security_message( port: port, data: report );
exit( 0 );
}
if( version_in_range( version: version, test_version: "2.8.0", test_version2: "2.8.4" ) ) {
report = report_fixed_ver( installed_version: version, fixed_version: "2.8.5" );
security_message( port: port, data: report );
exit( 0 );
}
if( version_in_range( version: version, test_version: "2.9.0", test_version2: "2.9.1" ) ||
version_in_range( version: version, test_version: "3.0.0", test_version2: "3.0.2" ) ) {
report = report_fixed_ver( installed_version: version, fixed_version: "3.0.3" );
security_message( port: port, data: report );
exit( 0 );
}
if( version_is_equal( version: version, test_version: "3.1.0" ) ) {
report = report_fixed_ver( installed_version: version, fixed_version: "3.1.1" );
security_message( port: port, data: report );
exit( 0 );
}
exit( 99 );
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
28 Jan 2026 00:00Current
7.3High risk
Vulners AI Score7.3
CVSS 26.5
CVSS 38.8
EPSS0.07577