Read the docs
TI-2021-20794 Aliases CVE-2021-45707GHSA-76w9-p8mg-j927

An issue was discovered in the nix crate 0.16.0 and later before 0.20.2, 0.21.x before…

Priority MEDIUM 45CWE-787Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-787 and the CVSS impact.

Summary

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.

Why it matters now

EPSS 0.0169 77th percentileScored 2026-11-07
Fix Fixed nix (crates.io): 0.20.2, 0.21.2, 0.22.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
—nix (crates.io)0.16.0 to before 0.20.20.20.2Patch availableGHSA-76w9-p8mg-j927
—nix (crates.io)0.21.0 to before 0.21.20.21.2Patch availableGHSA-76w9-p8mg-j927
—nix (crates.io)0.22.0 to before 0.22.20.22.2Patch availableGHSA-76w9-p8mg-j927
  • — Vendor— Affected all versions Fixed in — No fix listed CNA
  • nix (crates.io) Vendor— Affected 0.16.0 to before 0.20.2 Fixed in 0.20.2 Patch available GHSA-76w9-p8mg-j927
  • nix (crates.io) Vendor— Affected 0.21.0 to before 0.21.2 Fixed in 0.21.2 Patch available GHSA-76w9-p8mg-j927
  • nix (crates.io) Vendor— Affected 0.22.0 to before 0.22.2 Fixed in 0.22.2 Patch available GHSA-76w9-p8mg-j927

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:nix_project:nix:*:*:*:*:*:rust:*:*0.16.0 to before 0.20.2; 0.21.0 to before 0.21.2; 0.22.0 to before 0.22.2VulnerableNix Project
  • cpe:2.3:a:nix_project:nix:*:*:*:*:*:rust:*:* Versions 0.16.0 to before 0.20.2; 0.21.0 to before 0.21.2; 0.22.0 to before 0.22.2 Vulnerable ·Nix Project

Remediation

  • Fix · GHSA-76w9-p8mg-j927 nix (crates.io) Fixed in 0.20.2 Advisory →
  • Fix · GHSA-76w9-p8mg-j927 nix (crates.io) Fixed in 0.21.2 Advisory →
  • Fix · GHSA-76w9-p8mg-j927 nix (crates.io) Fixed in 0.22.2 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-45707
  2. 2026-10-03 Alias added: GHSA-76w9-p8mg-j927

References

Sources