Vulnerability · Published Nov 1, 2022 · Assigned by apache

CVE-2022-31777Apache Spark XSS vulnerability in log viewer UI Javascript

Medium 5.4

In plain English

A medium-severity injection in Apache Spark from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 79% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)1.8%top 21.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.apache.spark:spark-core_2.10no fix listedGHSA-43xg-8wmj-cw8h
Mavenorg.apache.spark:spark-core_2.11no fix listedGHSA-43xg-8wmj-cw8h
Mavenorg.apache.spark:spark-core_2.123.2.2GHSA-43xg-8wmj-cw8h
Mavenorg.apache.spark:spark-core_2.123.3.1GHSA-43xg-8wmj-cw8h
Mavenorg.apache.spark:spark-core_2.133.2.2GHSA-43xg-8wmj-cw8h
Mavenorg.apache.spark:spark-core_2.133.3.1GHSA-43xg-8wmj-cw8h
Mavenorg.apache.spark:spark-core_2.9.3no fix listedGHSA-43xg-8wmj-cw8h
PyPIpyspark3.2.2PYSEC-2022-42976
PyPIpyspark3.3.1GHSA-43xg-8wmj-cw8h
PyPIpyspark3.2.2GHSA-43xg-8wmj-cw8h

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache Spark 3.3.03.2.1 and earlier – through 3.2.1

Weakness: CWE-74 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

References