# CVE-2022-39252: When matrix-rust-sdk recieves forwarded room keys, the reciever doesn't check if it requested the key from the forwarder

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.6 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 0.6 (CNA); fix release not confirmed
- Status: published
- Published: 2022-09-29 · Modified: 2025-04-23
- Aliases: GHSA-vp68-2wrm-69qm, RUSTSEC-2022-0085
- Record: https://cvemate.com/vulnerability/CVE-2022-39252 · JSON: https://cvemate.com/vulnerability/CVE-2022-39252/json

## Description

```text
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.
```

## Signals

- CVSS: 8.6 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
- EPSS: 0.644%, percentile 52.322%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- Crates.Io matrix-sdk-crypto (Crates.Io): \< 0.6.0 \| ≥ 0.0.0-0, \< 0.6.0
- matrix-org matrix-rust-sdk: \< 0.6
- matrix matrix-rust-sdk: \< 0.6

## References

- <https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-vp68-2wrm-69qm>
- <https://github.com/matrix-org/matrix-rust-sdk/commit/093fb5d0aa21c0b5eaea6ec96b477f1075271cbb>
- <https://github.com/matrix-org/matrix-rust-sdk/commit/41449d2cc360e347f5d4e1c154ec1e3185f11acd>
- <https://github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-0.6.0>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-39252>
- <https://github.com/matrix-org/matrix-rust-sdk>
- <https://rustsec.org/advisories/RUSTSEC-2022-0085.html>
- <https://crates.io/crates/matrix-sdk-crypto>

---

Data as of 2026-12-05T05:32:06.114Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
