~ / search / GHSA-9hfg-pxr6-q4vp

GHSA-9hfg-pxr6-q4vp

Use of a Broken or Risky Cryptographic Algorithm in crypto2

Source: GitHub Advisory Database (reviewed) Critical CVE-2021-45709

Packages

EcosystemPackageAffectedFixed in
crates.io crypto2 <= 0.1.2 no fix listed

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.