Advisory

RUSTSEC-2026-0209

Also known as: None

Summary

AES-GCM did not enforce limits on AAD length

Details

NIST Special Publication 800-38D specifies that the bit length of the
AAD shall not exceed 2^64 - 1 bits. The implementation of AES-GCM in
libcrux-aesgcm neither enforced this limit for encryption nor for
decryption.

Impact
Use of AES-GCM with AAD of length exceeding the prescribed maximum
length degrades the authentication security of the GCM tag.

Mitigation
Starting from version 0.0.9 (published as [email protected]),
limits on the length of the AAD input are enforced, so overlong AAD
inputs result in an error on encryption and decryption.

Severity

Not rated by the source.

Dates

Published
2026-06-09 12:00 UTC
Modified
2026-07-17 11:45 UTC

Affected packages and fixes

libcrux-aesgcm

crates.io · All systems

Affected

  • introduced 0.0.0-0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences