RUSTSEC-2026-0318 Sending custom to-device messages may panics
A panic occurs in the Rust encryption library when using IdentityBasedStrategy with recipients lacking cross-signing keys, causing denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is RUSTSEC-2026-0318?
RUSTSEC-2026-0318 is a denial of service vulnerability in matrix-sdk-crypto, published on 29 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
IdentityBasedStrategy setting when calling
Device::encrypt_event_raw or OlmMachine::encrypt_content_for_devices may
cause a panic if the recipient does not have cross-signing keys.Which versions are affected by RUSTSEC-2026-0318?
1 open source package ship an affected version, including matrix-sdk-crypto.
| Package | Affected | Fixed in |
|---|---|---|
matrix-sdk-crypto crates.io | From 0.0.0-0 | 0.19.0 |
How do I fix RUSTSEC-2026-0318?
Upgrade matrix-sdk-crypto to 0.19.0 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is RUSTSEC-2026-0318 being exploited?
There is no known exploitation of RUSTSEC-2026-0318 in the wild and no public exploit code.
Sources
Also known as GHSA-45pr-7vv7-f64m.