GHSA-pmcv-mgcf-rvxg – crypto2
Package
Manager: cargo
Name: crypto2
Vulnerable Version: >=0 <=0.1.2
Severity
Level: High
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P/RL:U/RC:R
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
EPSS: N/A pctlN/A
Details
Non-aligned u32 read in Chacha20 encryption and decryption 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-06-16T23:51:32Z
Modified: 2022-06-16T23:51:32Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-pmcv-mgcf-rvxg/GHSA-pmcv-mgcf-rvxg.json
CWE IDs: []
Alternative ID: N/A
Finding: F002
Auto approve: 1