CVE-2022-39252Matrix-rust-sdk
High 7.5 No auth needed
Follow: this CVE · Matrix · Matrix-rust-sdk We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 48
- Auth required
- No
- Published
- Sep 29, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Matrix-rust-sdk.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | matrix-sdk-crypto |
< 0.6.0 |
0.6.0 |
cargo update -p matrix-sdk-crypto --precise 0.6.0 |
| crates.io | matrix-sdk-crypto |
≥ 0.0.0-0 < 0.6.0 |
0.6.0 |
cargo update -p matrix-sdk-crypto --precise 0.6.0 |
Per OSV / GitHub Advisories (GHSA-vp68-2wrm-69qm, RUSTSEC-2022-0085). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| matrix | matrix-rust-sdk | < 0.6 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Third Party Advisory