Known exploited vulnerability

CVE-2022-33891

highCVSS 3.1 8.8In CISA KEVEPSS 93%Published · Apache Software Foundation

The short answer

CVE-2022-33891 affects Apache Software Foundation Apache Spark and is rated high (CVSS 8.8). CISA added it to the Known Exploited Vulnerabilities catalog on 2023-03-07: attackers are using it, so patch it first. Fixed versions are published for spark-parent_2.12 (3.2.2) and pyspark (3.1.3, 3.2.2).

What it is

The Apache Spark UI offers the possibility to enable ACLs via the configuration option spark.acls.enable. With an authentication filter, this checks whether a user has access permissions to view or modify the application. If ACLs are enabled, a code path in HttpSecurityFilter can allow someone to perform impersonation by providing an arbitrary user name. A malicious user might then be able to reach a permission check function that will ultimately build a Unix shell command based on their input, and execute it. This will result in arbitrary shell command execution as the user Spark is currently running as. This affects Apache Spark versions 3.0.3 and earlier, versions 3.1.1 to 3.1.2, and versions 3.2.0 to 3.2.1.

Weakness: CWE-78.

Severity

8.8 high

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

Exploited (CISA KEV)

Yes, since Mar 7, 2023

Federal due date Mar 28, 2023

EPSS, next 30 days

93%

Higher than 100% of scored CVEs

How it can be exploited

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

What CISA says to do

Apply updates per vendor instructions.

Affected packages and fixed versions

PackageEcosystemFixed inAdvisory
org.apache.spark:spark-parent_2.12Maven3.2.2GHSA-4x9r-j582-cgr8
pysparkPyPI3.1.3, 3.2.2GHSA-4x9r-j582-cgr8

Is it in your code? Drop your lockfile into the free vulnerability check, or let vulnerability watch check your repository every day and open the upgrade as a pull request.

Affected products

Apache Spark. NVD's record lists the exact affected versions.

References

Questions

Is CVE-2022-33891 being exploited?

Yes. CISA added CVE-2022-33891 to its Known Exploited Vulnerabilities catalog on 2023-03-07, with a federal remediation due date of 2023-03-28.

How do I fix CVE-2022-33891?

Upgrade to a fixed version: org.apache.spark:spark-parent_2.12 (Maven) 3.2.2; pyspark (PyPI) 3.1.3 or 3.2.2. CISA's required action: Apply updates per vendor instructions.

From NVD, CISA KEV, FIRST EPSS and OSV.dev, checked . Status on NVD: Analyzed. The description is NVD's text, quoted as published.

Related

Know the day a CVE lands in your code

Connect a GitHub repository and ZeusQA checks its dependencies daily, briefs each advisory and opens the fix. Three test runs free, no card.