CVE-2022-36944
CRITICAL9.8EPSS 67.8%Scala subject to file deletion, code execution due to Java deserialization chain with LazyList object deserialization
Published: 9/25/2022Modified: 2/4/2026
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 packages (1)
- Maven/org.scala-lang:scala-library>= 2.13.0, < 2.13.9
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (9)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2022-36944
- PATCHhttps://github.com/scala/scala
- WEBhttps://discuss.lightbend.com/t/impact-of-cve-2022-36944-on-akka-cluster-akka-actor-akka-remote/10007/2
- WEBhttps://github.com/scala/scala-collection-compat/releases/tag/v2.9.0
- WEBhttps://github.com/scala/scala/pull/10118
- WEBhttps://github.com/scala/scala/releases/tag/v2.13.9
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/6ZOZVWY3X72FZZCCRAKRJYTQOJ6LUD6Z
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/L3WMKPFAMFQE3HJVRQ5KOJUTWG264SXI
- WEBhttps://www.scala-lang.org/download