# CVE-2024-34353: matrix-sdk-crypto contains a log exposure of private key of the server-side key backup

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 5% of CVEs (2026-11-30)
- Published: 2024-05-13T15:43:10.574Z
- Modified: 2026-09-10T03:50:13.670Z
- Also known as: GHSA-9ggc-845v-gcgv
- Weaknesses: CWE-532
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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

(As written by CVE List.)

## Affected

- matrix-org matrix-sdk-crypto: = 0.7.0
- matrix-sdk-crypto (crates.io): from 0.7.0 before 0.7.1

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-9ggc-845v-gcgv> (web)
- <https://github.com/matrix-org/matrix-rust-sdk/commit/71136e44c03c79f80d6d1a2446673bc4d53a2067> (web)
- <https://github.com/matrix-org/matrix-rust-sdk/commit/fa10bbb5dd0f9120a51aa1854cec752e25790bb0> (web)
- <https://crates.io/crates/matrix-sdk-crypto/0.7.1>
- <https://github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-crypto-0.7.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-34353> (advisory)
- <https://github.com/matrix-org/matrix-rust-sdk> (package)

## Sources

- CVE List: [CVE-2024-34353](https://www.cve.org/CVERecord?id=CVE-2024-34353), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-9ggc-845v-gcgv](https://github.com/advisories/GHSA-9ggc-845v-gcgv), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-34353](https://nvd.nist.gov/vuln/detail/CVE-2024-34353), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-34353 · Whole record: https://cve.day/CVE-2024-34353.json · Rebuilt by cve.day 2026-11-25T22:58:40.177Z
