MODERATE 5.4

CVE-2022-31777

Apache Spark vulnerable to Log Injection

Description

A stored cross-site scripting (XSS) vulnerability in Apache Spark 3.2.1 and earlier, and 3.3.0, allows remote attackers to execute arbitrary JavaScript in the web browser of a user, by including a malicious payload into the logs which would be returned in logs rendered in the UI.

Affected Maven artifacts (5)

ArtifactAffected versionsFixed in
org.apache.spark » spark-core_2.10
*
-
org.apache.spark » spark-core_2.11
*
-
org.apache.spark » spark-core_2.12
< 3.2.2>= 3.3.0, < 3.3.1
3.2.2, 3.3.1
org.apache.spark » spark-core_2.13
< 3.2.2>= 3.3.0, < 3.3.1
3.2.2, 3.3.1
org.apache.spark » spark-core_2.9.3
*
-

Blast radius

1affected artifacts
7,141affected versions
2,991dependent artifacts (est.)
207,127dependent versions

63% of the dependent artifacts (1,890) still pull an affected version in their latest release.

DepthDependent versions
Direct
104,606
2 hops
49,197
3 hops
37,517
4 hops
11,088
5 hops
4,247
6 hops
472

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

Other ecosystems

Also affects PyPI (1 package) . See all on OSV