Vulnerabilities · 2022 · Apache
CVE-2022-31777
Apache Spark vulnerability
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 products
Spark. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Apache Spark runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- nvd.nist.gov/vuln/detail/CVE-2022-31777
- lists.apache.org/thread/60mgbswq2lsmrxykfxpqq13ztkm2ht6q
- github.com/apache/spark/commit/ad90195de56688ce0898691eb9d04297ab0871ad
- github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-42976.yaml
- www.openwall.com/lists/oss-security/2022/11/01/14
- web.archive.org/web/20220728105026/https://issues.apache.org/jira/browse/SPARK-39505
- github.com/advisories/GHSA-43xg-8wmj-cw8h
- nvd.nist.gov/vuln/detail/CVE-2022-31777
- cve.org/CVERecord?id=CVE-2022-31777
More vulnerabilities in Apache products
CVE-2026-47340CVE-2026-44930CVE-2026-44618CVE-2026-44417CVE-2026-42357CVE-2026-41280CVE-2026-32967CVE-2026-32966All 2,699
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.