Skip to content
Fencer Vulns
high 8.8

CVE-2022-33891 kev in the critical feed json

Apache Spark shell command injection vulnerability via Spark UI

published 2022-07-18 4 y ago modified 2026-09-08 2 mo ago also BIT-spark-2022-33891 , EUVD-2022-0217 , GHSA-4x9r-j582-cgr8 , PYSEC-2022-236

cvss
8.8
version 3.1, CNA
cisa kev
Exploited
added 2023-03-07
epss
93.2%
EPSS 93.2% chance of exploitation in 30 days, percentile 99.8%
public exploits
1
Metasploit, plus a Nuclei check

Summary

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.

Patch / fix

cisa required action Apply updates per vendor instructions.

  • maven org.apache.spark:spark-parent_2.12 3.2.2
  • pypi pyspark 3.1.3, 3.2.2
  • bitnami spark 3.0.4, 3.1.3, 3.2.2
  • openstack-neutron-gbp OpenStack Cloud Crowbar 9, OpenStack Cloud 9 14.0.1~dev52-3.37.1
  • spark OpenStack Cloud Crowbar 9, OpenStack Cloud 9 2.2.3-5.12.1
  • openstack-neutron OpenStack Cloud Crowbar 9, OpenStack Cloud 9 13.0.8~dev209-3.43.1
  • openstack-barbican OpenStack Cloud Crowbar 9, OpenStack Cloud 9 7.0.1~dev24-3.17.1
  • openstack-heat-gbp OpenStack Cloud Crowbar 9, OpenStack Cloud 9 14.0.1~dev5-3.12.1
  • venv-openstack-nova OpenStack Cloud 9 18.3.1~dev92-3.43.1
  • venv-openstack-horizon OpenStack Cloud 9 14.1.1~dev11-4.43.1
  • venv-openstack-neutron OpenStack Cloud 9 13.0.8~dev209-6.43.1

suse advisories SUSE-SU-2023:0070-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-33891 updated cvss 8.8

apache-spark: Apache Spark shell command injection vulnerability via Spark UI

  • Red Hat build of Apache Camel for Spring Boot 3 apache-spark apache-spark Red Hat Fuse 7 apache-spark apache-spark Red Hat Integration Camel K 1 apache-spark apache-spark Red Hat JBoss Data Grid 7 apache-spark apache-spark
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Timeline

  1. Published
  2. First public exploit (Metasploit exploit/linux/http/apache_spark_rce_cve_2022_33891)
  3. Added to CISA KEV
  4. CISA patch deadline
  5. CISA SSVC: exploitation active

Known exploited

Added
3 y ago
Patch by
2023-03-28 (3 y ago)
Ransomware
Not known
Required action
Apply updates per vendor instructions.
Vendor, product
Apache, Spark
CISA name
Apache Spark Command Injection Vulnerability

CISA SSVC

Exploitation
Active, exploited in the wild
Automatable
no
Technical impact
total
Assessed
21 mo ago

Exploit prediction

93.24% chance of exploitation in the next 30 days, higher than 99.8% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

CVSS scores

assigned by version score vector
CISA ADP 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:H
NVD 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
maven org.apache.spark:spark-parent_2.12
<=3.0.3
>=3.1.1, <3.2.2
3.2.2
pypi pyspark
<3.1.3
>=3.2.0, <3.2.2
3.1.3
3.2.2
bitnami spark
<3.0.4
>=3.1.1, <3.1.3
>=3.2.0, <3.2.2
3.0.4
3.1.3
3.2.2

Affected products

  • Apache Software Foundation Apache Spark

Classification

Weakness
  • CWE-78 Improper Neutralization of Special Elements used in an OS Command

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.