CVE-2021-45707Published Dec 26, 2021 · Dec 26Updated Oct 24
Out-of-bounds Write in nix
Critical9.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| nix crates.io |
|
|
| Product | Affected | Fixed in |
|---|---|---|
| nix crates.io |
|
|
0.22.20.23.0An 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.
From the CVE record · mitre
The Rust nix crate's unistd::getgrouplist can write out of bounds when a user belongs to more than 16 /etc/groups groups. The input does not establish whether an attacker can trigger this remotely or locally, or whether authentication or user interaction is required.
Engineers using the crates.io nix package should check versions from 0.16.0 to before 0.20.2, 0.21.x before 0.21.2, and 0.22.x before 0.22.2, including the listed prerelease ranges.