CVE-2024-58262 curve25519-dalek has timing variability in `curve25519-dalek`'s `Scalar29::sub`/`Scalar52::sub`
Attackers may exploit timing side-channels in elliptic curve operations due to compiler optimizations removing constant-time guarantees, potentially leaking secret keys.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-58262?
CVE-2024-58262 is a low-severity vulnerability in dalek-cryptography curve25519-dalek, published on 27 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
The curve25519-dalek crate before 4.1.3 for Rust has a constant-time operation on elliptic curve scalars that is removed by LLVM.
Weakness: CWE-733
Which versions are affected by CVE-2024-58262?
3 open source packages ship an affected version, including curve25519-dalek. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
curve25519-dalek crates.io | All versions | 4.1.3 |
curve25519-dalek crates.io | All versions | 4.1.3 |
curve25519-dalek crates.io | From 0.0.0-0 | 4.1.3 |
Products include Dalek Curve25519-Dalek.
How do I fix CVE-2024-58262?
Upgrade curve25519-dalek to 4.1.3 or later.
Is CVE-2024-58262 being exploited?
There is no known exploitation of CVE-2024-58262 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2024-58262, GHSA-x4gp-pqpj-f43q, RUSTSEC-2024-0344.