8.6
CWE
287 322
Advisory Published
Updated

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

First published: Thu Sep 29 2022(Updated: )

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.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Matrix Matrix-rust-sdk<0.6

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2022-39252?

    CVE-2022-39252 is a vulnerability in the matrix-rust-sdk and matrix-sdk-crypto libraries, prior to version 0.6, that allows an attacker to bypass encryption and obtain room keys.

  • How severe is CVE-2022-39252?

    CVE-2022-39252 has a high severity rating with a CVSS score of 7.5.

  • Which software is affected by CVE-2022-39252?

    The affected software is Matrix-rust-sdk version up to exclusive 0.6.

  • How can an attacker exploit CVE-2022-39252?

    An attacker can exploit CVE-2022-39252 by requesting a room key and receiving a forwarded room key, bypassing encryption.

  • How can CVE-2022-39252 be fixed?

    CVE-2022-39252 can be fixed by upgrading to version 0.6 or higher of the Matrix-rust-sdk library.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203