CVE-2022-36944
scala: deserialization gadget chain
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (high).
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 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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| maven::GitHub Security Advisory Maven | org.scala-lang:scala-library | 2.13.9 |
| chainguard | spark-3.5, spark-fips-3.5 | 0 and 1 more |
| Red Hat | scala, scala-apidoc, scala-swing | no fix listed |
Show all 6 entries from 3 sources
| Source | Package | Fixed in |
|---|---|---|
| maven::GitHub Security Advisory Maven | org.scala-lang:scala-library | 2.13.9 |
| chainguard | spark-3.5 | 0 |
| chainguard | spark-fips-3.5 | 3.5.4-r17 |
| Red Hat | scala | no fix listed |
| Red Hat | scala-apidoc | no fix listed |
| Red Hat | scala-swing | no fix listed |
References
- https://access.redhat.com/security/cve/CVE-2022-36944
- https://discuss.lightbend.com/t/impact-of-cve-2022-36944-on-akka-cluster-akka-actor-akka-remote/10007/2
- https://github.com/scala/scala
- https://github.com/scala/scala-collection-compat/releases/tag/v2.9.0
- https://github.com/scala/scala/pull/10118
- https://github.com/scala/scala/releases/tag/v2.13.9
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6ZOZVWY3X72FZZCCRAKRJYTQOJ6LUD6Z
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6ZOZVWY3X72FZZCCRAKRJYTQOJ6LUD6Z/
All 14 references
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/L3WMKPFAMFQE3HJVRQ5KOJUTWG264SXI
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/L3WMKPFAMFQE3HJVRQ5KOJUTWG264SXI/
- https://nvd.nist.gov/vuln/detail/CVE-2022-36944
- https://www.cve.org/CVERecord?id=CVE-2022-36944
- https://www.scala-lang.org/download
- https://www.scala-lang.org/download/