GHSA-9hfg-pxr6-q4vp

    Dashboard / Vulnerabilities / GHSA-9hfg-pxr6-q4vp

    GHSA-9hfg-pxr6-q4vp

    Published: 6 Jan 2022Last Modified: 8 Nov 2023

    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.

    Affected packages

    Package

    Name: crypto2

    Purl: pkg:cargo/crypto2

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -None

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-9hfg-pxr6-q4vp | CVE-DB