Rust advisories / aesni
UnmaintainedRUSTSEC-2021-0059 · aesni
RUSTSEC-2021-0059: `aesni` has been merged into the `aes` crate
Short answerNot a bug report: aesni is no longer maintained, so future security issues will not be fixed. Plan to move to a maintained alternative.
| Crate | aesni |
|---|---|
| Type | Unmaintained |
| Affected versions | Every version. |
| Fixed in | not applicable (the crate is unmaintained) |
| Severity | not scored |
| Published | 2021-04-29 |
| Last changed | 2021-05-04 |
| Also known as | none |
What to do
- Look for a maintained fork or alternative crate.
- If you cannot move yet, acknowledge it in your audit config so CI stays green while you plan: add
"RUSTSEC-2021-0059"toignorein.cargo/audit.tomlordeny.toml, with a comment saying why. - Find who pulls it in:
cargo tree -i aesni.
Details from the advisory
Please use the aes crate going forward. The new repository location is at:
<https://github.com/RustCrypto/block-ciphers/tree/master/aes>
AES-NI is now autodetected at runtime on i686/x86-64 platforms. If AES-NI is not present, the aes crate will fallback to a constant-time portable software implementation.
To prevent this fallback (and have absence of AES-NI result in an illegal instruction crash instead), continue to pass the same RUSTFLAGS which were previously required for the aesni crate to compile:
RUSTFLAGS=-Ctarget-feature=+aes,+ssse3
References
- Package: crates.io/crates/aesni
- Advisory: rustsec.org/advisories/RUSTSEC-2021-0059.html
- Web: github.com/RustCrypto/block-ciphers/pull/200
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?