CVE-2022-31777Apache Spark XSS vulnerability in log viewer UI Javascript
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.
What to do
Fixed builds are available from Maven, PyPI: see the table below for the fixed version per release.
Maven has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Maven library | org.apache.spark:spark-core_2.10 | Fix pending | GHSA-43xg-8wmj-cw8h | |
| Maven library | org.apache.spark:spark-core_2.11 | Fix pending | GHSA-43xg-8wmj-cw8h | |
| Maven library | org.apache.spark:spark-core_2.12 | Fixed | 3.3.1 | GHSA-43xg-8wmj-cw8h |
| Maven library | org.apache.spark:spark-core_2.13 | Fixed | 3.2.2 | GHSA-43xg-8wmj-cw8h |
| Maven library | org.apache.spark:spark-core_2.9.3 | Fix pending | GHSA-43xg-8wmj-cw8h | |
| PyPI library | pyspark | Fixed | 3.2.2 | GHSA-43xg-8wmj-cw8h |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache Spark: affected: 3.3.0, 3.2.1 and earlier to 3.2.1
Workaround: Upgrade to Apache Spark maintenance releases 3.2.2, or 3.3.1 or later
References
- https://lists.apache.org/thread/60mgbswq2lsmrxykfxpqq13ztkm2ht6q
- http://www.openwall.com/lists/oss-security/2022/11/01/14
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.