Loading...
Skip to main content

CVE-2023-22946 — Vulnerability in org.apache.spark:spark-core_2.12...

CRITICAL

Apache Spark vulnerable to Improper Privilege Management

Published April 17, 2023Updated October 15, 2024Source: osv

Summary

In Apache Spark versions prior to versions 3.4.0 and 3.3.3, applications using spark-submit can specify a `proxy-user` to run as, limiting privileges. The application can execute code with the privileges of the submitting user, however, by providing malicious configuration-related classes on the classpath. This affects architectures relying on proxy-user, for example those using Apache Livy to manage submitted applications. Update to Apache Spark 3.4.0, 3.3.3, or later, and ensure that spark.submit.proxyUser.allowCustomClasspathInClusterMode is set to its default of "false", and is not overridden by submitted applications.

Advisory Timeline

  • First published April 17, 2023 (1274 days ago).
  • Last revised October 15, 2024 — 547 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.apache.spark:spark-core_2.12 to 3.3.3 or later
<!-- Update pom.xml dependency version to 3.3.3 for org.apache.spark:spark-core_2.12 -->
Maven
Update org.apache.spark:spark-core_2.13 to 3.3.3 or later
<!-- Update pom.xml dependency version to 3.3.3 for org.apache.spark:spark-core_2.13 -->
pip
Update pyspark to 3.3.2 or later
pip install "pyspark>=3.3.2"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 2 ecosystems: maven (2), pypi (1).

PackageEcosystemAffectedFixed In
org.apache.spark:spark-core_2.12
maven
2.4.0, 2.4.1, 2.4.2, 2.4.3 (+23 more)3.3.3
org.apache.spark:spark-core_2.13
maven
3.2.0, 3.2.1, 3.2.2, 3.2.3 (+4 more)3.3.3
pyspark
pypi
2.1.1, 2.1.2, 2.1.3, 2.2.0 (+31 more)3.3.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-269
    Improper Privilege ManagementMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2023-22946?
Apache Spark vulnerable to Improper Privilege Management This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.9/10).
How do I check if my project is affected by CVE-2023-22946?
CVE-2023-22946 affects org.apache.spark:spark-core_2.12, org.apache.spark:spark-core_2.13 and pyspark. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-22946 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.9

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-329j-jfvr-rhr6
BIT-spark-2023-22946
PYSEC-2023-44

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies