Apache Spark XSS vulnerability in log viewer UI Javascript
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Partial Red Hat: 1 fixed, 4 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache Spark | 3.3.0; 3.2.1 and earlier – 3.2.1 | — | No fix listed | CNA |
| — | pyspark (PyPI) | before 3.2.2 | 3.2.2 | Patch available | GHSA-43xg-8wmj-cw8h |
| — | pyspark (PyPI) | 3.3.0 to before 3.3.1 | 3.3.1 | Patch available | GHSA-43xg-8wmj-cw8h |
| — | org.apache.spark:spark-core_2.9.3 (Maven) | all versions | — | No fix listed | GHSA-43xg-8wmj-cw8h |
| — | org.apache.spark:spark-core_2.13 (Maven) | before 3.2.2 | 3.2.2 | Patch available | GHSA-43xg-8wmj-cw8h |
| — | org.apache.spark:spark-core_2.13 (Maven) | 3.3.0 to before 3.3.1 | 3.3.1 | Patch available | GHSA-43xg-8wmj-cw8h |
| — | org.apache.spark:spark-core_2.12 (Maven) | before 3.2.2 | 3.2.2 | Patch available | GHSA-43xg-8wmj-cw8h |
| — | org.apache.spark:spark-core_2.12 (Maven) | 3.3.0 to before 3.3.1 | 3.3.1 | Patch available | GHSA-43xg-8wmj-cw8h |
| — | org.apache.spark:spark-core_2.11 (Maven) | all versions | — | No fix listed | GHSA-43xg-8wmj-cw8h |
| — | org.apache.spark:spark-core_2.10 (Maven) | all versions | — | No fix listed | GHSA-43xg-8wmj-cw8h |
- Apache Spark VendorApache Affected 3.3.0; 3.2.1 and earlier – 3.2.1 Fixed in — No fix listed CNA
- pyspark (PyPI) Vendor— Affected before 3.2.2 Fixed in 3.2.2 Patch available GHSA-43xg-8wmj-cw8h
- pyspark (PyPI) Vendor— Affected 3.3.0 to before 3.3.1 Fixed in 3.3.1 Patch available GHSA-43xg-8wmj-cw8h
- org.apache.spark:spark-core_2.9.3 (Maven) Vendor— Affected all versions Fixed in — No fix listed GHSA-43xg-8wmj-cw8h
- org.apache.spark:spark-core_2.13 (Maven) Vendor— Affected before 3.2.2 Fixed in 3.2.2 Patch available GHSA-43xg-8wmj-cw8h
- org.apache.spark:spark-core_2.13 (Maven) Vendor— Affected 3.3.0 to before 3.3.1 Fixed in 3.3.1 Patch available GHSA-43xg-8wmj-cw8h
- org.apache.spark:spark-core_2.12 (Maven) Vendor— Affected before 3.2.2 Fixed in 3.2.2 Patch available GHSA-43xg-8wmj-cw8h
- org.apache.spark:spark-core_2.12 (Maven) Vendor— Affected 3.3.0 to before 3.3.1 Fixed in 3.3.1 Patch available GHSA-43xg-8wmj-cw8h
- org.apache.spark:spark-core_2.11 (Maven) Vendor— Affected all versions Fixed in — No fix listed GHSA-43xg-8wmj-cw8h
- org.apache.spark:spark-core_2.10 (Maven) Vendor— Affected all versions Fixed in — No fix listed GHSA-43xg-8wmj-cw8h
Remediation
- Fix · GHSA-43xg-8wmj-cw8h pyspark (PyPI) Fixed in 3.2.2 Advisory →
- Fix · GHSA-43xg-8wmj-cw8h pyspark (PyPI) Fixed in 3.3.1 Advisory →
- Fix · GHSA-43xg-8wmj-cw8h org.apache.spark:spark-core_2.13 (Maven) Fixed in 3.2.2 Advisory →
- Fix · GHSA-43xg-8wmj-cw8h org.apache.spark:spark-core_2.13 (Maven) Fixed in 3.3.1 Advisory →
- Fix · GHSA-43xg-8wmj-cw8h org.apache.spark:spark-core_2.12 (Maven) Fixed in 3.2.2 Advisory →
- Fix · GHSA-43xg-8wmj-cw8h org.apache.spark:spark-core_2.12 (Maven) Fixed in 3.3.1 Advisory →
Red Hat 1 advisory
- RHSA-2023:2100 Released 2023-05-03 · Red Hat rating ImportantRed Hat Integration Camel for Spring Boot 3.20.1 security update
- RHINT Camel-Springboot 3.20.1
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Fuse 7 | Affected | No fix planned: Will not fix |
| Red Hat Integration Camel K 1 | Affected | No fix planned: Will not fix |
| Red Hat Integration Camel Quarkus 1 | Affected | No fix planned: Will not fix |
| Red Hat JBoss Data Grid 7 | Affected | No fix planned: Out of support scope |
| RHINT Camel-Springboot 3.20.1 | Fixed | RHSA-2023:2100 |
Timeline
- 2026-10-02 Threatist record created from CVE-2022-31777
- 2026-10-03 Alias added: GHSA-43xg-8wmj-cw8h
References
Advisory 2
Other 5
- [oss-security] 20221101 CVE-2022-31777: Apache Spark XSS vulnerability in log viewer UI Javascript
- https://github.com/apache/spark/commit/ad90195de56688ce0898691eb9d04297ab0871ad
- https://github.com/apache/spark
- https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-42976.yaml
- https://web.archive.org/web/20220728105026/https://issues.apache.org/jira/browse/SPARK-39505
More Apache Spark vulnerabilities
- TI-2022-14901 Apache Spark shell command injection vulnerability via Spark UI KEVCVSS 3.1HIGH 8.8
- TI-2023-15314 Apache Spark: Shell command injection via Spark UI CVSS 3.1HIGH 8.8
- TI-2020-07589 Missing authentication in Apache Spark CVSS 3.1CRITICAL 9.8
- TI-2020-16549 Uncontrolled resource consumption in Eclipse Jetty CVSS 3.1MEDIUM 5.3
- TI-2019-14677 HttpObjectDecoder.java in Netty before 4.1.44 allows a Content-Length header to be… CVSS 3.1CRITICAL 9.1
- TI-2018-08427 Improper authentication in Apache Spark CVSS 3.1MEDIUM 4.2
Sources
- CVE-2022-31777 · CVE Program
- CVE-2022-31777 · NVD
- FIRST EPSS
- GHSA-43xg-8wmj-cw8h · GitHub Advisory Database · CC BY 4.0
- CVE-2022-31777 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences