Vulnerability · Published Aug 20, 2024 · Assigned by GitHub_M

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

Medium 4.1

In plain English

A medium-severity security flaw in matrix-js-sdk from matrix-org. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.1Medium
Exploit odds (30 days)0.5%top 58.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Ubuntu:22.04:LTSnode-matrix-js-sdkno fix listedUBUNTU-CVE-2024-42369
Ubuntu:24.04:LTSnode-matrix-js-sdkno fix listedUBUNTU-CVE-2024-42369
npmmatrix-js-sdk34.3.1GHSA-vhr5-g3pm-49fm

Affected products (as reported)

VendorProductVersions
matrix-org matrix-js-sdk < 34.3.1

Weakness: CWE-674 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L

References