{"id":"RUSTSEC-2026-0318","summary":"Sending custom to-device messages may panics","details":"Using the `IdentityBasedStrategy` setting when calling\n`Device::encrypt_event_raw` or `OlmMachine::encrypt_content_for_devices` may\ncause a panic if the recipient does not have cross-signing keys.","aliases":["GHSA-45pr-7vv7-f64m"],"modified":"2026-10-01T20:30:02.687839486Z","published":"2026-09-29T12: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-0318.html"},{"type":"WEB","url":"https://github.com/matrix-org/matrix-rust-sdk/pull/6670"},{"type":"WEB","url":"https://github.com/matrix-org/matrix-rust-sdk/commit/01b45b51299821ab03fecf46741392780f118d49"}],"affected":[{"package":{"name":"matrix-sdk-crypto","ecosystem":"crates.io","purl":"pkg:cargo/matrix-sdk-crypto"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.19.0"}]}],"ecosystem_specific":{"affects":{"arch":[],"os":[],"functions":["matrix_sdk_crypto::Device::encrypt_event_raw","matrix_sdk_crypto::OlmMachine::encrypt_content_for_devices"]},"affected_functions":null},"database_specific":{"categories":[],"cvss":null,"informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0318.json"}}],"schema_version":"1.9.0"}