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.
References (3)
Core 3
Core References
Issue Tracking, Third Party Advisory x_refsource_misc
https://rustsec.org/advisories/RUSTSEC-2021-0119.html
Third Party Advisory x_refsource_misc
https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/nix/RUSTSEC-2021-0119.md
Third Party Advisory x_refsource_misc
https://github.com/advisories/GHSA-wgrg-5h56-jg27
Scores
CVSS v3
9.8
EPSS
0.0165
EPSS Percentile
73.7%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Details
CWE
CWE-787
Status
published
Products (2)
crates.io/nix
0.16.0 - 0.20.2crates.io
nix_project/nix
0.16.0 - 0.20.2
Published
Dec 27, 2021
Tracked Since
Feb 18, 2026