ADVISORIES

GitHub Advisory Database

GHSA-8qv5-68g4-248j

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

Critical CVE-2022-36944

Details

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 packages

EcosystemPackageAffected versions
Mavenorg.scala-lang:scala-library
From 2.13.0 before 2.13.9 (fixed in 2.13.9)

References