{"id":"CVE-2024-34353","published":"2024-05-13T15:43:10Z","modified":"2024-08-02T02:51:10Z","title":"matrix-sdk-crypto contains a log exposure of private key of the server-side key backup","vendor":"matrix-org","product":"matrix-sdk-crypto","tier":"tail","description":{"text":"The matrix-sdk-crypto crate, part of the Matrix Rust SDK project, is an implementation of a Matrix end-to-end encryption state machine in Rust. In Matrix, the server-side `key backup` stores encrypted copies of Matrix message keys. This facilitates key sharing between a user's devices and provides a redundant copy in case all devices are lost. The key backup uses asymmetric\ncryptography, with each server-side key backup assigned a unique public-private key pair. Due to a logic bug introduced in commit 71136e44c03c79f80d6d1a2446673bc4d53a2067, matrix-sdk-crypto version 0.7.0 will sometimes log the private part of the backup key pair to Rust debug logs (using the `tracing` crate). This issue has been resolved in matrix-sdk-crypto version 0.7.1. No known workarounds are available.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00187,"percentile":0.04828,"provenance":"source"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"references":[{"url":"https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-9ggc-845v-gcgv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk/commit/71136e44c03c79f80d6d1a2446673bc4d53a2067","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk/commit/fa10bbb5dd0f9120a51aa1854cec752e25790bb0","tags":["x_refsource_MISC"]},{"url":"https://crates.io/crates/matrix-sdk-crypto/0.7.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-crypto-0.7.1","tags":["x_refsource_MISC"]}],"priority":{"score":4.8,"factors":[{"name":"EPSS percentile","points":0.97},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"matrix-org","affectedVersions":[{"vendor":"matrix-org","product":"matrix-sdk-crypto","versions":["= 0.7.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-05T16:09:35.013317Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"matrix-sdk-crypto","vulnerableRanges":[">=0.7.0, <0.7.1"],"patched":["0.7.1"],"from":["GHSA-9ggc-845v-gcgv"],"provenance":"source"}],"summary":{"text":"The matrix-sdk-crypto crate, part of the Matrix Rust SDK, has a logic bug in which the private part of the server-side key backup key pair can be written to Rust debug logs via the tracing crate. An attacker who can read those debug logs, which requires local access with low privileges and no user interaction, can obtain the private backup key.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:52Z"},"euvd":{"id":"EUVD-2024-1554","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-matrix-org-matrix-sdk-crypto-cve-2024-34353","children":[{"from":"CVE-2024-34353","to":"CVE-2024-40648","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:matrix-sdk-crypto","fromFixed":"0.7.1","toFixed":"0.7.2","daysApart":66},{"kind":"same-code","provenance":"machine","files":["crates/matrix-sdk-crypto/src/machine.rs"],"commits":["https://github.com/matrix-org/matrix-rust-sdk/commit/71136e44c03c79f80d6d1a2446673bc4d53a2067","https://github.com/matrix-org/matrix-rust-sdk/commit/fa10bbb5dd0f9120a51aa1854cec752e25790bb0","https://github.com/matrix-org/matrix-rust-sdk/commit/76a7052149bb8f722df12da915b3a06d19a6695a"],"basis":"shared function","functions":["pub"]}]}],"packageHistory":[{"cve":"CVE-2022-39252","published":"2022-09-29","fixed":"0.6.0","kev":false},{"cve":"CVE-2024-34353","published":"2024-05-13","fixed":"0.7.1","kev":false},{"cve":"CVE-2024-40648","published":"2024-07-18","fixed":"0.7.2","kev":false},{"cve":"CVE-2024-52813","published":"2025-01-07","fixed":"0.8.0","kev":false},{"cve":"CVE-2025-48937","published":"2025-06-10","fixed":"0.11.1","kev":false}],"package":"crates.io:matrix-sdk-crypto"}}