CVE-2024-42369

A room with itself as a its predecessor will freeze matrix-js-sdk

Description

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.

Category

4.1
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.02%
Vendor Advisory github.com
Affected: matrix-org matrix-js-sdk
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-42369?
CVE-2024-42369 has been scored as a medium severity vulnerability.
How to fix CVE-2024-42369?
To fix CVE-2024-42369, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-42369 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2024-42369 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-42369?
CVE-2024-42369 affects matrix-org matrix-js-sdk.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.