CVE-2022-36944

CRITICAL

Scala 2.13.0-2.13.8 - Deserialization of Untrusted Data via Function0 Gadget Chain

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2022-36944. PoCs published by yarocher.

AI-analyzed exploit summary This repository contains a functional exploit PoC for CVE-2022-36944, a deserialization vulnerability in Scala's LazyList class. The exploit generates a malicious payload that, when deserialized, can truncate arbitrary files on the victim's system.

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.

Exploits (1)

nomisec WORKING POC 10 stars
by yarocher · poc
https://github.com/yarocher/lazylist-cve-poc

This repository contains a functional exploit PoC for CVE-2022-36944, a deserialization vulnerability in Scala's LazyList class. The exploit generates a malicious payload that, when deserialized, can truncate arbitrary files on the victim's system.

Classification
Working Poc 95%
Attack Type
Deserialization
Complexity
Moderate
Reliability
Reliable
Target: Scala Library versions 2.13.x before 2.13.9
No auth needed
Prerequisites: Vulnerable Scala Library in classpath · Application must call ObjectInputStream#readObject() with untrusted data
mistral-large-3 · analyzed Feb 18, 2026 Full analysis →

Scores

CVSS v3 9.8
EPSS 0.0834
EPSS Percentile 94.3%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact total

Details

CWE
CWE-502
Status published
Products (5)
fedoraproject/fedora 35
fedoraproject/fedora 36
org.scala-lang/scala-library 2.13.0 - 2.13.9Maven
scala-lang/scala 2.13.0 - 2.13.9
scala-lang/scala-collection-compat < 2.9.0
Published Sep 23, 2022
Tracked Since Feb 18, 2026