OSV 1.4.0 · github-reviewed · 修改于 2026-05-20 00:18
发布时间
2026-05-20 00:18
GitHub 审查时间
2026-05-20 00:18
NVD 发布时间
—
源文件
advisories/github-reviewed/2026/05/GHSA-hc3c-63hc-2r9f/GHSA-hc3c-63hc-2r9f.json
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.
An application where the length of the ciphertext buffer is under attacker control could be made to crash.
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.