Critical, CVSS 9.8MavenPublished
Scala subject to file deletion, code execution due to Java deserialization chain with LazyList object deserialization
CVE-2022-36944 · GHSA-8qv5-68g4-248j
- Affected
- Maven org.scala-lang:scala-library >= 2.13.0, < 2.13.9
- Fixed in
- 2.13.9· Vendor fix available
- Issue
- 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.
Recommended action: Upgrade to 2.13.9 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.