# cmov (crates.io)

Conditional move CPU intrinsics which are guaranteed on major platforms (ARM32/ARM64, x86/x86_64,
RISC-V) to execute in constant-time and not be rewritten as branches by the compiler. Provides
wrappers for the CMOV family of instructions on x86/x86_64 and CSEL on AArch64, along with a
portable "best-effort" pure Rust fallback implementation.

- Latest: 0.5.4 (2026-05-28)
- Licence: Apache-2.0 OR MIT
- Downloads: 120400379 last 90 days
- Advisories on the latest version: 0

- CVE-2026-50185 MODERATE: Cmov/CmovEq on aarch64 can produce wrong results if high-bits of registers are set  Fixed in 0.5.4.
- CVE-2026-23519 HIGH: RustCrypto Utilities cmov: `thumbv6m-none-eabi` compiler emits non-constant time assembly when using `cmovnz` Fixed in 0.4.4.
- CVE-2026-23519 : Non-constant-time code generation on ARM32 targets Fixed in 0.4.4.

Sources: crates.io, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.
