Vulnerability · Published Dec 26, 2021 · Assigned by mitre
CVE-2021-45707
Critical 9.8
In plain English
A critical-severity security flaw in the rust-nix package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)1.7%top 22.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rust-nix | 0.23.0-1 | DEBIAN-CVE-2021-45707 |
| Debian:13 | rust-nix | 0.23.0-1 | DEBIAN-CVE-2021-45707 |
| Debian:14 | rust-nix | 0.23.0-1 | DEBIAN-CVE-2021-45707 |
| Ubuntu:22.04:LTS | rust-nix | no fix listed | UBUNTU-CVE-2021-45707 |
| Ubuntu:24.04:LTS | rust-nix | no fix listed | UBUNTU-CVE-2021-45707 |
| Ubuntu:25.10 | rust-nix | no fix listed | UBUNTU-CVE-2021-45707 |
| Ubuntu:26.04:LTS | rust-nix | no fix listed | UBUNTU-CVE-2021-45707 |
| Ubuntu:26.10 | rust-nix | no fix listed | UBUNTU-CVE-2021-45707 |
Affected products (as reported)
References
- https://rustsec.org/advisories/RUSTSEC-2021-0119.html x_refsource_MISC
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/nix/RUSTSEC-2021-0119.md x_refsource_MISC
- https://github.com/advisories/GHSA-wgrg-5h56-jg27 x_refsource_MISC