Advisory

RUSTSEC-2026-0387

Also known as: None

Summary

Multiple timing variability issues in operations intended to be constant-time

Details

Summary

Several operations intended to be constant-time could execute secret-dependent
branches, depending on the compiler and target CPU. These include subtraction,
zero counting, division, and Montgomery multiplication.

Additionally, UintRef equality could terminate at the first unequal limb,
and BoxedMontyForm::invert branched on whether an inverse exists.

Impact

Applications using affected operations on secret integers may leak information
through timing or microarchitectural side channels. This includes information
about intermediate arithmetic values, matching limbs, and invertibility.

Such leakage could potentially enable recovery of cryptographic secrets.
Practical exploitability depends on the downstream algorithm, compiler, target
CPU, and an attacker's ability to observe the side channel.

Resolution

Upgrade to v0.7.6, which removes the identified branches, updates ctutils to
include its constant-time fixes, and adds BINSEC-based regression checks using
cargo checkct for arithmetic on multiple targets.

Severity

Not rated by the source.

Dates

Published
2026-10-23 12:00 UTC
Modified
2026-10-24 03:45 UTC

Affected packages and fixes

crypto-bigint

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.7.6 (semver)

Fixed versions

0.7.6

Fix

  • Fixed version 0.7.6
    cargo update -p crypto-bigint --precise 0.7.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC BY 4.0

This record names its own licence, CC BY 4.0, which differs from the source's (CC0-1.0).

Sources & licences