CVE-2021-45707 Out-of-bounds Write in nix
CriticalCVSS 9.8
EPSS 1.7%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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.
Upgrade path
11 packages: 5 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/rust-nix(Ubuntu 20.04) | = 0.14.1-1; = 0.15.0-1; = 0.15.0-2; = 0.16.1-1 +1 more | No fix listed | No fix yet |
| ubuntu/rust-nix(Ubuntu 22.04) | = 0.19.0-1; = 0.19.0-2; = 0.23.1-1; All versions | No fix listed | No fix yet |
| ubuntu/rust-nix(Ubuntu 24.04) | = 0.26.2-1; = 0.27.1-1; = 0.27.1-1build1; All versions | No fix listed | No fix yet |
| ubuntu/rust-nix(Ubuntu 25.10) | = 0.29.0-2; All versions | No fix listed | No fix yet |
| ubuntu/rust-nix(Ubuntu 26.04) | = 0.29.0-2; = 0.30.1-3; All versions | No fix listed | No fix yet |
| ubuntu/rust-nix(Ubuntu 26.10) | = 0.30.1-3; All versions | No fix listed | No fix yet |
| crates.io nix(crates.io) | >= 0.16.0, < 0.20.2; >= 0.21.0, < 0.21.2; >= 0.21.0-0, < 0.21.2; >= 0.22.0, < 0.22.2 +2 more | 0.20.2, 0.21.2, 0.22.2, 0.23.0 | Fixed |
| debian/rust-nix(Debian 12) | < 0.23.0-1 | 0.23.0-1 | Fixed |
| debian/rust-nix(Debian 13) | < 0.23.0-1 | 0.23.0-1 | Fixed |
| debian/rust-nix(Debian 14) | < 0.23.0-1 | 0.23.0-1 | Fixed |
| nix project nix | >= 0.16.0, < 0.20.2; >= 0.21.0, < 0.21.2; >= 0.22.0, < 0.22.2 | 0.20.2, 0.21.2, 0.22.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io nix(crates.io) | >= 0.16.0, < 0.20.2 | 0.20.2 |
| crates.io nix(crates.io) | >= 0.21.0, < 0.21.2 | 0.21.2 |
| crates.io nix(crates.io) | >= 0.22.0, < 0.22.2 | 0.22.2 |
| crates.io nix(crates.io) | >= 0.21.0-0, < 0.21.2 | 0.21.2 |
| crates.io nix(crates.io) | >= 0.22.0-0, < 0.22.2 | 0.22.2 |
| crates.io nix(crates.io) | >= 0.23.0-0, < 0.23.0 | 0.23.0 |
| debian/rust-nix(Debian:12) | < 0.23.0-1 | 0.23.0-1 |
| debian/rust-nix(Debian:13) | < 0.23.0-1 | 0.23.0-1 |
| debian/rust-nix(Debian:14) | < 0.23.0-1 | 0.23.0-1 |
| ubuntu/rust-nix(Ubuntu:22.04) | All versions | No fix listed |
| nix project nix | >= 0.16.0, < 0.20.2 | 0.20.2 |
| nix project nix | >= 0.21.0, < 0.21.2 | 0.21.2 |
| nix project nix | >= 0.22.0, < 0.22.2 | 0.22.2 |
| ubuntu/rust-nix(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/rust-nix(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/rust-nix(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/rust-nix(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/rust-nix(Ubuntu:20.04) | = 0.14.1-1 | No fix listed |
| ubuntu/rust-nix(Ubuntu:20.04) | = 0.15.0-1 | No fix listed |
| ubuntu/rust-nix(Ubuntu:20.04) | = 0.15.0-2 | No fix listed |
| ubuntu/rust-nix(Ubuntu:20.04) | = 0.16.1-1 | No fix listed |
| ubuntu/rust-nix(Ubuntu:22.04) | = 0.19.0-1 | No fix listed |
| ubuntu/rust-nix(Ubuntu:22.04) | = 0.19.0-2 | No fix listed |
| ubuntu/rust-nix(Ubuntu:22.04) | = 0.23.1-1 | No fix listed |
| ubuntu/rust-nix(Ubuntu:24.04) | = 0.26.2-1 | No fix listed |
Show 7 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/rust-nix(Ubuntu:24.04) | = 0.27.1-1 | No fix listed |
| ubuntu/rust-nix(Ubuntu:24.04) | = 0.27.1-1build1 | No fix listed |
| ubuntu/rust-nix(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/rust-nix(Ubuntu:25.10) | = 0.29.0-2 | No fix listed |
| ubuntu/rust-nix(Ubuntu:26.10) | = 0.30.1-3 | No fix listed |
| ubuntu/rust-nix(Ubuntu:26.04) | = 0.29.0-2 | No fix listed |
| ubuntu/rust-nix(Ubuntu:26.04) | = 0.30.1-3 | No fix listed |
References
- github.com issue-tracking
- rustsec.org issue-tracking third-party-advisory vendor-advisory
- github.com third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- raw.githubusercontent.com issue-tracking third-party-advisory
- crates.io product
- github.com
- Debian Security Tracker CVE-2021-45707 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking