CVE-2022-39252: When matrix-rust-sdk recieves forwarded room keys, the reciever doesn't check if it requested the key from the forwarder
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 Software
Remediation
Event History
Frequently Asked Questions
What is CVE-2022-39252?
CVE-2022-39252 is a vulnerability in the matrix-rust-sdk and matrix-sdk-crypto libraries, prior to version 0.6, that allows an attacker to bypass encryption and obtain room keys.
How severe is CVE-2022-39252?
CVE-2022-39252 has a high severity rating with a CVSS score of 7.5.
Which software is affected by CVE-2022-39252?
The affected software is Matrix-rust-sdk version up to exclusive 0.6.
How can an attacker exploit CVE-2022-39252?
An attacker can exploit CVE-2022-39252 by requesting a room key and receiving a forwarded room key, bypassing encryption.
How can CVE-2022-39252 be fixed?
CVE-2022-39252 can be fixed by upgrading to version 0.6 or higher of the Matrix-rust-sdk library.