CVE-2022-31777
Apache Spark vulnerable to Log Injection
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 Maven artifacts (5)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.spark » spark-core_2.10 | * | - |
| org.apache.spark » spark-core_2.11 | * | - |
| org.apache.spark » spark-core_2.12 | < 3.2.2>= 3.3.0, < 3.3.1 | 3.2.2, 3.3.1 |
| org.apache.spark » spark-core_2.13 | < 3.2.2>= 3.3.0, < 3.3.1 | 3.2.2, 3.3.1 |
| org.apache.spark » spark-core_2.9.3 | * | - |
Blast radius
63% of the dependent artifacts (1,890) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 104,606 |
| 2 hops | 49,197 |
| 3 hops | 37,517 |
| 4 hops | 11,088 |
| 5 hops | 4,247 |
| 6 hops | 472 |
Most used dependents
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-mllib831 usages
- org.apache.hive » hive-exec699 usages
- org.apache.spark » spark-streaming670 usages
- org.apache.spark » spark-hive633 usages
- org.apache.camel.springboot » camel-core-starter558 usages
- org.apache.spark » spark-catalyst502 usages
- org.apache.hive » hive-metastore480 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- org.apache.hive » hive-jdbc404 usages
- org.apache.hive » hive-common305 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.apache.hive » hive-service301 usages
- org.apache.hive » hive-serde206 usages
- org.apache.spark » spark-avro163 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects PyPI (1 package) . See all on OSV
References
| Advisory | NVD CVE-2022-31777 | nvd.nist.gov |
| Package | apache/spark | github.com |
| Web | apache/spark commit ad90195 | github.com |
| Web | pypa/advisory-database PYSEC-2022-42976.yaml | github.com |
| Web | thread/60mgbswq2lsmrxykfxpqq13ztkm2ht6q | lists.apache.org |
| Web | web/20220728105026/https:/issues.apache.org/jira/browse/SPARK-39505 | web.archive.org |
| Web | lists/oss-security/2022/11/01/14 | openwall.com |
