Every CVE Search/ Get API key

CVE-2019-16141

Improper Input Validation in once_cell

7.5 HighFix available

An issue was discovered in the once_cell crate before 1.0.1 for Rust. There is a panic during initialization of Lazy.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

1.58%Up 1.0 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 7.5

An issue was discovered in the once_cell crate before 1.0.1 for Rust. There is a panic during initialization of Lazy.

Record
CVE-2019-16141
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Weakness
CWE-20
Updated
2026-11-02
CVE List No score

An issue was discovered in the once_cell crate before 1.0.1 for Rust. There is a panic during initialization of Lazy.

Record
CVE-2019-16141
Updated
2026-11-02
EUVDEUVD-2021-1622 No score

An issue was discovered in the once_cell crate before 1.0.1 for Rust. There is a panic during initialization of Lazy.

Record
EUVD-2021-1622
Updated
2026-11-03
GitHub AdvisoriesGHSA-7j44-fv4x-79g9 7.5

Improper Input Validation in once_cell

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.

Record
GHSA-7j44-fv4x-79g9
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-20
Updated
2026-11-02
OSV 7.5

An issue was discovered in the once_cell crate before 1.0.1 for Rust. There is a panic during initialization of Lazy.

Record
CVE-2019-16141
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVGHSA-7j44-fv4x-79g9 7.5

Improper Input Validation in once_cell

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.

Record
GHSA-7j44-fv4x-79g9
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-20
Updated
2026-11-02
OSVRUSTSEC-2019-0017 7.5

Panic during initialization of Lazy<T> might trigger undefined behavior

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.

Record
RUSTSEC-2019-0017
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2019-16141 7.5

An issue was discovered in the once_cell crate before 1.0.1 for Rust. There is a panic during initialization of Lazy.

Record
UBUNTU-CVE-2019-16141
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
once_cell
crates.io
0.2.5 up to 1.0.1
1.0.1
rust-once-cell
Ubuntu:20.04:LTS
All versions, plus listed versions
0.1.8-30.1.8-3build11.2.0-3
None known
rust-once-cell
Ubuntu:22.04:LTS
All versions, plus listed versions
1.3.1-11.5.2-11.8.0-11.9.0-2
None known
rust-once-cell
Ubuntu:24.04:LTS
All versions, plus listed versions
1.18.0-11.19.0-1
None known
rust-once-cell
Ubuntu:25.10
All versions, plus listed versions
1.20.2-1
None known
rust-once-cell
Ubuntu:26.10
All versions, plus listed versions
1.21.3-11.21.4-1
None known
rust-once-cell
Ubuntu:26.04:LTS
All versions, plus listed versions
1.20.2-11.21.3-1
None known

History

History
RecordedChangedSources
facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2019-16141 is a high vulnerability (CVSS 7.5) in Once Cell Project Cell, published September 1, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.58%, the 75th percentile. Fixed in once_cell 1.0.1.

References

Show 4 moreShow less
MoveEnter Open