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

  • CGA-r235-rp7x-5r48
    CVE-2021-45707 Chainguard Updated 5 November 2026
  • CGA-r78w-99vr-836c
    CVE-2021-45707 Chainguard Updated 5 November 2026
  • CGA-vjc8-288c-2pwp
    CVE-2021-45707 Chainguard Updated 5 November 2026
  • DEBIAN-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…

    CVE-2021-45707 Debian Updated 23 October 2026
  • 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
  • UBUNTU-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…

    CVE-2021-45707 Ubuntu Updated 17 October 2026

References