Email me

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.

Cratelibcrux-sha3
TypeVulnerability
Affected versionsBefore 0.0.8.
Fixed in0.0.8
SeverityHigh (GitHub rating)
Published2026-03-04
Last changed2026-03-27
Also known asGHSA-q29p-9pfr-j652
Affected functionslibcrux_sha3::portable::incremental::Shake128Xof::squeeze, libcrux_sha3::portable::incremental::Shake256Xof::squeeze

What to do

  1. See which version you have: cargo tree -i libcrux-sha3 (it also shows which of your dependencies pulls it in).
  2. 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 example libcrux-sha3 = "0.0.8") or update the dependency that pulls it in.
  3. 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

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

Full security history of 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?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ