CVE-2022-33891Spark Command Injection
Apache Spark UI can allow impersonation if ACLs enabled
Published Jul 18, 2022 · Updated Oct 28, 2026 · Also known as BIT-spark-2022-33891, GHSA-4x9r-j582-cgr8, PYSEC-2022-236
Key Facts
Patch immediately- CVE-2022-33891 is a high-severity vulnerability (CVSS 8.7 v4) affecting Spark (Apache), org.apache.spark:spark-parent_2.12 (pypi), pyspark (pypi) and 22 more products.
- It is exploited in the wild, listed in CISA KEV, Industry KEV feed, CIRCL KEV, ENISA EUVD since Dec 21, 2022. Public exploit code is available.
- EPSS estimates a 82% probability of exploitation in the next 30 days.
- Fixed versions are available, including Spark <=3.0.3, Spark 2.2.3-5.12.1, Spark 3.0.4.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Scores
CVSS v4
8.7
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:N/E:A
EPSS (30-day exploit likelihood)
82%
Higher than 99.7% of all scored CVEs
Exploit maturity
Exploited (KEV)
ATLAS score
74/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Mar 7, 2023
232 days after publication
Federal due date
Mar 28, 2023
Overdue
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Exploited (KEV)
Public exploit code
1
Proof-of-concept links
In-the-wild evidence
18
Reports of active use
Required action (CISA): Apply updates per vendor instructions.
Advisories And Exploit References
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.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| CISA KEV | Mar 7, 2023 | Mar 28, 2023 | Not reported |
| Industry KEV feed | Dec 21, 2022 | Mar 28, 2023 | Not reported |
| CIRCL KEV | Mar 7, 2023 | Mar 28, 2023 | Not reported |
| ENISA EUVD | Mar 7, 2023 | n/a | Not reported |
Required action: Apply updates per vendor instructions.
Affected Products
77 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| SparkApache | >= 3.0.3 and earlier | 3.0.3 |
| org.apache.spark:spark-parent_2.12pypi | See advisory | 3.2.2 |
| pysparkpypi | See advisory | 3.2.2 |
| org.apache.spark:spark-core_2.11seal | See advisory | 2.3.2+sp2p2 |
| seal-pysparkseal | See advisory | 2.4.8+sp999 |
Patched Releases
Spark
<=3.0.3, 2.2.3-5.12.1, 3.0.4, 3.1.3, 3.2.2
openstack-barbican
7.0.1~dev24-3.17.1
openstack-barbican-api
7.0.1~dev24-3.17.1
openstack-barbican-keystone-listener
7.0.1~dev24-3.17.1
openstack-barbican-retry
7.0.1~dev24-3.17.1
openstack-barbican-worker
7.0.1~dev24-3.17.1
openstack-heat-gbp
14.0.1~dev5-3.12.1
openstack-horizon-plugin-gbp-ui
14.0.1~dev6-3.15.1
openstack-neutron
13.0.8~dev209-3.43.1
openstack-neutron-dhcp-agent
13.0.8~dev209-3.43.1
openstack-neutron-gbp
14.0.1~dev52-3.37.1
openstack-neutron-ha-tool
13.0.8~dev209-3.43.1
openstack-neutron-l3-agent
13.0.8~dev209-3.43.1
openstack-neutron-linuxbridge-agent
13.0.8~dev209-3.43.1
openstack-neutron-macvtap-agent
13.0.8~dev209-3.43.1
openstack-neutron-metadata-agent
13.0.8~dev209-3.43.1
openstack-neutron-metering-agent
13.0.8~dev209-3.43.1
openstack-neutron-openvswitch-agent
13.0.8~dev209-3.43.1
openstack-neutron-server
13.0.8~dev209-3.43.1
org.apache.spark:spark-core_2.11
2.3.2+sp2p2
org.apache.spark:spark-parent_2.12
3.2.2
pyspark
2.4.8+sp999, 3.1.3, 3.2.2
python-barbican
7.0.1~dev24-3.17.1
python-heat-gbp
14.0.1~dev5-3.12.1
python-horizon-plugin-gbp-ui
14.0.1~dev6-3.15.1
Timeline
Publicly disclosed
Jul 18, 2022
Added to Industry KEV feed
Dec 21, 2022
Added to CISA KEV
Mar 7, 2023
Added to CIRCL KEV
Mar 7, 2023
Added to ENISA EUVD
Mar 7, 2023
Last updated
Oct 28, 2026
Weakness Type
- CWE-77 Improper Neutralization of Special Elements used in a Command
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
- advisorycve.org · CVERecord
- advisorynvd.nist.gov · CVE-2022-33891
- advisorybugzilla.suse.com · 1203873
- advisorybugzilla.suse.com · 1204326
- advisoryGHSA advisory
FAQ
Common Questions.
The Apache Spark UI offers the possibility to enable ACLs via the configuration option spark.acls.enable.
Affected: Spark (Apache) versions >= 3.0.3 and earlier; org.apache.spark:spark-parent_2.12 (pypi); pyspark (pypi), among others. The full list is in the CVE brief.
It is exploited in the wild, listed in CISA KEV, Industry KEV feed, CIRCL KEV, ENISA EUVD since Dec 21, 2022.
Yes. It was added on Mar 7, 2023 with a federal remediation due date of Mar 28, 2023.
Public exploit code is available.
Fixed versions are available, including Spark <=3.0.3, Spark 2.2.3-5.12.1, Spark 3.0.4.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2022-33891 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo