RUSTSEC-2026-0124

Source
https://rustsec.org/advisories/RUSTSEC-2026-0124
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0124.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2026-0124
Aliases
Published
2026-03-29T12:00:00Z
Modified
2026-05-20T07:15:03.934256757Z
Severity
  • 8.2 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Potential Panic on Overlong Ciphertext Buffer
Details

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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / libcrux-chacha20poly1305

Package

Name
libcrux-chacha20poly1305
View open source insights on deps.dev
Purl
pkg:cargo/libcrux-chacha20poly1305

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.0.8

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "arch": [],
        "functions": [
            "libcrux_chacha20poly1305::encrypt",
            "libcrux_chacha20poly1305::xchacha20_poly1305::encrypt"
        ],
        "os": []
    }
}

Database specific

categories
[]
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0124.json"
informational
null
cvss
"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"