CRITICAL9.8
GHSA-8qv5-68g4-248j
Scala subject to file deletion, code execution due to Java deserialization chain with LazyList object deserialization
Quick fix
GHSA-8qv5-68g4-248j — org.scala-lang:scala-library: upgrade to the fixed version with the command below.
# pom.xml: bump <version>2.13.9</version> for org.scala-lang:scala-libraryDetails
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Maven/org.scala-lang:scala-library
Introduced in:
2.13.0Fixed in: 2.13.9Fix
# pom.xml: bump <version>2.13.9</version> for org.scala-lang:scala-libraryReferences
- https://nvd.nist.gov/vuln/detail/CVE-2022-36944[ADVISORY]
- https://github.com/scala/scala/pull/10118[WEB]
- https://discuss.lightbend.com/t/impact-of-cve-2022-36944-on-akka-cluster-akka-actor-akka-remote/10007/2[WEB]
- https://github.com/scala/scala[PACKAGE]
- https://github.com/scala/scala-collection-compat/releases/tag/v2.9.0[WEB]
- https://github.com/scala/scala/releases/tag/v2.13.9[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6ZOZVWY3X72FZZCCRAKRJYTQOJ6LUD6Z[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/L3WMKPFAMFQE3HJVRQ5KOJUTWG264SXI[WEB]
- https://www.scala-lang.org/download[WEB]