# GHSA-Q29P-9PFR-J652: libcrux-sha3: Incorrect output from SHAKE squeeze functions

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2026-03-26
- Modified: 2026-09-10

## Also published as

- [RUSTSEC-2026-0074](https://cve.now/RUSTSEC-2026-0074.md) (RustSec)

## Affected versions

- libcrux-sha3 (crates.io): fixed in 0.0.8

## Description

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

- https://github.com/cryspen/libcrux/pull/1352
- https://github.com/cryspen/libcrux
- https://rustsec.org/advisories/RUSTSEC-2026-0074.html

Page: https://cve.now/GHSA-Q29P-9PFR-J652

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
