CVE-2024-42369 MEDIUM

CVE-2024-42369: A room with itself as a its predecessor will freeze matrix-js-sdk

Vendor Matrix-Org
Product matrix-js-sdk
Weakness CWE-674
Published August 20, 2024
Last update September 3, 2024

CVSS base score

4.1/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction Required
Confidentiality None
Integrity None

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L

What the vulnerability does

01Description

matrix-js-sdk is a Matrix messaging protocol Client-Server SDK for JavaScript. A malicious homeserver can craft a room or room structure such that the predecessors form a cycle. The matrix-js-sdk's getRoomUpgradeHistory function will infinitely recurse in this case, causing the code to hang. This method is public but also called by the 'leaveRoomChain()' method, so leaving a room will also trigger the bug. This was patched in matrix-js-sdk 34.3.1.

Key dates

02Disclosure timeline

August 20, 2024 CVE published
September 3, 2024 Record updated