CVE catalog

CVE-2021-45707

rust-nix: CVE-2021-45707

[CVE catalog]

Severity
Medium
Published
Source
[NVD] · [CVE record]
EPSS
1.69% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianrust-nixsid0.30.1-3fixed
Debianrust-nixforky0.30.1-3fixed
Debianrust-nixtrixie0.29.0-2fixed
Debianrust-nixbookworm0.26.1-3fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianrust-nixsourcesid0.23.0-1not yet assignedNot reportedNot reported
Debianrust-nixsourceforky0.23.0-1not yet assignedNot reportedNot reported
Debianrust-nixsourcetrixie0.23.0-1not yet assignedNot reportedNot reported
Debianrust-nixsourcebookworm0.23.0-1not yet assignedNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [rust-nix]

    Details (2)
    • 0.26.1-3 · amd64 · bookworm

      Fixed · Fixed: 0.23.0-1

      dsa · rust-nix · debian · bookworm; dsa · rust-nix · debian · 12

    • 0.26.1-3 · arm64 · bookworm

      Fixed · Fixed: 0.23.0-1

      dsa · rust-nix · debian · bookworm; dsa · rust-nix · debian · 12

[Debian 13 (Trixie)]

  • Source package: [rust-nix]

    Details (2)
    • 0.29.0-2 · amd64 · trixie

      Fixed · Fixed: 0.23.0-1

      dsa · rust-nix · debian · 13

    • 0.29.0-2 · arm64 · trixie

      Fixed · Fixed: 0.23.0-1

      dsa · rust-nix · debian · 13

Observed:

References