CVE-2022-39252
Rust vulnerability analysis and mitigation

Overview

CVE-2022-39252 is a vulnerability discovered in matrix-rust-sdk versions before 0.6.0, disclosed on September 29, 2022. The vulnerability exists in the key forwarding mechanism where the SDK fails to properly verify that forwarded room keys come from the requested device, allowing homeservers to potentially insert room keys of questionable validity (Matrix Advisory).

Technical details

The vulnerability stems from an insufficient verification process in the key forwarding mechanism. While the SDK correctly verifies that key forwards are responses to previous requests, it fails to validate whether the responding device matches the device from which the key was originally requested. The issue has been assigned a CVSS v3.1 base score of 2.7 (Low) with the vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N, indicating network vector attack with low complexity but requiring high privileges (Matrix Advisory).

Impact

The vulnerability could allow a malicious homeserver to inject room keys of questionable validity into the key store under specific circumstances. While this could potentially assist in an impersonation attack, the impact is mitigated by the fact that all forwarded keys are marked with an 'imported' flag, which indicates lesser authentication properties and is typically displayed to users with visual indicators such as a grey shield beside messages (Matrix Advisory).

Mitigation and workarounds

The vulnerability has been patched in matrix-sdk-crypto version 0.6.0. Users are advised to upgrade to this version or later to receive the fix. The patch implements proper verification of forwarded room keys to ensure they come from the requested device (Matrix Release).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22863CRITICAL9.2
  • RustRust
  • deno
NoYesJan 15, 2026
CVE-2026-23519HIGH8.9
  • RustRust
  • yazi
NoYesJan 15, 2026
RUSTSEC-2026-0003HIGH8.9
  • RustRust
  • cmov
NoYesJan 14, 2026
CVE-2026-22864HIGH8.1
  • RustRust
  • deno
NoYesJan 15, 2026
CVE-2026-22782LOW2.9
  • RustRust
  • rustfs
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management