NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Rust (crates.io)

GHSA-hc3c-63hc-2r9f: libcrux: Potential Panic on Overlong Ciphertext Buffer

highCVSS 4.0 8.2

An application that passes in a ciphertext buffer of length greater than ptxt.len() + TAGLEN to libcruxchacha20poly1305::encrypt or libcruxchacha20poly1305::xchacha20poly1305::encrypt would experience a panic. Impact An application where the length of the ciphertext buffer is under attacker control could be made to crash.

Published May 19, 2026

Affected packages

libcrux-chacha20poly1305

Ecosystem
Rust (crates.io)
Affected
< 0.0.8
Fixed in
0.0.8
Check
cargo tree -i libcrux-chacha20poly1305

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

An application that passes in a ciphertext buffer of length greater than ptxt.len() + TAG_LEN to libcrux_chacha20poly1305::encrypt or libcrux_chacha20poly1305::xchacha20_poly1305::encrypt would experience a panic.

Impact

An application where the length of the ciphertext buffer is under attacker control could be made to crash.

Mitigation

The fix makes it so that libcrux_chacha20poly1305::encrypt and libcrux_chacha20poly1305::xchacha20_poly1305::encrypt no longer panic in this case, but instead write out the ciphertext and tag into the first ptxt.len() + TAG_LEN bytes of the provided buffer.

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