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

EcosystemPackageFixed inAdvisory
Debian:12rust-nix0.23.0-1DEBIAN-CVE-2021-45707
Debian:13rust-nix0.23.0-1DEBIAN-CVE-2021-45707
Debian:14rust-nix0.23.0-1DEBIAN-CVE-2021-45707
Ubuntu:22.04:LTSrust-nixno fix listedUBUNTU-CVE-2021-45707
Ubuntu:24.04:LTSrust-nixno fix listedUBUNTU-CVE-2021-45707
Ubuntu:25.10rust-nixno fix listedUBUNTU-CVE-2021-45707
Ubuntu:26.04:LTSrust-nixno fix listedUBUNTU-CVE-2021-45707
Ubuntu:26.10rust-nixno fix listedUBUNTU-CVE-2021-45707

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References