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

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 57% of CVEs (2026-12-01)
- Published: 2021-10-08T12:00:00.000Z
- Modified: 2026-06-17T04:13:59.617Z
- Also known as: GHSA-9hfg-pxr6-q4vp, GHSA-pmcv-mgcf-rvxg, RUSTSEC-2021-0121
- Weaknesses: CWE-119
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- crypto2 (crates.io): up to 0.1.2; from 0.0.0-0
- crypto2_project crypto2: no versions given

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: rating High
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0121.html> (advisory, third-party-advisory, web)
- <https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/crypto2/RUSTSEC-2021-0121.md> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-45709> (advisory)
- <https://github.com/shadowsocks/crypto2/issues/27> (report, web)
- <https://github.com/shadowsocks/crypto2> (package)
- <https://crates.io/crates/crypto2> (package)

## Sources

- CVE List: [CVE-2021-45709](https://www.cve.org/CVERecord?id=CVE-2021-45709), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-9hfg-pxr6-q4vp](https://github.com/advisories/GHSA-9hfg-pxr6-q4vp), CC-BY-4.0, modified 2023-11-08
- GitHub Advisory Database: [GHSA-pmcv-mgcf-rvxg](https://github.com/advisories/GHSA-pmcv-mgcf-rvxg), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0121](https://rustsec.org/advisories/RUSTSEC-2021-0121.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-45709](https://nvd.nist.gov/vuln/detail/CVE-2021-45709), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-45709 · Whole record: https://cve.day/CVE-2021-45709.json · Rebuilt by cve.day 2026-11-25T22:58:06.271Z
