GHSA-q29p-9pfr-j652 Incorrect Output of Incremental Portable SHAKE API

Not scored Published

Incorrect output generation in the SHAKE XOF API when squeezing large amounts of data, potentially leading to invalid cryptographic results.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Not stated
Victim action needed
Not needed
Fix
Available

What is GHSA-q29p-9pfr-j652?

GHSA-q29p-9pfr-j652 is a vulnerability in libcrux-sha3, published on 4 Mar 2026.

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

Which versions are affected by GHSA-q29p-9pfr-j652?

3 open source packages ship an affected version, including libcrux-sha3.

PackageAffectedFixed in
libcrux-sha3 crates.ioAll versions0.0.8
libcrux-sha3 crates.ioAll versions0.0.8
libcrux-sha3 crates.ioFrom 0.0.0-00.0.8

How do I fix GHSA-q29p-9pfr-j652?

Upgrade libcrux-sha3 to 0.0.8 or later.

Is GHSA-q29p-9pfr-j652 being exploited?

There is no known exploitation of GHSA-q29p-9pfr-j652 in the wild and no public exploit code.

Sources

Also known as RUSTSEC-2026-0074.

Is GHSA-q29p-9pfr-j652 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free