GHSA-fc7x-2cmc-8j2g

    Dashboard / Vulnerabilities / GHSA-fc7x-2cmc-8j2g

    GHSA-fc7x-2cmc-8j2g

    Published: 6 Jan 2022Last Modified: 8 Nov 2023

    Summary: Incorrect hash in sha2

    Details: The v0.9.7 release of the sha2 crate introduced a new AVX2-accelerated backend which was automatically enabled for all x86/x86_64 CPUs where AVX2 support was autodetected at runtime. This backend was buggy and would miscompute results for long messages (i.e. messages spanning multiple SHA blocks). The crate has since been yanked, but any users who upgraded to v0.9.7 should immediately upgrade to v0.9.8 and recompute any hashes which were previously computed by v0.9.7.

    Affected packages

    Package

    Name: sha2

    Purl: pkg:cargo/sha2

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0.9.7
    Fixed -0.9.8

    Affected versions

    0.9.7

    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-fc7x-2cmc-8j2g | CVE-DB