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
EPSS: 0.017 (74.1th percentile) — read the EPSS interpretation.
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.
Affected products
- Nix_project Nix
- N/a — versions n/a
Weakness classification (CWE)
References
- cve@mitre.org (Third Party Advisory, x_refsource_MISC, Issue Tracking)
- cve@mitre.org (Third Party Advisory, x_refsource_MISC)
- cve@mitre.org (Third Party Advisory, x_refsource_MISC)
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.