CVE-2019-16141 Improper Input Validation in once_cell

High 7.5 Published Updated

A panic during Lazy initialization in the once_cell Rust crate allows attackers to cause a denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-16141?

CVE-2019-16141 is a high-severity denial of service vulnerability in n/a, published on 9 Sep 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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

Weakness: CWE-20

Which versions are affected by CVE-2019-16141?

3 open source packages ship an affected version, including once_cell. It affects 1 product.

PackageAffectedFixed in
once_cell crates.ioFrom 0.2.51.0.1
once_cell crates.ioFrom 0.2.51.0.1
once_cell crates.ioFrom 0.2.51.0.1

Products include Once Cell Project Once Cell.

How do I fix CVE-2019-16141?

Upgrade once_cell to 1.0.1 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2019-16141 being exploited?

There is no known exploitation of CVE-2019-16141 in the wild and no public exploit code.

Sources

Also known as GHSA-7j44-fv4x-79g9, RUSTSEC-2019-0017, UBUNTU-CVE-2019-16141.

Is CVE-2019-16141 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free