Bug 2129809 (CVE-2022-36944)

Summary: CVE-2022-36944 scala: deserialization gadget chain
Product: [Other] Security Response Reporter: Avinash Hanwate <ahanwate>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: aileenc, asoldano, bbaranow, bmaxwell, brian.stansberry, cdewolf, chazlett, darran.lofthouse, dkreling, dosoudil, fjuma, geoff+fedora, gmalinko, ivassile, iweiss, janstey, jochen, jpavlik, jross, jscholz, lgao, loganjerry, mizdebsk, mokumar, mosmerov, msochure, msvehla, nwallace, pdelbell, pjindal, pmackay, rstancel, smaestri, swoodman, tom.jenkinson
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: scala 2.13.9 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Scala's LazyList that permits code execution during deserialization. This issue could allow an attacker to craft a LazyList containing a malicious Function0 call to execute arbitrary code on a server that deserializes untrusted data.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-28 03:25:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2129810    
Bug Blocks: 2203255    

Description Avinash Hanwate 2022-09-26 10:23:36 UTC
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.

https://www.scala-lang.org/download/
https://github.com/scala/scala/pull/10118

Comment 1 Avinash Hanwate 2022-09-26 10:23:55 UTC
Created scala tracking bugs for this issue:

Affects: fedora-all [bug 2129810]

Comment 2 Product Security DevOps Team 2022-11-28 03:25:20 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.

Comment 5 errata-xmlrpc 2023-05-18 09:54:17 UTC
This issue has been addressed in the following products:

  Red Hat AMQ Streams 2.4.0

Via RHSA-2023:3223 https://access.redhat.com/errata/RHSA-2023:3223

Comment 6 errata-xmlrpc 2023-09-14 09:52:06 UTC
This issue has been addressed in the following products:

  Red Hat AMQ Streams 2.5.0

Via RHSA-2023:5165 https://access.redhat.com/errata/RHSA-2023:5165