Live threats

All CVEs / Matrix

CVE-2022-39252Matrix-rust-sdk

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
0.7%
probability of exploitation in 30 days · percentile 48
Auth required
No
Published
Sep 29, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-287, CWE-322
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Matrix-rust-sdk.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io matrix-sdk-crypto < 0.6.0 0.6.0 cargo update -p matrix-sdk-crypto --precise 0.6.0
crates.io matrix-sdk-crypto ≥ 0.0.0-0 < 0.6.0 0.6.0 cargo update -p matrix-sdk-crypto --precise 0.6.0

Per OSV / GitHub Advisories (GHSA-vp68-2wrm-69qm, RUSTSEC-2022-0085). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
matrixmatrix-rust-sdk< 0.6

Official sources

References

Links published by the sources. Open them with care.