Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. once_cell
  4. ›
  5. CVE-2019-16141

CVE-2019-16141: Improper Input Validation in once_cell

August 25, 2021 (updated June 13, 2023)

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.

References

  • github.com/advisories/GHSA-7j44-fv4x-79g9
  • github.com/matklad/once_cell
  • github.com/matklad/once_cell/commit/afcca95a05240ebd931ab20998c946f77ef1e284
  • github.com/matklad/once_cell/issues/46
  • github.com/matklad/once_cell/pull/47
  • nvd.nist.gov/vuln/detail/CVE-2019-16141
  • rustsec.org/advisories/RUSTSEC-2019-0017.html

Code Behaviors & Features

Detect and mitigate CVE-2019-16141 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.2.5 before 1.0.1

Fixed versions

  • 1.0.1

Solution

Upgrade to version 1.0.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

cargo/once_cell/CVE-2019-16141.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:51 +0000.