Rust advisories / libcrux-sha3
Vulnerability HighRUSTSEC-2026-0074 · libcrux-sha3
RUSTSEC-2026-0074: Incorrect Output of Incremental Portable SHAKE API
Short answerA security vulnerability in the libcrux-sha3 crate: Incorrect Output of Incremental Portable SHAKE API. GitHub rates it High. Fixed in 0.0.8: update to a fixed version.
| Crate | libcrux-sha3 |
|---|---|
| Type | Vulnerability |
| Affected versions | Before 0.0.8. |
| Fixed in | 0.0.8 |
| Severity | High (GitHub rating) |
| Published | 2026-03-04 |
| Last changed | 2026-03-27 |
| Also known as | GHSA-q29p-9pfr-j652 |
| Affected functions | libcrux_sha3::portable::incremental::Shake128Xof::squeeze, libcrux_sha3::portable::incremental::Shake256Xof::squeeze |
What to do
- See which version you have:
cargo tree -i libcrux-sha3(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p libcrux-sha3. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplelibcrux-sha3 = "0.0.8") 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
The incremental squeeze functions in the portable SHAKE XOF API, when attempting to squeeze more than RATE (168 for SHAKE128, 136 for SHAKE256) bytes, performed an additional permutation of the state before producing the first output block, thus discarding the first block of RATE bytes of valid XOF output.
Impact
This bug impacts users that rely on this XOF API to squeeze more than RATE bytes. It does not impact the use of libcrux-sha3 in libcrux-ml-kem or libcrux-ml-dsa.
Mitigation
Starting from version 0.0.8 the squeeze functions correctly output all blocks including the first block.
References
- Package: crates.io/crates/libcrux-sha3
- Advisory: rustsec.org/advisories/RUSTSEC-2026-0074.html
- Web: github.com/cryspen/libcrux/pull/1352
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Other advisories for libcrux-sha3
Up next
Same cratelibcrux-sha3: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?