Vulnerabilities · 2022 · Matrix
CVE-2022-39252
Matrix-rust-sdk vulnerability
matrix-rust-sdk is an implementation of a Matrix client-server library in Rust, and matrix-sdk-crypto is the Matrix encryption library. Prior to version 0.6, when a user requests a room key from their devices, the software correctly remembers the request. When the user receives a forwarded room key, the software accepts it without checking who the room key came from. This allows homeservers to try to insert room keys of questionable validity, potentially mounting an impersonation attack. Version 0.6 fixes this issue.
Affected products
Matrix-rust-sdk. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Matrix-rust-sdk runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/matrix-org/matrix-rust-sdk/commit/093fb5d0aa21c0b5eaea6ec96b477f1075271cbb · Patch
- github.com/matrix-org/matrix-rust-sdk/commit/41449d2cc360e347f5d4e1c154ec1e3185f11acd · Patch
- github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-0.6.0 · Third Party Advisory
- github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-vp68-2wrm-69qm · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2022-39252
- cve.org/CVERecord?id=CVE-2022-39252
More vulnerabilities in Matrix products
CVE-2025-30355CVE-2025-27146CVE-2024-53863CVE-2024-52815CVE-2024-52805CVE-2024-45193CVE-2024-45192CVE-2024-45191All 80
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.