{"id":"GHSA-q29p-9pfr-j652","aliases":["GHSA-q29p-9pfr-j652","RUSTSEC-2026-0074"],"related":[],"kind":"vulnerability","state":"published","title":"libcrux-sha3: Incorrect output from SHAKE squeeze functions","summary":"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.\n\n## Impact\nThis 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.\n\n## Mitigation\nStarting from version `0.0.8` the squeeze functions correctly output all blocks including the first block.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.\n\n## Impact\nThis 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.\n\n## Mitigation\nStarting from version `0.0.8` the squeeze functions correctly output all blocks including the first block.","format":"markdown","source":"ghsa"}],"published":"2026-03-04T12:00:00.000Z","modified":"2026-09-10T03:50:40.460Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"}],"cwes":["CWE-682"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.8"}],"ecosystem":"crates.io","package":"libcrux-sha3","purl":"pkg:cargo/libcrux-sha3","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.0.8"}],"ecosystem":"crates.io","package":"libcrux-sha3","purl":"pkg:cargo/libcrux-sha3","source":"rustsec"}],"references":[{"url":"https://github.com/cryspen/libcrux/pull/1352","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/cryspen/libcrux","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0074.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/libcrux-sha3","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q29p-9pfr-j652","url":"https://github.com/advisories/GHSA-q29p-9pfr-j652","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:40.460Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0074","url":"https://rustsec.org/advisories/RUSTSEC-2026-0074.html","licence":"CC0-1.0","modified":"2026-03-27T05:55:06.000Z"}],"updatedAt":"2026-11-25T22:56:43.327Z"}