LiveActive security incident?Get immediate response
CVE Record

CVE-2021-45707: 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 b...

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.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2021-45707 affects the Rust nix crate. A specific group-list lookup can write outside its intended memory when a user belongs to more than 16 /etc/groups groups. Business risk depends on whether products use affected nix versions and call this function with local group data.

Executive priority

Treat as a targeted dependency remediation item, not an emergency based on current evidence. Prioritize inventory and upgrade where affected Rust services handle local identity or group information, especially in privileged or security-sensitive contexts.

Technical view

Affected nix versions are 0.16.0 through before 0.20.2, 0.21.x before 0.21.2, and 0.22.x before 0.22.2. The vulnerable API is unistd::getgrouplist, which can trigger an out-of-bounds write when handling users in more than 16 /etc/groups groups.

Likely exposure

Exposure is most likely in Rust applications or services that depend directly or transitively on affected nix versions and use unistd::getgrouplist. The triggering condition requires local group data where a queried user has more than 16 /etc/groups memberships.

Exploitation context

The provided sources do not cite active exploitation, and this CVE is not marked KEV. The sources describe the flaw condition, but do not provide CVSS, CWE, exploit prevalence, or confirmed real-world abuse evidence.

Researcher notes

Evidence is narrow but clear: the affected API, version ranges, and trigger condition are documented. Impact beyond an out-of-bounds write is not established in the provided sources, so avoid assuming code execution or privilege escalation without additional vendor evidence.

Mitigation direction

  • Upgrade nix to a patched release: 0.20.2, 0.21.2, 0.22.2, or later.
  • Review vendor or RustSec guidance before choosing an upgrade path.
  • Rebuild affected Rust applications after dependency updates.
  • Prioritize systems where local group membership data is attacker-influenced or externally provisioned.

Validation and detection

  • Check Cargo.lock, SBOMs, and dependency manifests for affected nix versions.
  • Identify direct or transitive use of unistd::getgrouplist.
  • Review environments for users with more than 16 /etc/groups memberships.
  • Confirm patched nix versions are present after rebuild and redeployment.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2021-45707 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.