Vulnerability
CVE-2022-36944
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 Java 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.
16 advisories report this vulnerability, across 3 ecosystems.
Advisories
- CGA-2937-gv6g-gh8f
- CGA-326x-x26f-73jx
- CGA-3898-3w46-gh3p
- CGA-4hgc-q7mf-pm39
- CGA-6h77-vfgr-4x43
- CGA-g4jc-3rgf-wc27
- CGA-gg6m-7cp6-7m4p
- CGA-hf2h-8cr7-m3x4
- CGA-p5f7-6369-63v7
- CGA-q9q9-qf2x-cx2p
- CGA-r97c-wcch-rpx7
- CGA-wjmw-gw2f-x3rj
- CGA-x7fm-xwvc-3w5f
- CGA-xgm5-prq9-j984
-
GHSA-8qv5-68g4-248j
Scala subject to file deletion, code execution due to Java deserialization chain with LazyList object deserialization
-
UBUNTU-CVE-2022-36944
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 Java object deserialization within an application. In such…
References
- https://discuss.lightbend.com/t/impact-of-cve-2022-36944-on-akka-cluster-akka-actor-akka-remote/10007/2
- https://github.com/scala/scala-collection-compat/releases/tag/v2.9.0
- https://github.com/scala/scala/pull/10118
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6ZOZVWY3X72FZZCCRAKRJYTQOJ6LUD6Z/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L3WMKPFAMFQE3HJVRQ5KOJUTWG264SXI/
- https://www.scala-lang.org/download/