Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS05aGZnLXB4cjYtcTR2cM0fhQ
Use of a Broken or Risky Cryptographic Algorithm in crypto2
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.
Permalink: https://github.com/advisories/GHSA-9hfg-pxr6-q4vpJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS05aGZnLXB4cjYtcTR2cM0fhQ
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: over 2 years ago
Updated: 9 months ago
CVSS Score: 9.8
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Identifiers: GHSA-9hfg-pxr6-q4vp, CVE-2021-45709
References:
- https://nvd.nist.gov/vuln/detail/CVE-2021-45709
- 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/shadowsocks/crypto2/issues/27
- https://github.com/advisories/GHSA-9hfg-pxr6-q4vp
Blast Radius: 12.8
Affected Packages
cargo:crypto2
Dependent packages: 2Dependent repositories: 20
Downloads: 36,736 total
Affected Version Ranges: <= 0.1.2
No known fixed version
All affected versions: 0.1.0, 0.1.1, 0.1.2