CVE-2024-34353 matrix-sdk-crypto contains a log exposure of private key of the server-side key backup
An attacker with access to debug logs can read private keys for server-side key backups, compromising encrypted message security.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-34353?
CVE-2024-34353 is a medium-severity vulnerability in matrix-org matrix-sdk-crypto, published on 13 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-532
Which versions are affected by CVE-2024-34353?
2 open source packages ship an affected version, including matrix-sdk-crypto.
| Package | Affected | Fixed in |
|---|---|---|
matrix-sdk-crypto crates.io | From 0.7.0 | 0.7.1 |
matrix-sdk-crypto crates.io | From 0.7.0 | 0.7.1 |
How do I fix CVE-2024-34353?
Upgrade matrix-sdk-crypto to 0.7.1 or later.
Is CVE-2024-34353 being exploited?
There is no known exploitation of CVE-2024-34353 in the wild and no public exploit code.
Sources
Also known as GHSA-9ggc-845v-gcgv.