{"id":"RUSTSEC-2026-0159","summary":"Sender-binding gaps in to-device messages","details":"The matrix-sdk-crypto crate before 0.16.1 is missing a check for the sender's\nuser ID when decrypting an Olm-encrypted to-device message containing the\nsender_device_keys property.\n\nThis could be exploited to spoof the sender of an encrypted to-device message,\nbut only if the attacker colludes with (or is) the homeserver operator.","aliases":["CVE-2026-45056","GHSA-wfq4-36m3-9g42"],"modified":"2026-06-04T12:15:04.150077089Z","published":"2026-06-03T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/matrix-sdk-crypto"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2026-0159.html"},{"type":"ADVISORY","url":"https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-wfq4-36m3-9g42"}],"affected":[{"package":{"name":"matrix-sdk-crypto","ecosystem":"crates.io","purl":"pkg:cargo/matrix-sdk-crypto"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.12.0"},{"fixed":"0.16.1"}]}],"ecosystem_specific":{"affects":{"functions":[],"arch":[],"os":[]},"affected_functions":null},"database_specific":{"categories":[],"cvss":null,"informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0159.json"}}],"schema_version":"1.7.5"}