CVE-2019-10099: Spark core 2.11 Sensitive Data Written To Disk Vulnerability

HIGH
Advisory Identifier: GHSA-fp5j-3fpf-mhj5
CVSS 7.5
CWE-312
Published
Advisory Summary

CVE-2019-10099 is a HIGH (CVSS 7.5) sensitive data written to disk vulnerability (CWE-312: Cleartext Storage of Sensitive Information) affecting Spark core 2.11 libraries in the Maven ecosystem. The issue involves sensitive data written to disk unencrypted in spark. Remediation is available by upgrading affected packages to version 2.3.3.

CVE-2019-10099 at a Glance

CVE Identifier CVE-2019-10099
GHSA Identifier GHSA-fp5j-3fpf-mhj5
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-312: Cleartext Storage of Sensitive Information
Affected Product Spark core 2.11
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2019-10099

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.

org.apache.spark:spark-core_2.11 fixed: 2.3.3
<dependency>
    <groupId>org.apache.spark</groupId>
    <artifactId>spark-core_2.11</artifactId>
    <version>2.3.3</version>
</dependency>
pyspark fixed: 2.3.3
pip install pyspark>=2.3.3
Verify Direct and Transitive Dependencies

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-2019-10099, 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 2.3.3), 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-312: Cleartext Storage of Sensitive Information, where the product stores sensitive information in cleartext within a resource that might be accessible to another control sphere. 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

Prior to Spark 2.3.3, in certain situations Spark would write user data to local disk unencrypted, even if spark.io.encryption.enabled=true. This includes cached blocks that are fetched to disk (controlled by spark.maxRemoteBlockSizeFetchToMem); in SparkR, using parallelize; in Pyspark, using broadcast and parallelize; and use of python udfs.

CVE-2019-10099 Affected Spark core 2.11 Versions

2 component(s)
Fixed Versions:
2.3.3
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.spark:spark-core_2.11
Maven
< 2.3.3
2.3.3
pyspark
PyPI
< 2.3.3
2.3.3

References

Frequently Asked Questions

What is CVE-2019-10099?
CVE-2019-10099 is a security vulnerability in Spark core 2.11 involving Sensitive data written to disk unencrypted in Spark under CWE-312: Cleartext Storage of Sensitive Information.
Which Spark core 2.11 versions are affected?
Affected versions include releases prior to 2.3.3 across affected packages: org.apache.spark:spark-core_2.11, pyspark.
What version fixes CVE-2019-10099?
Upgrading to 2.3.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is spark-core_2.11 affected?
Yes, org.apache.spark:spark-core_2.11 is affected in releases prior to 2.3.3. Upgrade your dependency to 2.3.3 or later.
Is pyspark affected?
Yes, pyspark is affected in releases prior to 2.3.3. Upgrade your dependency to 2.3.3 or later.
What is the CVSS score of CVE-2019-10099?
CVE-2019-10099 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2019-10099?
CVE-2019-10099 is classified under CWE-312: Cleartext Storage of Sensitive Information (The product stores sensitive information in cleartext within a resource that might be accessible to another control sphere.).
How can I check Maven dependencies for CVE-2019-10099?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.spark'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-fp5j-3fpf-mhj5",
  "modified" : "2024-10-24T21:48:36Z",
  "published" : "2019-08-08T15:18:22Z",
  "aliases" : [ "CVE-2019-10099" ],
  "summary" : "Sensitive data written to disk unencrypted in Spark",
  "details" : "Prior to Spark 2.3.3, in certain situations Spark would write user data to local disk unencrypted, even if spark.io.encryption.enabled=true. This includes cached blocks that are fetched to disk (controlled by spark.maxRemoteBlockSizeFetchToMem); in SparkR, using parallelize; in Pyspark, using broadcast and parallelize; and use of python udfs.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.spark:spark-core_2.11"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.3.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pyspark"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.3.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10099"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2019-114.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/c2a39c207421797f82823a8aff488dcd332d9544038307bf69a2ba9e@%3Cuser.spark.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/ra216b7b0dd82a2c12c2df9d6095e689eb3f3d28164e6b6587da69fae@%3Ccommits.spark.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rabe1d47e2bf8b8f6d9f3068c8d2679731d57fa73b3a7ed1fa82406d2@%3Cissues.spark.apache.org%3E"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-312" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-08-08T15:16:27Z",
    "nvd_published_at" : "2019-08-07T17:15:00Z"
  }
}