cve.bz

CVE-2021-45707

9.8 criticalEPSS 1.7%

Critical (9.8) in nix project nix. EPSS 1.7% chance of exploitation in the next 30 days. Fixed in nix 0.20.2, 0.21.2, 0.22.2.

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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.7% chance of exploitation in the next 30 days; higher than 77% of CVEs (scores of 2026-10-31)
CWE
CWE-787
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-76w9-p8mg-j927crates.ionix>=0.16.0 <0.20.20.20.2
GHSA-76w9-p8mg-j927crates.ionix>=0.21.0 <0.21.20.21.2
GHSA-76w9-p8mg-j927crates.ionix>=0.22.0 <0.22.20.22.2
GHSA-wgrg-5h56-jg27crates.ionix>=0.16.0 <0.20.20.20.2
GHSA-wgrg-5h56-jg27crates.ionix>=0.21.0 <0.21.20.21.2
GHSA-wgrg-5h56-jg27crates.ionix>=0.22.0 <0.22.20.22.2
RUSTSEC-2021-0119crates.ionix>=0.16.0 <0.20.2
>=0.21.0-0 <0.21.2
>=0.22.0-0 <0.22.2
>=0.23.0-0 <0.23.0
0.20.2, 0.21.2, 0.22.2, 0.23.0

References

Check your stackJSON