9.8

CVE-2021-45707: nix_project nix Out-of-bounds Write

CVSS: 9.8v3.1CriticalModified
AliasesUBUNTU-CVE-2021-45707DEBIAN-CVE-2021-45707GHSA-76w9-p8mg-j927
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.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
1.70%
0%100%
Low · +0.05 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 26-12-2021
    PublishedVulnerability first disclosed.
  2. 04-08-2024
    Last 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 versions

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 score
1.70%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected 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