GHSA-fc7x-2cmc-8j2g

Suggest an improvement
Source
https://github.com/advisories/GHSA-fc7x-2cmc-8j2g
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-fc7x-2cmc-8j2g/GHSA-fc7x-2cmc-8j2g.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-fc7x-2cmc-8j2g
Aliases
Published
2022-01-06T22:10:26Z
Modified
2023-11-08T04:07:22.441009Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2021-12-27T00:15:00Z",
    "cwe_ids": [
        "CWE-327"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2022-01-06T14:26:28Z"
}
References

Affected packages

crates.io / sha2

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.9.7
Fixed
0.9.8

Affected versions

0.*

0.9.7