CVE Vulnerabilities

CVE-2024-58262

Compiler Optimization Removal or Modification of Security-critical Code

Published: Jul 27, 2025 | Modified: Aug 07, 2025
CVSS 3.x
5.1
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS 2.x
RedHat/V2
RedHat/V3
2.9 LOW
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Ubuntu
MEDIUM

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

The developer builds a security-critical protection mechanism into the software, but the compiler optimizes the program such that the mechanism is removed or modified.

Affected Software

Name Vendor Start Version End Version
Curve25519-dalek Dalek * 4.1.3 (excluding)
Rust-curve25519-dalek Ubuntu upstream *

References