high7.5
CVE-2019-16141
Improper Input Validation in once_cell
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| rust | once_cell | >= 0.2.5, < 1.0.1 | 1.0.1 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Once Cell Project | Once Cell | from 0.2.6 before 1.0.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/matklad/once_cell/issues/46
- https://rustsec.org/advisories/RUSTSEC-2019-0017.html
- https://github.com/advisories/GHSA-7j44-fv4x-79g9
- https://nvd.nist.gov/vuln/detail/CVE-2019-16141
- https://github.com/matklad/once_cell/pull/47
- https://github.com/matklad/once_cell/commit/afcca95a05240ebd931ab20998c946f77ef1e284