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

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.33%, higher than 71% of CVEs (2026-12-01)
- Published: 2021-01-17T12:00:00.000Z
- Modified: 2026-06-17T03:42:32.843Z
- Also known as: GHSA-w47j-hqpf-qw9w, RUSTSEC-2021-0004
- Weaknesses: CWE-125
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- lazy-init (crates.io): before 0.4.0; from 0.0.0-0 before 0.4.1-0
- lazy-init_project lazy-init: up to 0.4.0

## Every score

- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- RustSec Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0004.html> (advisory, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25901> (advisory)
- <https://github.com/khuey/lazy-init/issues/9> (report, web)
- <https://github.com/khuey/lazy-init> (package)
- <https://crates.io/crates/lazy-init> (package)

## Sources

- CVE List: [CVE-2021-25901](https://www.cve.org/CVERecord?id=CVE-2021-25901), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-w47j-hqpf-qw9w](https://github.com/advisories/GHSA-w47j-hqpf-qw9w), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0004](https://rustsec.org/advisories/RUSTSEC-2021-0004.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-25901](https://nvd.nist.gov/vuln/detail/CVE-2021-25901), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-25901 · Whole record: https://cve.day/CVE-2021-25901.json · Rebuilt by cve.day 2026-11-25T22:57:59.723Z
