CVE-2024-47080

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-47080
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-47080.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-47080
Aliases
Downstream
Published
2024-10-15T14:53:01.752Z
Modified
2025-12-05T06:32:37.966053Z
Severity
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
matrix-js-sdk keys sent via `sendSharedHistoryKeys` vulnerable to interception by malicious homeserver
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-200",
        "CWE-287"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47080.json"
}
References

Affected packages

Git / github.com/matrix-org/matrix-js-sdk

Affected ranges

Type
GIT
Repo
https://github.com/matrix-org/matrix-js-sdk
Events

Affected versions

Other

no-media-devices-release

v10.*

v10.0.0
v10.0.0-rc.1
v10.1.0
v10.1.0-rc.1

v11.*

v11.0.0
v11.0.0-rc.1
v11.1.0
v11.1.0-rc.1
v11.2.0
v11.2.0-rc.1

v12.*

v12.0.0
v12.0.0-rc.1
v12.0.1
v12.0.1-rc.1
v12.1.0
v12.1.0-rc.1
v12.2.0
v12.2.0-rc.1
v12.3.0
v12.3.0-rc.1
v12.3.0-rc.2
v12.3.1
v12.4.0
v12.4.0-rc.1
v12.4.1
v12.5.0
v12.5.0-rc.1

v13.*

v13.0.0
v13.0.0-rc.1

v14.*

v14.0.0
v14.0.0-rc.1
v14.0.0-rc.2
v14.0.1

v15.*

v15.0.0
v15.0.0-rc.1
v15.1.0
v15.1.0-rc.1
v15.1.1
v15.1.1-rc.1
v15.2.0
v15.2.0-rc.1
v15.2.1
v15.3.0
v15.3.0-rc.1
v15.4.0
v15.4.0-rc.1
v15.5.0
v15.5.0-rc.1
v15.5.1
v15.5.1-rc.1
v15.5.2
v15.6.0
v15.6.0-rc.1

v16.*

v16.0.0
v16.0.0-rc.1
v16.0.1
v16.0.1-rc.1
v16.0.2-rc.1

v17.*

v17.0.0
v17.0.0-rc.1
v17.0.0-rc.2
v17.0.0-rc.3
v17.1.0
v17.1.0-rc.1
v17.2.0
v17.2.0-rc.1

v18.*

v18.0.0
v18.0.0-rc.1
v18.0.0-rc.2
v18.1.0
v18.1.0-rc.1

v19.*

v19.0.0
v19.0.0-rc.1
v19.1.0
v19.1.0-rc.1
v19.2.0
v19.2.0-rc.1
v19.3.0
v19.3.0-rc.1
v19.3.0-rc.2
v19.4.0
v19.4.0-rc.1
v19.5.0
v19.5.0-rc.1
v19.5.0-rc.2
v19.5.0-rc.3
v19.5.0-rc.4
v19.6.0
v19.6.0-rc.1
v19.7.0

v20.*

v20.0.0
v20.0.1
v20.0.2
v20.1.0
v20.1.0-rc.1
v20.1.0-rc.2

v21.*

v21.0.0
v21.0.0-rc.1
v21.0.0-rc.2
v21.0.1
v21.1.0
v21.1.0-rc.1
v21.2.0
v21.2.0-rc.1

v22.*

v22.0.0
v22.0.0-rc.1
v22.0.0-rc.2

v23.*

v23.0.0
v23.0.0-rc.1
v23.1.0
v23.1.0-rc.1
v23.1.0-rc.2
v23.1.0-rc.3
v23.1.0-rc.4
v23.1.1
v23.2.0
v23.2.0-rc.1
v23.3.0
v23.3.0-rc.1
v23.4.0
v23.4.0-rc.1
v23.4.0-rc.2
v23.5.0
v23.5.0-rc.1

v24.*

v24.0.0
v24.1.0
v24.1.0-rc.1

v25.*

v25.0.0
v25.0.0-rc.1
v25.1.0
v25.1.0-rc.1
v25.1.1
v25.2.0-rc.1
v25.2.0-rc.2
v25.2.0-rc.4
v25.2.0-rc.5

v26.*

v26.0.0
v26.0.0-rc.1
v26.0.1
v26.1.0
v26.1.0-patch.1
v26.1.0-rc1
v26.2.0
v26.2.0-no-media-devices-hotfix
v26.2.0-rc.1

v27.*

v27.0.0
v27.0.0-rc.1
v27.0.0-rc.2
v27.1.0
v27.1.0-rc.1
v27.2.0
v27.2.0-rc.1
v27.3.0-rc.1

v28.*

v28.0.0
v28.0.0-rc.1
v28.1.0
v28.1.0-rc.1
v28.2.0
v28.2.0-rc.1

v29.*

v29.0.0
v29.0.0-rc.1
v29.1.0
v29.1.0-rc.1

v3.*

v3.42.2-rc.3

v30.*

v30.0.0
v30.0.0-rc.1
v30.0.1
v30.1.0
v30.1.0-rc.0
v30.1.0-rc.1
v30.2.0
v30.2.0-rc.0
v30.3.0
v30.3.0-rc.0

v31.*

v31.0.0
v31.0.0-rc.0
v31.1.0
v31.2.0
v31.2.0-rc.0
v31.3.0
v31.3.0-rc.0
v31.3.0-rc.1
v31.3.0-rc.2
v31.3.0-rc.3
v31.3.0-rc.4
v31.4.0
v31.4.0-rc.0
v31.5.0
v31.5.0-rc.0
v31.6.0
v31.6.0-rc.0
v31.6.1

v32.*

v32.0.0
v32.0.0-rc.0
v32.1.0
v32.1.0-rc.0
v32.2.0
v32.2.0-rc.0
v32.3.0
v32.3.0-rc.0
v32.4.0

v33.*

v33.0.0
v33.0.0-rc.0
v33.1.0
v33.1.0-rc.0
v33.1.0-rc.1

v34.*

v34.0.0
v34.0.0-rc.0
v34.0.0-rc.1
v34.1.0
v34.1.0-rc.0
v34.1.0-rc.1
v34.1.0-rc.2
v34.1.0-rc.3
v34.2.0
v34.2.0-rc.0
v34.3.0
v34.3.0-rc.0
v34.3.0-rc.1
v34.3.1
v34.4.0
v34.4.0-rc.0
v34.4.0-rc.1
v34.5.0
v34.5.0-rc.0
v34.6.0
v34.6.0-rc.0
v34.7.0
v34.7.0-rc.0

v9.*

v9.11.0