{"id":"CVE-2026-45056","aliases":["CVE-2026-45056","GHSA-wfq4-36m3-9g42","RUSTSEC-2026-0159"],"related":[],"kind":"vulnerability","state":"published","title":"Matrix Rust SDK: Sender-binding gaps in to-device and room-key attribution","summary":"matrix-sdk-crypto is a no-network-IO implementation of a state machine that handles end-to-end encryption for Matrix clients. Starting in version 0.12.0 and prior to version 0.17.0, the matrix-sdk-crypto crate was missing a check for the user ID when decrypting an Olm-encrypted event containing the `sender_device_keys` property. This could be exploited to forge an encrypted to-device event, but only if the attacker colludes with the homeserver operator. This issue is fixed in matrix-sdk-crypto 0.17.0. There are no known workarounds for the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"matrix-sdk-crypto is a no-network-IO implementation of a state machine that handles end-to-end encryption for Matrix clients. Starting in version 0.12.0 and prior to version 0.17.0, the matrix-sdk-crypto crate was missing a check for the user ID when decrypting an Olm-encrypted event containing the `sender_device_keys` property. This could be exploited to forge an encrypted to-device event, but only if the attacker colludes with the homeserver operator. This issue is fixed in matrix-sdk-crypto 0.17.0. There are no known workarounds for the issue.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe `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.\n\nThis 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.\n\n### Patches\n\nThis issue is fixed in `matrix-sdk-crypto` 0.16.1.\n\n### Workarounds\n\nThere are no known workarounds for the issue.\n\n### References\n\nThis issue was fixed in https://github.com/matrix-org/matrix-rust-sdk/pull/6553.\n\n### For more information\n\nIf you have any questions or comments about this advisory, please email us at [security at matrix.org](mailto:security@matrix.org).","format":"markdown","source":"ghsa"},{"lang":"en","text":"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.","format":"markdown","source":"rustsec"}],"published":"2026-06-03T12:00:00.000Z","modified":"2026-10-12T18:00:09.240Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-290"],"affected":[{"ranges":[{"version":">= 0.12.0, < 0.16.1","status":"affected"}],"vendor":"matrix-org","product":"matrix-rust-sdk","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.12.0","status":"affected","fixed":"0.16.1"}],"ecosystem":"crates.io","package":"matrix-sdk-crypto","purl":"pkg:cargo/matrix-sdk-crypto","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.12.0","status":"affected","fixed":"0.16.1"}],"ecosystem":"crates.io","package":"matrix-sdk-crypto","purl":"pkg:cargo/matrix-sdk-crypto","source":"rustsec"}],"references":[{"url":"https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-wfq4-36m3-9g42","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk/pull/6553","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-0.16.1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0159.html","tags":["advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/matrix-sdk-crypto","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-14T16:14:48.205Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45056","url":"https://www.cve.org/CVERecord?id=CVE-2026-45056","licence":"CVE Terms of Use","modified":"2026-09-14T18:17:31.910Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wfq4-36m3-9g42","url":"https://github.com/advisories/GHSA-wfq4-36m3-9g42","licence":"CC-BY-4.0","modified":"2026-06-04T15:00:08.092Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0159","url":"https://rustsec.org/advisories/RUSTSEC-2026-0159.html","licence":"CC0-1.0","modified":"2026-10-12T18:00:09.240Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45056","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45056","licence":"Public domain","modified":"2026-09-30T19:57:08.043Z"}],"updatedAt":"2026-11-25T22:59:38.151Z","epss":{"score":0.00234,"percentile":0.15392,"date":"2026-12-01T12:00:22.000Z"}}