LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

CVE-2022-33891: Apache Spark Command Injection Vulnerability

RBRecent Breaches Vulnerability Intelligence·Mar 7, 2023
High⚠ Actively exploited (CISA KEV)
High
Severity
Active
CISA KEV
No
Ransomware use
Mar 28, 2023
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2022-33891 to its Known Exploited Vulnerabilities catalog on Mar 7, 2023, with a federal patch deadline of Mar 28, 2023 — meaning attackers are actively using it. If you run the affected software, patch it immediately.

Apache Spark contains a command injection vulnerability via Spark User Interface (UI) when Access Control Lists (ACLs) are enabled.

CVE-2022-33891 is a command injection vulnerability in Apache Spark that can be reached through the Spark User Interface (UI) when Access Control Lists (ACLs) are enabled. An attacker who can interact with that interface may be able to inject and run operating-system commands on the host running the Spark UI. Because Spark is commonly used for large-scale data processing, successful abuse can give an adversary a foothold inside analytics or data-platform environments. Exact impact depends on how the UI is exposed and what privileges the Spark process holds; teams should treat any internet-facing or poorly segmented Spark UI as high priority for review.

CISA lists the required action as applying updates per the vendor’s instructions. Public detail on versions, scores, and exploit mechanics is limited to the summary above; confirm all specifics against the official Apache Spark advisory before acting.

How it works

The weakness is classified as CWE-78 (OS Command Injection). In this class of flaw, user-controlled input is passed to a system shell or command interpreter without sufficient sanitization or parameterization. When ACLs are enabled on the Spark UI, the interface accepts certain inputs that the backend ultimately uses in a way that can reach a command execution path. An attacker who can reach the UI and craft a malicious request may therefore cause the Spark process to run arbitrary commands under the privileges of that process.

No public exploit code or detailed request format is supplied in the available facts. Defenders should assume that any authenticated or unauthenticated access to the Spark UI (depending on the deployment’s ACL and authentication configuration) could be abused until the vendor patch is applied and the configuration is verified. Confirm the precise trigger conditions and fixed behavior against the Apache Spark security advisory.

Am I affected? How to find it in your systems

Apache Spark is typically deployed in data-engineering, analytics, and machine-learning clusters—on-premises, in cloud VMs, or inside container platforms. The Spark UI (often listening on a well-known HTTP port such as 4040 or a configured alternative) is the component named in the vulnerability description. Look for running Spark masters, workers, or history servers that expose a web UI and that have ACLs turned on.

If the UI is reachable from untrusted networks or if ACLs are enabled without compensating controls, treat the instance as potentially affected until proven otherwise.

How to remediate

Patch first. Apply the Apache Spark updates that address CVE-2022-33891 exactly as directed in the vendor advisory. After installing the update, restart the affected Spark services and verify that the UI still functions as expected under your ACL configuration.

Document the change and update your vulnerability-management records so future scans correctly mark the asset as remediated.

If you can't patch immediately

Until the vendor update can be applied, reduce exposure with compensating controls that limit reachability and detect abuse.

These measures lower risk but do not replace the official patch. Schedule the update as soon as change windows allow.

If your data may have been exposed

Actively exploited command-injection flaws can lead to full host compromise and subsequent data theft or ransomware deployment; however, known ransomware use of this specific CVE is not documented in the available facts. If you discover evidence of exploitation—unexpected processes, outbound connections, or data exfiltration—follow your incident-response plan: isolate the host, preserve forensic artifacts, and engage your security operations team. As a routine hygiene step, you can also run a free exposure scan of organizational email addresses against known breach data sets to check whether credentials or personal information associated with your environment have already appeared in public dumps.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedApache · Spark
WeaknessCWE-78
Added to CISA KEVMar 7, 2023
Federal patch deadlineMar 28, 2023
Known ransomware useNot documented
Check if your data is exposed →

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities