# GHSA-q29p-9pfr-j652: libcrux-sha3: Incorrect output from SHAKE squeeze functions

- Severity: High (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-03-04T12:00:00.000Z
- Modified: 2026-09-10T03:50:40.460Z
- Also known as: RUSTSEC-2026-0074
- Weaknesses: CWE-682

## 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.

(As written by GitHub Advisory Database.)

## Affected

- libcrux-sha3 (crates.io): before 0.0.8; from 0.0.0-0 before 0.0.8

## References

- <https://github.com/cryspen/libcrux/pull/1352> (web)
- <https://github.com/cryspen/libcrux> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0074.html> (advisory, web)
- <https://crates.io/crates/libcrux-sha3> (package)

## Sources

- GitHub Advisory Database: [GHSA-q29p-9pfr-j652](https://github.com/advisories/GHSA-q29p-9pfr-j652), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2026-0074](https://rustsec.org/advisories/RUSTSEC-2026-0074.html), CC0-1.0, modified 2026-03-27

---

Page: https://cve.day/GHSA-q29p-9pfr-j652 · Whole record: https://cve.day/GHSA-q29p-9pfr-j652.json · Rebuilt by cve.day 2026-11-25T22:56:43.327Z
