logo

CVE-2021-45709 crypto2

Package

Manager: cargo
Name: crypto2
Vulnerable Version: >=0 <=0.1.2

Severity

Level: Critical

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00233 pctl0.46068

Details

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.

Metadata

Created: 2022-01-06T22:04:51Z
Modified: 2023-06-13T17:23:04Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-9hfg-pxr6-q4vp/GHSA-9hfg-pxr6-q4vp.json
CWE IDs: ["CWE-119"]
Alternative ID: GHSA-9hfg-pxr6-q4vp
Finding: F316
Auto approve: 1