Advisory

RUSTSEC-2026-0159

Also known as: CVE-2026-45056, GHSA-wfq4-36m3-9g42

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
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.

Severity

Not rated by the source.

Dates

Published
2026-06-03 12:00 UTC
Modified
2026-10-12 18:00 UTC

Affected packages and fixes

matrix-sdk-crypto

crates.io · All systems

Affected

  • introduced 0.12.0, fixed 0.16.1 (semver)

Fixed versions

0.16.1

Fix

  • Fixed version 0.16.1
    cargo update -p matrix-sdk-crypto --precise 0.16.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences