CVE-2021-45709 Use of a Broken or Risky Cryptographic Algorithm in crypto2

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
crypto2 crates.ioAll versions to 0.1.2None
crypto2 crates.ioAll versions to 0.1.2None
crypto2 crates.ioAll versions to 0.1.2None
crypto2 crates.ioAll versions to 0.1.2None
crypto2 crates.ioFrom 0.0.0-0None

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.

Is CVE-2021-45709 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free