CVEvulnerability
CVE-2021-45707
9.8 CRITICAL
Official page ↗
- Status
- Modified
- Published
- 2021-12-27
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS 2.0 ([email protected])
- 7.5 HIGH — AV:N/AC:L/Au:N/C:P/I:P/A:P
- Weaknesses
- CWE-787
Description
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.
Affected configurations
• nix project nix (>= 0.16.0 < 0.20.2)
• nix project nix (>= 0.21.0 < 0.21.2)
• nix project nix (>= 0.22.0 < 0.22.2)
Related
Weakness · CWE (1)
- CWE-787 Out-of-bounds Write weakness
References
- https://github.com/advisories/GHSA-wgrg-5h56-jg27 Third Party Advisory
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/nix/RUSTSEC-2021-0119.md Third Party Advisory
- https://rustsec.org/advisories/RUSTSEC-2021-0119.html Issue Tracking, Third Party Advisory
- https://github.com/advisories/GHSA-wgrg-5h56-jg27 Third Party Advisory
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/nix/RUSTSEC-2021-0119.md Third Party Advisory
- https://rustsec.org/advisories/RUSTSEC-2021-0119.html Issue Tracking, Third Party Advisory