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

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 52% of CVEs (2026-12-01)
- Published: 2022-09-29T12:00:00.000Z
- Modified: 2026-06-17T04:58:00.110Z
- Also known as: GHSA-vp68-2wrm-69qm, RUSTSEC-2022-0085
- Weaknesses: CWE-287, CWE-322
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- matrix-org matrix-rust-sdk: < 0.6
- matrix-sdk-crypto (crates.io): before 0.6.0; from 0.0.0-0 before 0.6.0
- matrix matrix-rust-sdk: before 0.6

## Every score

- GitHub_M: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- RustSec Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-vp68-2wrm-69qm> (third-party-advisory, web)
- <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://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> (advisory, web)
- <https://crates.io/crates/matrix-sdk-crypto> (package)

## Sources

- CVE List: [CVE-2022-39252](https://www.cve.org/CVERecord?id=CVE-2022-39252), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-vp68-2wrm-69qm](https://github.com/advisories/GHSA-vp68-2wrm-69qm), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2022-0085](https://rustsec.org/advisories/RUSTSEC-2022-0085.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2022-39252](https://nvd.nist.gov/vuln/detail/CVE-2022-39252), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-39252 · Whole record: https://cve.day/CVE-2022-39252.json · Rebuilt by cve.day 2026-11-25T22:58:15.372Z
