CVE-2022-39252
HIGH 7.5CVSS 3.1matrix-sdk-crypto contains potential impersonation via room key forward responses
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.
- Published
- 29 Sep 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-287
- Also known as
- GHSA-vp68-2wrm-69qmRUSTSEC-2022-0085
- Sources
- NVDJSONOSV GHSA-vp68-2wrm-69qmJSONOSV RUSTSEC-2022-0085JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | RustSec | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | matrix | matrix-rust-sdkcpe:2.3:a:matrix:matrix-rust-sdk:*:*:*:*:*:*:*:* |
< 0.6 | 0.6 |
| OSV | crates.io | matrix-sdk-crypto | < 0.6.0 | 0.6.0 |
| OSV | crates.io | matrix-sdk-crypto | >= 0.0.0-0, < 0.6.0 | 0.6.0 |
References
- https://github.com/matrix-org/matrix-rust-sdk/commit/093fb5d0aa21c0b5eaea6ec96b477f1075271cbb · Patch, Third Party Advisory, WEB
- https://github.com/matrix-org/matrix-rust-sdk/commit/41449d2cc360e347f5d4e1c154ec1e3185f11acd · Patch, Third Party Advisory, WEB
- https://github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-0.6.0 · Release Notes, Third Party Advisory, WEB
- https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-vp68-2wrm-69qm · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-39252 · ADVISORY
- https://github.com/matrix-org/matrix-rust-sdk · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2022-0085.html · WEB, ADVISORY
- https://crates.io/crates/matrix-sdk-crypto · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 29 Sep 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 29 Sep 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 30 Sep 2022)