RUSTSEC-2026-0124
HIGHlibcrux: Potential Panic on Overlong Ciphertext Buffer
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.
- Published
- 29 Mar 2026
- Last modified
- 20 May 2026
- Weakness
- CWE-120
- Also known as
- GHSA-hc3c-63hc-2r9f
- Sources
- OSV GHSA-hc3c-63hc-2r9fJSONOSVJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | |
| OSV | RustSec | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | libcrux-chacha20poly1305 | < 0.0.8 | 0.0.8 |
| OSV | crates.io | libcrux-chacha20poly1305 | >= 0.0.0-0, < 0.0.8 | 0.0.8 |
References
- https://github.com/cryspen/libcrux/pull/1386 · WEB
- https://github.com/cryspen/libcrux · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2026-0124.html · WEB, ADVISORY
- https://crates.io/crates/libcrux-chacha20poly1305 · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 29 Mar 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 19 May 2026)