Known exploited vulnerability
CVE-2022-33891
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
| Package | Ecosystem | Fixed in | Advisory |
|---|---|---|---|
| org.apache.spark:spark-parent_2.12 | Maven | 3.2.2 | GHSA-4x9r-j582-cgr8 |
| pyspark | PyPI | 3.1.3, 3.2.2 | GHSA-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
- lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc Mailing ListThird Party Advisory
- lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc Mailing ListThird Party Advisory
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-33891 Third Party AdvisoryUS Government Resource
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
Latest CVEs this week
Critical and High CVEs from the last 7 days, with KEV and EPSS.
Exploited vulnerabilities by vendor
Every vendor in CISA's KEV catalog, with its count.
Apache exploited vulnerabilities
Everything CISA lists as exploited for Apache.
Vulnerability watch
A briefing and a fix pull request when an advisory hits your dependencies.
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.