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

- Severity: High (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-03-04T12:00:00.000Z
- Modified: 2026-03-27T06:11:21.406Z
- Also known as: RUSTSEC-2026-0073
- Weaknesses: CWE-125, CWE-805

## 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.

(As written by GitHub Advisory Database.)

## Affected

- libcrux-poly1305 (crates.io): before 0.0.5; from 0.0.0-0 before 0.0.5

## Every score

- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- RustSec Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/cryspen/libcrux/pull/1351> (web)
- <https://github.com/cryspen/libcrux> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0073.html> (advisory, web)
- <https://crates.io/crates/libcrux-poly1305> (package)

## Sources

- GitHub Advisory Database: [GHSA-pv9v-5j35-xwcr](https://github.com/advisories/GHSA-pv9v-5j35-xwcr), CC-BY-4.0, modified 2026-03-27
- RustSec Advisory Database: [RUSTSEC-2026-0073](https://rustsec.org/advisories/RUSTSEC-2026-0073.html), CC0-1.0, modified 2026-03-27

---

Page: https://cve.day/GHSA-pv9v-5j35-xwcr · Whole record: https://cve.day/GHSA-pv9v-5j35-xwcr.json · Rebuilt by cve.day 2026-11-25T22:56:43.327Z
