All vulnerabilities

crates.io

CVE-2026-77382

falcon-rust: Discrete-Gaussian sampler runs at 2^-33 precision, far below Falcon's requirement (reference KAT vectors no longer pass)

Severity
Medium 5.9
Published
20 Nov 2026
Last changed
20 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
0.2.0
Exploit chance
0.3% in the next 30 daysHigher than 19% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
CWE-1240
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Also known as
GHSA-25rm-9wvm-m38v
Sources
OSV.dev and GitHub

Description

Reporter: Connor Webber Package: falcon-rust (crates.io), repository github.com/aszepieniec/falcon-rust Affected: v0.1.3 and the current master (HEAD cfa1b35). Regression introduced in commit bf2cf00. Component: discrete-Gaussian sampler, src/samplerz.rs (approx_exp, ber_exp, sampler_z) Status: Confirmed by source review and by empirical measurement of the crate's own compiled code.

falcon-rust's discrete-Gaussian rejection sampler evaluates its exp() acceptance step at only 32 bits of fractional precision. Measured directly against the crate's own compiled code, approx_exp has a maximum relative error of 2^-33. For comparison, the Falcon reference implementation achieves about 2^-63, and the f64 code this crate replaced achieved about 2^-52. The current sampler is therefore roughly 2^19 (about 500,000x) less precise than the version it replaced, and about 2^30 less precise than the reference.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
falcon-rustcrates.io · osv:crates.io:falcon-rust
  • Every version before 0.2.0

About falcon-rust

Downloads in the last 90 days (crates.io)
3,699crates.io, 24 Nov 2026
Total downloads (crates.io)
24,596crates.io, 24 Nov 2026

This is the only vulnerability in falcon-rust in our list.

References