CVE-2021-45709 Use of a Broken or Risky Cryptographic Algorithm in crypto2
An unaligned memory read in the crypto2 crate can cause a crash during Chacha20 operations, leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-45709?
CVE-2021-45709 is a critical memory corruption vulnerability in n/a, published on 26 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in the crypto2 crate through 2021-10-08 for Rust. During Chacha20 encryption and decryption, an unaligned read of a u32 may occur.
Weakness: CWE-119
Which versions are affected by CVE-2021-45709?
5 open source packages ship an affected version, including crypto2. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
crypto2 crates.io | All versions to 0.1.2 | None |
crypto2 crates.io | All versions to 0.1.2 | None |
crypto2 crates.io | All versions to 0.1.2 | None |
crypto2 crates.io | All versions to 0.1.2 | None |
crypto2 crates.io | From 0.0.0-0 | None |
Products include Crypto2 Project Crypto2.
How do I fix CVE-2021-45709?
No fix has been published for CVE-2021-45709 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-45709 being exploited?
There is no known exploitation of CVE-2021-45709 in the wild and no public exploit code.
Sources
Also known as GHSA-9hfg-pxr6-q4vp, GHSA-pmcv-mgcf-rvxg, RUSTSEC-2021-0121.