CVE-2018-11770: Spark core 2.11 Spark-core_2.10 And Org.apache.spark:spark-core_2.11 Improper Authentication Vulnerability
MODERATECVE-2018-11770 is a MODERATE (CVSS 4.2) spark-core_2.10 and org.apache.spark:spark-core_2.11 improper authentication vulnerability (CWE-287: Improper Authentication) affecting Spark core 2.11 libraries in the Maven ecosystem. The issue involves spark-core_2.10 and org.apache.spark:spark-core_2.11 improper authentication vulnerability. Remediation is available in the latest vendor maintenance releases.
CVE-2018-11770 at a Glance
Security Impact
CVSS: 4.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N).
How to Fix CVE-2018-11770
To remediate this vulnerability, upgrade all affected Spark core 2.11 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.11</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.10</artifactId>
<version>Latest secure release</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.spark
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2018-11770, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.spark
Analyze the terminal output to locate any version of Spark core 2.11 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.spark command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Spark core 2.11, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2018-11770 Affected Spark core 2.11 Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.spark:spark-core_2.11
|
Maven |
≥ 1.0.0
≤ 2.3.2
|
|
|
org.apache.spark:spark-core_2.10
|
Maven |
≥ 1.0.0
≤ 2.2.2
|
|
References
Frequently Asked Questions
What is CVE-2018-11770?
Which Spark core 2.11 versions are affected?
What version fixes CVE-2018-11770?
Is spark-core_2.11 affected?
Is spark-core_2.10 affected?
What is the CVSS score of CVE-2018-11770?
What CWE is associated with CVE-2018-11770?
How can I check Maven dependencies for CVE-2018-11770?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w4r4-65mg-45x2",
"modified" : "2024-06-10T21:41:52Z",
"published" : "2018-11-09T17:41:46Z",
"aliases" : [ "CVE-2018-11770" ],
"summary" : "org.apache.spark:spark-core_2.10 and org.apache.spark:spark-core_2.11 Improper Authentication vulnerability",
"details" : "From version 1.3.0 onward, Apache Spark's standalone master exposes a REST API for job submission, in addition to the submission mechanism used by spark-submit. In standalone, the config property 'spark.authenticate.secret' establishes a shared secret for authenticating requests to submit jobs via spark-submit. However, the REST API does not use this or any other authentication mechanism, and this is not adequately documented. In this case, a user would be able to run a driver program without authenticating, but not launch executors, using the REST API. This REST API is also used by Mesos, when set up to run in cluster mode (i.e., when also running MesosClusterDispatcher), for job submission. Future versions of Spark will improve documentation on these points, and prohibit setting 'spark.authenticate.secret' when running the REST APIs, to make this clear. Future 2.4.x versions will also disable the REST API by default in the standalone master by changing the default value of 'spark.master.rest.enabled' to 'false'.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.spark:spark-core_2.11"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"last_affected" : "2.3.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.spark:spark-core_2.10"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"last_affected" : "2.2.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-11770"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/bd8e51314041451a2acd720e9223fc1c15a263ccacb396a75b1fc485%40%3Cdev.spark.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/bd8e51314041451a2acd720e9223fc1c15a263ccacb396a75b1fc485@%3Cdev.spark.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://spark.apache.org/security.html#CVE-2018-11770"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20200227114942/http://www.securityfocus.com/bid/105097"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:59:32Z",
"nvd_published_at" : "2018-08-13T16:29:00Z"
}
}