All reports
Critical

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

Affected versions

Affected versions
>= 2.13.0, < 2.13.9
Fixed version
2.13.9
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-36944

Probability of exploitation in the next 30 days: 11.68%

FIRST EPSS · 2026-11-22

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.

Links

Credits

  • lenaschoenburg
  • lukaseder
  • alexkvak
  • fernandomora
  • joseraya
  • adangel