UBUNTU-CVE-2021-45707

Source
https://ubuntu.com/security/CVE-2021-45707
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45707.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2021-45707
Upstream
Published
2021-12-27T00:15:00Z
Modified
2025-09-08T16:47:27Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:Pro:20.04:LTS / rust-nix

Package

Name
rust-nix
Purl
pkg:deb/ubuntu/rust-nix@0.16.1-1?arch=source&distro=esm-apps/focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.14.1-1
0.15.0-1
0.15.0-2
0.16.1-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.16.1-1",
            "binary_name": "librust-nix-dev"
        }
    ]
}

Ubuntu:22.04:LTS / rust-nix

Package

Name
rust-nix
Purl
pkg:deb/ubuntu/rust-nix@0.23.1-1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.19.0-1
0.19.0-2
0.23.1-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.23.1-1",
            "binary_name": "librust-nix-dev"
        }
    ]
}

Ubuntu:24.04:LTS / rust-nix

Package

Name
rust-nix
Purl
pkg:deb/ubuntu/rust-nix@0.27.1-1build1?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.26.2-1
0.27.1-1
0.27.1-1build1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.27.1-1build1",
            "binary_name": "librust-nix-dev"
        }
    ]
}

Ubuntu:25.04 / rust-nix

Package

Name
rust-nix
Purl
pkg:deb/ubuntu/rust-nix@0.29.0-2?arch=source&distro=plucky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.27.1-5
0.29.0-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.29.0-2",
            "binary_name": "librust-nix-dev"
        }
    ]
}