Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. libcrux-chacha20poly1305
  4. ›
  5. GHSA-hc3c-63hc-2r9f

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

May 19, 2026

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.

References

  • github.com/advisories/GHSA-hc3c-63hc-2r9f
  • github.com/cryspen/libcrux/pull/1386
  • rustsec.org/advisories/RUSTSEC-2026-0124.html

Code Behaviors & Features

Detect and mitigate GHSA-hc3c-63hc-2r9f with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.8

Fixed versions

  • 0.0.8

Solution

Upgrade to version 0.0.8 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Source file

cargo/libcrux-chacha20poly1305/GHSA-hc3c-63hc-2r9f.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:14 +0000.