kritisch9.8
CVE-2021-45709
Use of a Broken or Risky Cryptographic Algorithm in crypto2
Auswirkung
The implementation does not enforce alignment requirements on input slices while incorrectly assuming 4-byte alignment through an unsafe call to std::slice::from_raw_parts_mut, which breaks the contract and introduces undefined behavior. This affects Chacha20 encryption and decryption in crypto2.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden, hohes Risiko, dass Daten oder Systeme verändert werden, hohes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| rust | crypto2 | <= 0.1.2 | nicht erfasst |
Betroffene Produkte · Crypto2 Project
| Produkt | Betroffene Versionen |
|---|---|
| Crypto2 | Alle Versionen |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/crypto2/RUSTSEC-2021-0121.md
- https://rustsec.org/advisories/RUSTSEC-2021-0121.html
- https://github.com/advisories/GHSA-9hfg-pxr6-q4vp
- https://nvd.nist.gov/vuln/detail/CVE-2021-45709
- https://github.com/shadowsocks/crypto2/issues/27