Bug 2129809 (CVE-2022-36944) - CVE-2022-36944 scala: deserialization gadget chain
Summary: CVE-2022-36944 scala: deserialization gadget chain
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2022-36944
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2129810
Blocks: 2203255
TreeView+ depends on / blocked
 
Reported: 2022-09-26 10:23 UTC by Avinash Hanwate
Modified: 2023-09-14 09:52 UTC (History)
35 users (show)

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.
Clone Of:
Environment:
Last Closed: 2022-11-28 03:25:23 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:3223 0 None None None 2023-05-18 09:54:20 UTC
Red Hat Product Errata RHSA-2023:5165 0 None None None 2023-09-14 09:52:08 UTC

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


Note You need to log in before you can comment on or make changes to this bug.