Back to list

libcrux: Potential Panic on Overlong Ciphertext Buffer — GHSA-HC3C-63HC-2R9F

GitHub · GitHub · GHSA-HC3C-63HC-2R9F

ID
GHSA-HC3C-63HC-2R9F
Date
Activity
Source
GitHub
Vendor
GitHub
Threat
high
CVSS
8.2

Summary

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…

Product

rust: libcrux-chacha20poly1305

What to do

General, cautious steps (verify details in the official source):

  • Prioritize patching or mitigation immediately (treat as actively risky).
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Related advisories