GHSA-xrf2-5r3p-5wgj: libcrux: Panic in Signature Hint Decoding During Verification
During ML-DSA verification the serialized hint values are decoded as specified in algorithm 22 HintBitUnpack of FIPS 204, subsection 7.1. The algorithm requires that the cumulative hint counters per row of the hint vector are strictly increasing and below a maximum value which depends on the choice of ML-DSA parameter set (line 4).
Published Mar 26, 2026
Affected packages
libcrux-ml-dsa
- Ecosystem
- Rust (crates.io)
- Affected
- < 0.0.8
- Fixed in
- 0.0.8
- Check
cargo tree -i libcrux-ml-dsa
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
During ML-DSA verification the serialized hint values are decoded as specified in algorithm 22 HintBitUnpack of FIPS 204, subsection 7.1. The algorithm requires that the cumulative hint counters per row of the hint vector are strictly increasing and below a maximum value which depends on the choice of ML-DSA parameter set (line 4).
In libcrux-ml-dsa, hint decoding did not check the boundedness of the cumulative hint counter of the last row of the hint vector.
Impact
A manipulated invalid hint can cause an out-of-bounds memory access since the hint decoding logic may attempt to read outside the bounds of the serialized signature, causing a runtime panic.
Mitigation
Starting from version 0.0.8, hint decoding will check the cumulative hint counter of the last row as well.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Rust (crates.io) vulnerabilities
All Rust (crates.io) entriesGHSA-fhvh-vw7h-9xf3
libcrux-ml-dsa: Signature Verification on AVX2 Platforms Mishandles Edge Case
high8.2May 19, 2026GHSA-cp57-fq8g-qh6v
libcrux has an Incorrect Check of Signer Response Norm During Verification
high8.7Mar 26, 2026GHSA-2cgv-28vr-rv6j
libcrux incorrectly calculates on aarch64
high8.8Dec 4, 2025
