ADVISORIES

Vulnerability

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.

8 advisories report this vulnerability, across 4 ecosystems.

Advisories in crates.io

  • GHSA-76w9-p8mg-j927

    Out-of-bounds Write in nix

    Moderate CVE-2021-45707 crates.io Updated 10 September 2026
  • GHSA-wgrg-5h56-jg27

    Out-of-bounds write in nix::unistd::getgrouplist

    High CVE-2021-45707 crates.io Updated 10 September 2026
  • RUSTSEC-2021-0119

    Out-of-bounds write in nix::unistd::getgrouplist

    CVE-2021-45707 crates.io Updated 8 November 2023

References