CVE-2021-25901
MEDIUM 5.3CVSS 3.1Out of bounds read in lazy-init
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.
- Published
- 26 Jan 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-125
- Also known as
- GHSA-w47j-hqpf-qw9wRUSTSEC-2021-0004
- Sources
- NVDJSONOSV GHSA-w47j-hqpf-qw9wJSONOSV RUSTSEC-2021-0004JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | RustSec | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | lazy-init_project | lazy-initcpe:2.3:a:lazy-init_project:lazy-init:*:*:*:*:*:rust:*:* |
<= 0.4.0 | |
| OSV | crates.io | lazy-init | < 0.4.0 | 0.4.0 |
| OSV | crates.io | lazy-init | >= 0.0.0-0, < 0.4.1-0 | 0.4.1-0 |
References
- https://rustsec.org/advisories/RUSTSEC-2021-0004.html · Patch, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-25901 · ADVISORY
- https://github.com/khuey/lazy-init/issues/9 · WEB, REPORT
- https://github.com/khuey/lazy-init · PACKAGE
- https://crates.io/crates/lazy-init · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 26 Jan 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Jan 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)