Security mailing lists by PureSourceCode

GHSA-hc3c-63hc-2r9f

HIGH

libcrux: 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
RUSTSEC-2026-0124
Sources
OSVJSONOSV RUSTSEC-2026-0124JSON

Scores

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed 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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.