highVulnerability

GHSA-hc3c-63hc-2r9f

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.

Properties

ghsa_id
GHSA-hc3c-63hc-2r9f
summary
libcrux: Potential Panic on Overlong Ciphertext Buffer
severity
high
cve_id
GHSA-hc3c-63hc-2r9f
is_ghsa_only
true
ghsa_published
2026-05-19T16:18:33Z
source_url
https://github.com/advisories/GHSA-hc3c-63hc-2r9f
ghsa_updated
2026-05-19T16:18:36Z

Related Entities (4)

REPORTED_BY (1)

[Source]GitHub Advisory Database

VULNERABLE_TO (1)

[Software]rust/libcrux-chacha20poly1305

AFFECTS (1)

[Software]rust/libcrux-chacha20poly1305

HAS_WEAKNESS (1)

[Weakness]Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Explore deeper with Ninja Signal's threat intelligence graph

GHSA-hc3c-63hc-2r9f — Ninja Signal Threat Intelligence | Ninja Signal