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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | nix (crates.io) | 0.16.0 to before 0.20.2 | 0.20.2 | Patch available | GHSA-76w9-p8mg-j927 |
| — | nix (crates.io) | 0.21.0 to before 0.21.2 | 0.21.2 | Patch available | GHSA-76w9-p8mg-j927 |
| — | nix (crates.io) | 0.22.0 to before 0.22.2 | 0.22.2 | Patch available | GHSA-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
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| 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.2 | Vulnerable | Nix 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
Timeline
- 2026-10-02 Threatist record created from CVE-2021-45707
- 2026-10-03 Alias added: GHSA-76w9-p8mg-j927
References
Advisory 4
Sources
- CVE-2021-45707 · CVE Program
- CVE-2021-45707 · NVD
- FIRST EPSS
- GHSA-76w9-p8mg-j927 · GitHub Advisory Database · CC BY 4.0
- CVE-2021-45707 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences