CRITICAL 9.8

CVE-2022-36944

Scala subject to file deletion, code execution due to Java deserialization chain with LazyList object deserialization

Description

Scala 2.13.x before 2.13.9 has a Java deserialization chain in its JAR file. On its own, it cannot be exploited. There is only a risk in conjunction with LazyList object deserialization within an application. In such situations, it allows attackers to erase contents of arbitrary files, make network connections, or possibly run arbitrary code (specifically, Function0 functions) via a gadget chain.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.scala-lang » scala-library
>= 2.13.0, < 2.13.9
2.13.9

Blast radius

1affected artifacts
12affected versions
13,779dependent artifacts (est.)
293,983dependent versions

43% of the dependent artifacts (5,961) still pull an affected version in their latest release.

DepthDependent versions
Direct
189,310
2 hops
51,209
3 hops
25,145
4 hops
11,368
5 hops
10,456
6 hops
6,495

Most used dependents

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.