CVE-2022-39252 When matrix-rust-sdk recieves forwarded room keys, the reciever doesn't check if it requested the key from the forwarder
HighCVSS 7.5
EPSS 0.63%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
Description
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io matrix-sdk-crypto(crates.io) | < 0.6.0; >= 0.0.0-0, < 0.6.0 | 0.6.0 | Fixed |
| matrix-rust-sdk | < 0.6 | 0.6 | Fixed |
| matrix-org matrix-rust-sdk | = < 0.6 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io matrix-sdk-crypto(crates.io) | < 0.6.0 | 0.6.0 |
| crates.io matrix-sdk-crypto(crates.io) | >= 0.0.0-0, < 0.6.0 | 0.6.0 |
| matrix-org matrix-rust-sdk | = < 0.6 | No fix listed |
| matrix-rust-sdk | < 0.6 | 0.6 |
References
- github.com third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- github.com patch third-party-advisory
- github.com release-notes third-party-advisory
- rustsec.org vendor-advisory
- github.com
- github.com product
- crates.io product