Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2022-33891: Apache Spark Command Injection Vulnerability

91
Patch now
HIGH 8.8EXPLOITEDWATCHLISTUPGRADE

CVE-2022-33891 is a high-severity flaw (CVSS 8.8) affecting spark, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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

Why this priority

  • High severity
  • EPSS top 1%: very likely to be exploited
  • Exploited in the wild (CISA KEV)
  • Public exploit reference
  • On your watchlist

A fixed release or distro patch exists.

Risk facts

CVSS score8.8 (High)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededLow
User interactionNone
EPSS exploit chance93.2% (top 1%)
CISA exploited listYes, fix due 2023-03-28
WeaknessCWE-78
Published2022-07-18
Last modified2026-06-17
Publisher (CNA): Apache Software Foundation · Vendor: apache

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

apache spark UPGRADE
Affected: <= 3.0.3 · >= 3.1.1 and <= 3.1.2 · >= 3.2.0 and <= 3.2.1
Fixed in: newer than 3.2.1
Safe to downgrade to: a release before 3.1.1
1. Check installed version
apt-cache policy spark || rpm -q spark || spark --version
2. UPGRADE to newer than 3.2.1 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade spark
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade spark
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 3.1.1 (Debian / Ubuntu)
apt-cache madison spark sudo apt install spark=<VERSION_BEFORE_3.1.1> sudo apt-mark hold spark
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list spark sudo dnf downgrade spark-<VERSION_BEFORE_3.1.1> sudo dnf versionlock add spark
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.

Exact fixes by distribution

Maven · org.apache.spark:spark-parent_2.12 · NO FIX YET · vulnerable: <= 3.0.3 · source
Python (pip) · pyspark · FIXED · 3.1.3 · vulnerable: >= 0, < 3.1.3 · source
pip install --upgrade "pyspark>=3.1.3" pip show pyspark
Fedora 46 · python-reportlab · FIXED · 5.1.3-1.fc46 · FEDORA-2026-995c1c8ad8 · source
sudo dnf upgrade --advisory=FEDORA-2026-995c1c8ad8

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · CISA KEV catalog · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2022-33891?

spark: upgrade to newer than 3.2.1. Exact commands for each OS are on this page.

Is CVE-2022-33891 being exploited?

Yes. CVE-2022-33891 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.

What does CVE-2022-33891 affect?

CVE-2022-33891 affects spark. Severity is high (CVSS 8.8). 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 enable

How urgent is CVE-2022-33891?

Priority 91/100. High severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference; On your watchlist

Software pages

Apache Spark vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.