Skip to content
Fencer Vulns
critical 9.8

CVE-2022-36944 in the critical feed json

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

published 2022-09-23 4 y ago modified 2026-09-10 1 mo ago also GHSA-8qv5-68g4-248j , EUVD-2022-6746

cvss
9.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
11.0%
EPSS 11.0% chance of exploitation in 30 days, percentile 95%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven org.scala-lang:scala-library 2.13.9
  • scala-lang scala 2.13.9
  • scala-lang scala-collection-compat 2.9.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-36944 updated cvss 8.1

scala: deserialization gadget chain

  • Red Hat JBoss Fuse Service Works 6 scala scala
    affected: workaround, no fix planned “Users of Scala's LazyList should never permit deserialization of untrusted data.”
  • Red Hat Enterprise Linux 8 scala, scala-swing, scala-apidoc
    under investigation
  • Red Hat AMQ Streams 2.4.0
    fixed: vendor fix “Users of Scala's LazyList should never permit deserialization of untrusted data.” RHSA-2023:3223
  • Red Hat AMQ Streams 2.5.0
    fixed: vendor fix “Users of Scala's LazyList should never permit deserialization of untrusted data.” RHSA-2023:5165
  • Red Hat Fuse 7 scala scala Red Hat JBoss Data Grid 7 scala scala Red Hat JBoss Enterprise Application Platform 7 scala-library Red Hat JBoss Enterprise Application Platform Expansion Pack scala-library Red Hat JBoss Fuse 6 scala scala
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
total
Assessed
17 mo ago

Exploit prediction

10.97% chance of exploitation in the next 30 days, higher than 95% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/scala/scala/pull/10118 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CISA ADP 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
maven org.scala-lang:scala-library
>=2.13.0, <2.13.9
2.13.9

Classification

Weakness
  • CWE-502 Deserialization of Untrusted Data

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.