{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-45707","published":"2021-12-27T00:15:09.940000Z","last_modified":"2026-06-17T04:13:59.380000Z","status":"Modified","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-787"],"cpes":[{"criteria":"cpe:2.3:a:nix_project:nix:*:*:*:*:*:rust:*:*","part":"a","vendor":"nix_project","product":"nix","version_start_including":"0.16.0","version_end_excluding":"0.20.2"},{"criteria":"cpe:2.3:a:nix_project:nix:*:*:*:*:*:rust:*:*","part":"a","vendor":"nix_project","product":"nix","version_start_including":"0.21.0","version_end_excluding":"0.21.2"},{"criteria":"cpe:2.3:a:nix_project:nix:*:*:*:*:*:rust:*:*","part":"a","vendor":"nix_project","product":"nix","version_start_including":"0.22.0","version_end_excluding":"0.22.2"}],"cpes_truncated":false,"vendors":["nix_project"],"products":["nix_project/nix"],"epss":{"score":0.0169,"percentile":0.77521,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-76w9-p8mg-j927","ecosystem":"crates.io","name":"nix","purl":"pkg:cargo/nix","ranges":[{"introduced":"0.16.0","fixed":"0.20.2"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-76w9-p8mg-j927","ecosystem":"crates.io","name":"nix","purl":"pkg:cargo/nix","ranges":[{"introduced":"0.21.0","fixed":"0.21.2"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-76w9-p8mg-j927","ecosystem":"crates.io","name":"nix","purl":"pkg:cargo/nix","ranges":[{"introduced":"0.22.0","fixed":"0.22.2"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-wgrg-5h56-jg27","ecosystem":"crates.io","name":"nix","purl":"pkg:cargo/nix","ranges":[{"introduced":"0.16.0","fixed":"0.20.2"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-wgrg-5h56-jg27","ecosystem":"crates.io","name":"nix","purl":"pkg:cargo/nix","ranges":[{"introduced":"0.21.0","fixed":"0.21.2"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-wgrg-5h56-jg27","ecosystem":"crates.io","name":"nix","purl":"pkg:cargo/nix","ranges":[{"introduced":"0.22.0","fixed":"0.22.2"}],"versions":[],"versions_truncated":false},{"advisory":"RUSTSEC-2021-0119","ecosystem":"crates.io","name":"nix","purl":"pkg:cargo/nix","ranges":[{"introduced":"0.16.0","fixed":"0.20.2"},{"introduced":"0.21.0-0","fixed":"0.21.2"},{"introduced":"0.22.0-0","fixed":"0.22.2"},{"introduced":"0.23.0-0","fixed":"0.23.0"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2021-45707/","html_en":"/en/cve/CVE-2021-45707/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-45707","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-45707"},"untrusted":{"vendor_name":"Nix Project","product_name":"Nix","desc_en":"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":[],"references":[{"url":"https://github.com/advisories/GHSA-wgrg-5h56-jg27","tags":["Third Party Advisory"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/nix/RUSTSEC-2021-0119.md","tags":["Third Party Advisory"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0119.html","tags":["Issue Tracking","Third Party Advisory"]}]}}