Skip to content
On CISA KEVHigh

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.

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

CatalogAddedRemediation dueRansomware use
CISA KEVMar 7, 2023Mar 28, 2023Not reported
Industry KEV feedDec 21, 2022Mar 28, 2023Not reported
CIRCL KEVMar 7, 2023Mar 28, 2023Not reported
ENISA EUVDMar 7, 2023n/aNot reported

Required action: Apply updates per vendor instructions.

Affected Products

77 affected entries in total
ProductAffected versionsFixed in
SparkApache>= 3.0.3 and earlier3.0.3
org.apache.spark:spark-parent_2.12pypiSee advisory3.2.2
pysparkpypiSee advisory3.2.2
org.apache.spark:spark-core_2.11sealSee advisory2.3.2+sp2p2
seal-pysparksealSee advisory2.4.8+sp999
20 more affected products in the full CVE brief

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

  1. Publicly disclosed

    Jul 18, 2022

  2. Added to Industry KEV feed

    Dec 21, 2022

  3. Added to CISA KEV

    Mar 7, 2023

  4. Added to CIRCL KEV

    Mar 7, 2023

  5. Added to ENISA EUVD

    Mar 7, 2023

  6. 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

15 more references in the full CVE brief

FAQ

Common Questions.

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

More vulnerabilities

Figures as of Dec 2, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.