libcrux Panics During Standalone MAC Operations
High severity
GitHub Reviewed
Published
Mar 26, 2026
to the GitHub Advisory Database
•
Updated Mar 26, 2026
Description
Published to the GitHub Advisory Database
Mar 26, 2026
Reviewed
Mar 26, 2026
Last updated
Mar 26, 2026
An incorrect constant for the key length in libcrux-poly1305 caused the standalone MAC function
libcrux_poly1305::macto always panic with an out-of-bounds memory access.Impact
Applications wishing to use libcrux-poly1305 as a standalone MAC would experience panics. The use of libcrux-poly1305 in libcrux-chacha20poly1305 is unaffected.
Mitigation
Starting from version
0.0.5, the correct value is used for the key length constant.References