Buffer overflow in Nix Project
CVE-2021-45707
An issue was discovered in the nix crate 0.16.0 and later before 0.20.2, 0.21.x before 0.21.2, and 0.22.x before 0.22.2 for Rust. unistd::getgrouplist has an out-of-bounds write if a user is in more than 16 /etc/groups groups.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.017 (75.7th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 76th percentile — 75.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.017 · newest: 0.017 · change: 0.000
Affected products
Weakness classification (CWE)
References
- rustsec.org/advisories/RUSTSEC-2021-0119.html (Third Party Advisory, Issue Tracking)
- raw.githubusercontent.com/rustsec/advisory-db/main/crates/nix/RUSTSEC-2021-0119… (Third Party Advisory)
- github.com/advisories/GHSA-wgrg-5h56-jg27 (Third Party Advisory)
Frequently asked questions
- What is CVE-2021-45707?
- CVE-2021-45707 is a critical-severity vulnerability in Nix Project, classified under Out-of-bounds Write. CVSS score: 9.8/10. Published 2021-12-27.
- How severe is CVE-2021-45707?
- Critical severity. CVSS v3 base score is 9.8 out of 10.