CVE-2026-45056: Matrix Rust SDK: Sender-binding gaps in to-device and room-key attribution
Impact The matrix-sdk-crypto crate before 0.16.1 is missing a check for the sender's user ID when decrypting an Olm-encrypted to-device message containing the senderdevicekeys property. This could be exploited to spoof the sender of an encrypted to-device message, but only if the attacker colludes with (or is) the homeserver operator. Patches This issue is fixed in matrix-sdk-crypto 0.16.1.
Published Jun 4, 2026
Affected packages
matrix-sdk-crypto
- Ecosystem
- Rust (crates.io)
- Affected
- >= 0.12.0, < 0.16.1
- Fixed in
- 0.16.1
- Check
cargo tree -i matrix-sdk-crypto
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
The matrix-sdk-crypto crate before 0.16.1 is missing a check for the sender's user ID when decrypting an Olm-encrypted to-device message containing the sender_device_keys property.
This could be exploited to spoof the sender of an encrypted to-device message, but only if the attacker colludes with (or is) the homeserver operator.
Patches
This issue is fixed in matrix-sdk-crypto 0.16.1.
Workarounds
There are no known workarounds for the issue.
References
This issue was fixed in https://github.com/matrix-org/matrix-rust-sdk/pull/6553.
For more information
If you have any questions or comments about this advisory, please email us at [security at matrix.org](mailto:[email protected]).
References
- https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-wfq4-36m3-9g42
- https://github.com/matrix-org/matrix-rust-sdk/pull/6553
- https://github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-0.16.1
- https://rustsec.org/advisories/RUSTSEC-2026-0159.html
- https://github.com/advisories/GHSA-wfq4-36m3-9g42
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Rust (crates.io) vulnerabilities
All Rust (crates.io) entriesCVE-2025-48937
matrix-sdk-crypto vulnerable to sender of encrypted events being spoofed by homeserver administrator
medium4.9Jun 10, 2025CVE-2024-52813
matrix-sdk-crypto missing facility to signal rotation of a verified cryptographic identity
medium4.3Jan 7, 2025CVE-2024-40648
matrix-sdk-crypto's `UserIdentity::is_verified` not checking verification status of own user identity while performing the check
medium4.8Jul 18, 2024CVE-2024-34353
matrix-sdk-crypto contains a log exposure of private key of the server-side key backup
medium5.5May 13, 2024
