Skip to content

GHSA-pv9v-5j35-xwcr libcrux Panics During Standalone MAC Operations

HighCVSS 8.7
Published
Updated
Exploit status
No public exploit known

Description

An incorrect constant for the key length in libcrux-poly1305 caused the standalone MAC function libcrux_poly1305::mac to 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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
crates.io libcrux-poly1305(crates.io) < 0.0.5; >= 0.0.0-0, < 0.0.5 0.0.5 Fixed

Affected products

ProductAffected versionsFixed in
crates.io libcrux-poly1305(crates.io) < 0.0.5 0.0.5
crates.io libcrux-poly1305(crates.io) >= 0.0.0-0, < 0.0.5 0.0.5

References