CVE-2021-45707
Nix Project Nix vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Nix. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Nix Project Nix runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/advisories/GHSA-wgrg-5h56-jg27 · Third Party Advisory
- raw.githubusercontent.com/rustsec/advisory-db/main/crates/nix/RUSTSEC-2021-0119.md · Third Party Advisory
- rustsec.org/advisories/RUSTSEC-2021-0119.html · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-45707
- cve.org/CVERecord?id=CVE-2021-45707
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.