Email me

Rust advisories / libcrux-sha3

VulnerabilityRUSTSEC-2026-0208 · libcrux-sha3

RUSTSEC-2026-0208: Potential Panic in AVX2 SHAKE-256

Short answerA security vulnerability in the libcrux-sha3 crate: Potential Panic in AVX2 SHAKE-256. No severity score was published. Fixed in 0.0.10: update to a fixed version.

Cratelibcrux-sha3
TypeVulnerability
Affected versionsBefore 0.0.10.
Fixed in0.0.10
Severitynot scored
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Published2026-05-21
Last changed2026-07-17
Also known asnone
Affected functionslibcrux_sha3::avx2::x4::shake256

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.10") 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 AVX2-optimized implementation of SHAKE-256 intended for use in ML-KEM and ML-DSA would panic if the length of the output buffers was greater than 32 and not a multiple of 8, due to an out-of-bounds indexing operation.

Impact

This bug impacts users on AVX2 platforms that use the libcrux_sha3::avx2::x4::shake256 API outside of ML-KEM or ML-DSA with output buffers of length > 32 and not divisible by 8. It does not impact the use in ML-KEM or ML-DSA because there output buffer lengths are always divisible by 8.

Mitigation

Starting from version 0.0.10, the AVX2-optimized SHAKE-256 will no longer panic on output buffer lengths > 32 that are not divisible by 8.

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