Advisory

GHSA-9hfg-pxr6-q4vp

Also known as: CVE-2021-45709, GHSA-pmcv-mgcf-rvxg, RUSTSEC-2021-0121

Summary

Use of a Broken or Risky Cryptographic Algorithm in crypto2

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-01-06 22:04 UTC
Modified
2023-11-08 04:07 UTC

Affected packages and fixes

crypto2

crates.io · All systems

Affected

  • introduced 0, last affected 0.1.2 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences