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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.apache.spark:spark-core_2.10 | no fix listed | GHSA-43xg-8wmj-cw8h |
| Maven | org.apache.spark:spark-core_2.11 | no fix listed | GHSA-43xg-8wmj-cw8h |
| Maven | org.apache.spark:spark-core_2.12 | 3.2.2 | GHSA-43xg-8wmj-cw8h |
| Maven | org.apache.spark:spark-core_2.12 | 3.3.1 | GHSA-43xg-8wmj-cw8h |
| Maven | org.apache.spark:spark-core_2.13 | 3.2.2 | GHSA-43xg-8wmj-cw8h |
| Maven | org.apache.spark:spark-core_2.13 | 3.3.1 | GHSA-43xg-8wmj-cw8h |
| Maven | org.apache.spark:spark-core_2.9.3 | no fix listed | GHSA-43xg-8wmj-cw8h |
| PyPI | pyspark | 3.2.2 | PYSEC-2022-42976 |
| PyPI | pyspark | 3.3.1 | GHSA-43xg-8wmj-cw8h |
| PyPI | pyspark | 3.2.2 | GHSA-43xg-8wmj-cw8h |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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