{"id":"RUSTSEC-2026-0208","aliases":["RUSTSEC-2026-0208"],"related":[],"kind":"vulnerability","state":"published","title":"Potential Panic in AVX2 SHAKE-256","summary":"The AVX2-optimized implementation of SHAKE-256 intended for use in\nML-KEM and ML-DSA would panic if the length of the output buffers was\ngreater than 32 and not a multiple of 8, due to an out-of-bounds\nindexing operation.\n\n## Impact\nThis bug impacts users on AVX2 platforms that use the\n`libcrux_sha3::avx2::x4::shake256` API outside of ML-KEM or ML-DSA\nwith output buffers of length `> 32` and not divisible by `8`. It does\nnot impact the use in ML-KEM or ML-DSA because there output buffer\nlengths are always divisible by `8`.\n\n## Mitigation\nStarting from version `0.0.10`, the AVX2-optimized SHAKE-256 will no\nlonger panic on output buffer lengths `> 32` that are not divisible by\n`8`.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"The AVX2-optimized implementation of SHAKE-256 intended for use in\nML-KEM and ML-DSA would panic if the length of the output buffers was\ngreater than 32 and not a multiple of 8, due to an out-of-bounds\nindexing operation.\n\n## Impact\nThis bug impacts users on AVX2 platforms that use the\n`libcrux_sha3::avx2::x4::shake256` API outside of ML-KEM or ML-DSA\nwith output buffers of length `> 32` and not divisible by `8`. It does\nnot impact the use in ML-KEM or ML-DSA because there output buffer\nlengths are always divisible by `8`.\n\n## Mitigation\nStarting from version `0.0.10`, the AVX2-optimized SHAKE-256 will no\nlonger panic on output buffer lengths `> 32` that are not divisible by\n`8`.","format":"markdown","source":"rustsec"}],"published":"2026-05-21T12:00:00.000Z","modified":"2026-07-17T11:45:03.744Z","severities":[{"scorer":"RustSec Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.0.10"}],"ecosystem":"crates.io","package":"libcrux-sha3","purl":"pkg:cargo/libcrux-sha3","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/libcrux-sha3","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0208.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/celabshq/libcrux/pull/1456","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0208","url":"https://rustsec.org/advisories/RUSTSEC-2026-0208.html","licence":"CC0-1.0","modified":"2026-07-17T11:45:03.744Z"}],"updatedAt":"2026-11-25T22:56:43.382Z"}