PT-2024-29903 · Unknown+1 · Matrix-Js-Sdk+1

Morguldir

·

Published

2024-08-20

·

Updated

2024-12-16

·

CVE-2024-42369

CVSS v3.1

5.3

Medium

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Name of the Vulnerable Software and Affected Versions matrix-js-sdk versions prior to 34.3.1
Description A malicious homeserver can craft a room or room structure such that the predecessors form a cycle. The 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.
Recommendations For versions prior to 34.3.1, update to version 34.3.1 to resolve the issue. As a temporary workaround, consider sanity checking rooms before passing them to the matrix-js-sdk or avoid calling either getRoomUpgradeHistory or leaveRoomChain.

Exploit

Fix

Uncontrolled Recursion

Weakness Enumeration

Related Identifiers

CVE-2024-42369
GHSA-VHR5-G3PM-49FM
OPENSUSE-SU-2024:14288-1
OPENSUSE-SU-2024:14289-1

Affected Products

Debian
Matrix-Js-Sdk