{"id":"GHSA-45pr-7vv7-f64m","aliases":["RUSTSEC-2026-0318"],"status":"published","title":"Sending custom to-device messages may panics","description":"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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2026-09-29T12:00:00Z","modified":"2026-10-01T20:30:02Z","fixes":[{"ecosystem":"crates.io","package":"matrix-sdk-crypto","fixed_in":["0.19.0"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"crates.io","package":"matrix-sdk-crypto","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.19.0"}]}]}],"references":[{"url":"https://crates.io/crates/matrix-sdk-crypto","tags":["package"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0318.html","tags":["advisory"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk/pull/6670","tags":["web"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk/commit/01b45b51299821ab03fecf46741392780f118d49","tags":["web"]}],"sources":{"osv":[{"id":"RUSTSEC-2026-0318","title":"Sending custom to-device messages may panics","description":"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.","status":"published","published":"2026-09-29T12:00:00Z","modified":"2026-10-01T20:30:02.687839486Z","updated_at":"2026-11-02T15:53:40.430679Z"}]}}
