Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. lazy-init
  4. ›
  5. CVE-2021-25901

CVE-2021-25901: Out of bounds read in lazy-init

August 25, 2021

An issue was discovered in the lazy-init crate through 2021-01-17 for Rust. Lazy lacks a Send bound, leading to a data race.

References

  • github.com/advisories/GHSA-w47j-hqpf-qw9w
  • github.com/khuey/lazy-init
  • github.com/khuey/lazy-init/issues/9
  • nvd.nist.gov/vuln/detail/CVE-2021-25901
  • rustsec.org/advisories/RUSTSEC-2021-0004.html

Code Behaviors & Features

Detect and mitigate CVE-2021-25901 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 before 0.4.0

Fixed versions

  • 0.4.0

Solution

Upgrade to version 0.4.0 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-125: Out-of-bounds Read

Source file

cargo/lazy-init/CVE-2021-25901.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:10 +0000.