Security mailing lists by PureSourceCode

RUSTSEC-2026-0074

HIGH

libcrux-sha3: Incorrect output from SHAKE squeeze functions

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.

Published
4 Mar 2026
Last modified
10 Sep 2026
Weakness
CWE-682
Also known as
GHSA-q29p-9pfr-j652
Sources
OSV GHSA-q29p-9pfr-j652JSONOSVJSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 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

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io libcrux-sha3 < 0.0.8 0.0.8
OSV crates.io libcrux-sha3 >= 0.0.0-0, < 0.0.8 0.0.8

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 4 Mar 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 26 Mar 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.