{"id":"GHSA-hc3c-63hc-2r9f","aliases":["RUSTSEC-2026-0124"],"url":"https://o3.security/vulnerability/GHSA-hc3c-63hc-2r9f","summary":"libcrux: Potential Panic on Overlong Ciphertext Buffer","details":"An application that passes in a ciphertext buffer of length greater\nthan `ptxt.len() + TAG_LEN` to `libcrux_chacha20poly1305::encrypt` or\n`libcrux_chacha20poly1305::xchacha20_poly1305::encrypt` would\nexperience a panic.\n\n## Impact\nAn application where the length of the ciphertext buffer is under\nattacker control could be made to crash.\n\n## Mitigation\nThe fix makes it so that `libcrux_chacha20poly1305::encrypt` and\n`libcrux_chacha20poly1305::xchacha20_poly1305::encrypt` no longer\npanic in this case, but instead write out the ciphertext and tag into\nthe first `ptxt.len() + TAG_LEN` bytes of the provided buffer.","published":"2026-05-19T16:18:33Z","modified":"2026-05-20T07:26:23.649057951Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"libcrux-chacha20poly1305","fixedVersion":"0.0.8"}],"fix":{"url":"https://github.com/cryspen/libcrux/pull/1386","label":"cryspen/libcrux#1386"},"references":[{"type":"WEB","url":"https://github.com/cryspen/libcrux/pull/1386"},{"type":"PACKAGE","url":"https://github.com/cryspen/libcrux"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2026-0124.html"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-05-20T07:26:23.649057951Z"}}