Advisory

GHSA-pv9v-5j35-xwcr

Also known as: RUSTSEC-2026-0073

Summary

libcrux Panics During Standalone MAC Operations

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-03-26 18:00 UTC
Modified
2026-03-27 06:11 UTC

Affected packages and fixes

libcrux-poly1305

crates.io · All systems

Affected

  • introduced 0, fixed 0.0.5 (semver)

Fixed versions

0.0.5

Fix

  • Fixed version 0.0.5
    cargo update -p libcrux-poly1305 --precise 0.0.5

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences