{"id":"CVE-2022-39252","published":"2022-09-29T14:15:14Z","modified":"2025-04-23T16:54:05Z","title":"When matrix-rust-sdk recieves forwarded room keys, the reciever doesn't check if it requested the key from the forwarder","vendor":"matrix-org","product":"matrix-rust-sdk","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00684,"percentile":0.47739,"provenance":"source"},"cwes":[{"id":"CWE-322","name":"Key Exchange without Entity Authentication"},{"id":"CWE-287","name":"Improper Authentication"}],"references":[{"url":"https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-vp68-2wrm-69qm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk/commit/093fb5d0aa21c0b5eaea6ec96b477f1075271cbb","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk/commit/41449d2cc360e347f5d4e1c154ec1e3185f11acd","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-0.6.0","tags":["x_refsource_MISC"]}],"priority":{"score":15.6,"factors":[{"name":"EPSS percentile","points":9.55},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"matrix-org","affectedVersions":[{"vendor":"matrix-org","product":"matrix-rust-sdk","versions":["< 0.6"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-23T15:50:29.306523Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"matrix-sdk-crypto","vulnerableRanges":["<0.6.0",">=0.0.0-0, <0.6.0"],"patched":["0.6.0"],"from":["GHSA-vp68-2wrm-69qm","RUSTSEC-2022-0085"],"provenance":"source"}],"summary":{"text":"The matrix-rust-sdk library, specifically its matrix-sdk-crypto encryption component, fails to verify the origin of forwarded room keys: prior to version 0.6, a client accepts a forwarded room key without checking whether it had actually requested that key from the sender. An attacker who controls a homeserver can attempt to insert room keys of questionable validity, which can enable an impersonation attack, and this requires only network access to the target, with no authentication, no user interaction, and no special configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:06:41Z"},"euvd":{"id":"EUVD-2022-6950","exploited":false,"provenance":"source"}}