Rust advisories / crypto-bigint
VulnerabilityRUSTSEC-2026-0387 · crypto-bigint
RUSTSEC-2026-0387: Multiple timing variability issues in operations intended to be constant-time
Short answerA security vulnerability in the crypto-bigint crate: Multiple timing variability issues in operations intended to be constant-time. No severity score was published. Fixed in 0.7.6: update to a fixed version.
| Crate | crypto-bigint |
|---|---|
| Type | Vulnerability (crypto-failure) |
| Affected versions | Before 0.7.6. |
| Fixed in | 0.7.6 |
| Severity | not scored |
| Published | 2026-10-23 |
| Last changed | 2026-10-24 |
| Also known as | none |
What to do
- See which version you have:
cargo tree -i crypto-bigint(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p crypto-bigint. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplecrypto-bigint = "0.7.6") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
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.
References
- Package: crates.io/crates/crypto-bigint
- Advisory: rustsec.org/advisories/RUSTSEC-2026-0387.html
- Web: github.com/RustCrypto/crypto-bigint/pull/1365
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Same cratecrypto-bigint: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?