CVE-2022-33891
Exploitation confirmed. First attested on 2023-03-07 by CISA-ADP, CISA KEV, GCVE · kevintel, GCVE · shadowserver.
- Published2022-07-18
- Fixed in3.2.2 · 3.1.3 · 3.0.4
- WeaknessCWE-78
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTCObserved activity
isMalicious corpus · updated 2026-11-04 09:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2022-33891?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2022-33891?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
OSV · NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.2 | ≥ 3.2.0, < 3.2.2 | 3.2.2 | OSV |
| 3.1 | ≥ 3.1.1, < 3.1.3 | 3.1.3 | OSV |
| 3.0 | < 3.0.4 | 3.0.4 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.0 | ≤ 3.0.3 | no fix published | NVD |
| 3.1 | ≥ 3.1.1, ≤ 3.1.2 | no fix published | NVD |
| 3.2 | ≥ 3.2.0, ≤ 3.2.1 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.2 | ≥ 3.2.0, < 3.2.2 | 3.2.2 | OSV |
| 3.1 | < 3.1.3 | 3.1.3 | OSV |
1 more product in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As apache, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Apache Software Foundation Apache SparkAffected
- ≥ 3.0.3 and earlier, ≤ 3.0.3no fix statedcustom
- ≥ 3.1.1 to 3.1.2, ≤ 3.1.2no fix statedcustom
- ≥ 3.2.0 to 3.2.1, ≤ 3.2.1no fix statedcustom
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2023-07-25
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- openstack-barbicanSUSE:OpenStack Cloud Crowbar 9all versions · fixed in 7.0.1~dev24-3.17.1
- openstack-barbicanSUSE:OpenStack Cloud 9all versions · fixed in 7.0.1~dev24-3.17.1
- openstack-heat-gbpSUSE:OpenStack Cloud Crowbar 9all versions · fixed in 14.0.1~dev5-3.12.1
- openstack-heat-gbpSUSE:OpenStack Cloud 9all versions · fixed in 14.0.1~dev5-3.12.1
- openstack-horizon-plugin-gbp-uiSUSE:OpenStack Cloud Crowbar 9all versions · fixed in 14.0.1~dev6-3.15.1
- openstack-horizon-plugin-gbp-uiSUSE:OpenStack Cloud 9all versions · fixed in 14.0.1~dev6-3.15.1
- openstack-neutronSUSE:OpenStack Cloud Crowbar 9all versions · fixed in 13.0.8~dev209-3.43.1
- openstack-neutronSUSE:OpenStack Cloud 9all versions · fixed in 13.0.8~dev209-3.43.1
8 more package ranges on OSV.dev
Vendor advisories
- CVE-2022-33891 Red Hat Product Security
apache-spark: Apache Spark shell command injection vulnerability via Spark UI
Fix
- Update spark to 3.2.2 · 3.1.3 · 3.0.4
- CISA’s required action: Apply updates per vendor instructions.due 2023-03-28
Detection
read 2026-11-03 22:42 UTC- Nuclei template
- available ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof-of-concept repositories
- 10 repositories, unverifiedW01fh4cker/cve-2022-33891HuskyHacks/cve-2022-33891nanaao/CVE-2022-33891AkbarTrilaksana/cve-2022-33891AmoloHT/CVE-2022-33891 PoC-in-GitHub
- Metasploit modules
- 1 moduleexploit/linux/http/apache_spark_rce_cve_2022_33891rank: excellentModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
CISA Known Exploited Vulnerability
- Date Added
- 2023-03-07
- Patch Due Date
- 2023-03-28
- Ransomware Use
- Unknown
- Required Action
- Apply updates per vendor instructions.
Sources
- CISA KEVKEV entry2023-03-07
- ENISA EUVDexploitation2023-03-072023-03-07
- GCVEexploitation2023-03-07
- CISA-ADPSSVC decisionactive2025-02-04
- OpenCVESSVC decisionactive—
- CISA-ADPCVSS 3.18.82025-02-04
- NVDCVSS 3.18.8read 2026-10-23
- CNAweakness (CWE)CWE-78known since 2026-10-23
- NVDweakness (CWE)CWE-78read 2026-10-23
- FIRST EPSSEPSS score93.2 %read 2026-11-03
- PoC-in-GitHubproof of concept10read 2026-11-03
- ProjectDiscoverydetectionread 2026-11-03
- Metasploit FrameworkMetasploit modules1known since 2026-11-01
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHIGH2022-07-21
Identifiers
- BIT-spark-2022-33891same flawBitnami · Apache-2.0
- EUVD-2022-0217same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-4x9r-j582-cgr8same flawGitHub Advisory Database · CC-BY-4.0
- PYSEC-2022-236same flawPyPA Advisory Database · CC-BY-4.0
- exploit/linux/http/apache_spark_rce_cve_2022_33891exploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
- SUSE-SU-2023:0070-1advisory covering several CVEsSUSE · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Published
- 2022-07-18
- Last Modified
- 2026-06-17
- NVD status
- Analyzed
- GitHub Advisory
- GHSA-4x9r-j582-cgr8
Frequently asked questions
What is CVE-2022-33891?
Is CVE-2022-33891 actively exploited?
What is the CVSS score for CVE-2022-33891?
Running spark? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- For a threat intelligence platform: malware, C2 and ransomware indicators over STIX/TAXII.
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA KEV · CC0-1.0 (cisagov/kev-data)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GCVE · GCVE dump terms (preserve source attribution)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-4x9r-j582-cgr8
- Metasploit Framework · BSD-3-Clause
- Nuclei templates · MIT
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0