CVE-2021-45707: nix_project nix Out-of-bounds Write
CVSS: 9.8v3.1CriticalModified
AliasesUBUNTU-CVE-2021-45707DEBIAN-CVE-2021-45707GHSA-76w9-p8mg-j927GHSA-wgrg-5h56-jg27RUSTSEC-2021-0119CGA-r235-rp7x-5r48CGA-r78w-99vr-836cCGA-vjc8-288c-2pwp
Published 26-12-2021Last modified 04-08-2024
Vulnerability summary
CVE-2021-45707 is a critical (CVSS 9.8) Out-of-bounds Write vulnerability in nix_project nix. EPSS estimates a 1.70% chance of exploitation in the next 30 days, higher than 76.9% of scored vulnerabilities.
CVSS score
9.8/10
010
Critical · v3.1 (NVD)EPSS score
1.70%
0%100%
Low · +0.05 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 26-12-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 5 sources · 2 versionsCritical 9.8Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HSources5 sources · 6.7–9.8
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · Crates.ioEcosystem advisory · calculated6.7MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · ChainguardEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
High 7.5Preferred score · NVD (NIST)
AV:N/AC:L/Au:N/C:P/I:P/A:PSourcesSingle source
EPSS trend
Probability
1.70%
Chance of exploitation in the next 30 days
Percentile
77%
Versus all other CVEs
30-day change
+0.05 pp
From 1.65% on 20-09-2026
20-09-202620-10-2026
EPSS score1.70%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard2 products
- nsexec< 0.1.7-r2
- todaAll versions (No fix recorded) | < 0.3.0-r0
Crates.Io1 product
- nix≥ 0.16.0, < 0.20.2 | ≥ 0.21.0, < 0.21.2 | ≥ 0.22.0, < 0.22.2 | ≥ 0.23.0-0, < 0.23.0
Debian1 product
- rust-nix< 0.23.0-1
Nix_project1 product
- nix≥ 0.16.0, < 0.20.2 | ≥ 0.21.0, < 0.21.2 | ≥ 0.22.0, < 0.22.2
Ubuntu1 product
- rust-nixAll versions (No fix recorded)
5 vendors · 6 products
References
10 links- rustsec.org/advisories/RUSTSEC-2021-0119.htmlX Refsource MISCREPORTWEBAdvisoryIssue TrackingThird Party Advisory
- raw.githubusercontent.com/rustsec/advisory-db/main/crates/nix/RUSTSEC-2021-0119.mdX Refsource MISCREPORTWEBThird Party AdvisoryAdvisory
- github.com/nix-rust/nixPACKAGE
- crates.io/crates/nixPACKAGE