RUSTSEC-2019-0017

Source
https://rustsec.org/advisories/RUSTSEC-2019-0017
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2019-0017.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2019-0017
Aliases
Published
2019-09-01T12:00:00Z
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
Panic during initialization of Lazy<T> might trigger undefined behavior
Details

If during the first dereference of Lazy<T> 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
{
    "license": "CC0-1.0"
}
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": null,
    "affects": {
        "os": [],
        "functions": [
            "once_cell::sync::Lazy::deref",
            "once_cell::sync::Lazy::force",
            "once_cell::unsync::Lazy::deref",
            "once_cell::unsync::Lazy::force"
        ],
        "arch": []
    }
}

Database specific

{
    "cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
    "informational": null,
    "categories": []
}