CVE-2022-36944Scala-lang Scala
Critical 9.8 No auth neededHigh EPSS
Follow: this CVE · Scala-lang · Scala-lang Scala We alert you by email or Slack (account required).
- Priority
- 75
- CVSS 3.1
- 9.8
- EPSS
- 11.4% probability of exploitation in 30 days · percentile 97
- Auth required
- No
- Published
- Sep 23, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-502
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Scala.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.scala-lang:scala-library |
≥ 2.13.0 < 2.13.9 |
2.13.9 |
— |
Per OSV / GitHub Advisories (GHSA-8qv5-68g4-248j). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| scala-lang | scala | ≥ 2.13.0 < 2.13.9 |
| scala-lang | scala-collection-compat | < 2.9.0 |
| fedoraproject | fedora | 35 |
| fedoraproject | fedora | 36 |
Official sources
References
Links published by the sources. Open them with care.
- discuss.lightbend.com Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Exploit Patch Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- www.scala-lang.org Vendor Advisory