CVE-2022-31777
MEDIUM5.4EPSS 0.18%Apache Spark vulnerable to Log Injection
Published: 11/1/2022Modified: 12/18/2025
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 (8)
- Bitnami/sparkfrom 0, < 3.2.2, >= 3.3.0, < 3.3.1
- Maven/org.apache.spark:spark-core_2.10from 0
- Maven/org.apache.spark:spark-core_2.11from 0
- Maven/org.apache.spark:spark-core_2.12from 0, < 3.2.2
- Maven/org.apache.spark:spark-core_2.13from 0, < 3.2.2
- Maven/org.apache.spark:spark-core_2.9.3from 0
- PyPI/pysparkfrom 0, < 3.2.2
- PyPI/pysparkfrom 0, < 3.2.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
References (7)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2022-31777
- PATCHhttps://github.com/apache/spark
- WEBhttps://github.com/apache/spark/commit/ad90195de56688ce0898691eb9d04297ab0871ad
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-42976.yaml
- WEBhttps://lists.apache.org/thread/60mgbswq2lsmrxykfxpqq13ztkm2ht6q
- WEBhttps://web.archive.org/web/20220728105026/https://issues.apache.org/jira/browse/SPARK-39505
- WEBhttp://www.openwall.com/lists/oss-security/2022/11/01/14