8.7

CVE-2024-47080: matrix-org matrix-js-sdk

CVSS: 8.7v4.0HighDeferred
AliasesUBUNTU-CVE-2024-47080DEBIAN-CVE-2024-47080GHSA-4jf8-g8wp-cx7c
Published 15-10-2024Last modified 15-10-2024

Vulnerability summary

CVE-2024-47080 is a high (CVSS 8.7) vulnerability in matrix-org matrix-js-sdk. EPSS estimates a 0.68% chance of exploitation in the next 30 days, higher than 51.4% of scored vulnerabilities.

Overall risk
35/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.7/10
010
High · v4.0 (CVE.org)
EPSS score
0.68%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 15-10-2024
    PublishedVulnerability first disclosed.
  2. 15-10-2024
    Last modifiedVulnerability information updated.

Description

matrix-js-sdk is the Matrix Client-Server SDK for JavaScript and TypeScript. In matrix-js-sdk versions versions 9.11.0 through 34.7.0, the method `MatrixClient.sendSharedHistoryKeys` is vulnerable to interception by malicious homeservers. The method was introduced by MSC3061) and is commonly used to share historical message keys with newly invited users, granting them access to past messages in the room. However, it unconditionally sends these "shared" keys to all of the invited user's devices, regardless of whether the user's cryptographic identity is verified or whether the user's devices are signed by that identity. This allows the attacker to potentially inject its own devices to receive sensitive historical keys without proper security checks. Note that this only affects clients running the SDK with the legacy crypto stack. Clients using the new Rust cryptography stack (i.e. those that call `MatrixClient.initRustCrypto()` instead of `MatrixClient.initCrypto()`) are unaffected by this vulnerability, because `MatrixClient.sendSharedHistoryKeys()` raises an exception in such environments. The vulnerability was fixed in matrix-js-sdk 34.8.0 by removing the vulnerable functionality. As a workaround, remove use of affected functionality from clients.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.68%

Chance of exploitation in the next 30 days

Percentile

51%

Versus all other CVEs

30-day change

0.00 pp

From 0.68% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.68%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Debian1 product
  • node-matrix-js-sdkAll versions (No fix recorded)
Matrix-org1 product
Npm1 product
  • matrix-js-sdk≥ 9.11.0, < 34.8.0
Ubuntu1 product
  • node-matrix-js-sdkAll versions (No fix recorded)

4 vendors · 4 products

References

8 links