Advisory

GHSA-q29p-9pfr-j652

Also known as: RUSTSEC-2026-0074

Summary

libcrux-sha3: Incorrect output from SHAKE squeeze functions

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-03-26 17:59 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

libcrux-sha3

crates.io · All systems

Affected

  • introduced 0, fixed 0.0.8 (semver)

Fixed versions

0.0.8

Fix

  • Fixed version 0.0.8
    cargo update -p libcrux-sha3 --precise 0.0.8

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences