GHSA-7j44-fv4x-79g9

Suggest an improvement
Source
https://github.com/advisories/GHSA-7j44-fv4x-79g9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-7j44-fv4x-79g9/GHSA-7j44-fv4x-79g9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7j44-fv4x-79g9
Aliases
Published
2021-08-25T20:44:18Z
Modified
2023-11-08T04:01:16.284220Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Improper Input Validation in once_cell
Details

If during the first dereference of Lazy the initialization function panics, subsequent dereferences will execute std::hints::unreachable_unchecked. Applications with panic = "abort" are not affected, as there will be no subsequent dereferences.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-20"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-19T21:22:57Z"
}
References

Affected packages

crates.io / once_cell

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.2.5
Fixed
1.0.1

Ecosystem specific

{
    "affected_functions": [
        "once_cell::sync::Lazy::deref",
        "once_cell::sync::Lazy::force",
        "once_cell::unsync::Lazy::deref",
        "once_cell::unsync::Lazy::force"
    ]
}