Advisory

GHSA-7j44-fv4x-79g9

Also known as: CVE-2019-16141, RUSTSEC-2019-0017

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-08-25 20:44 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

once_cell

crates.io · All systems

Affected

  • introduced 0.2.5, fixed 1.0.1 (semver)

Fixed versions

1.0.1

Fix

  • Fixed version 1.0.1
    cargo update -p once_cell --precise 1.0.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences