{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-45707","id":"CVE-2021-45707","title":"Out-of-bounds Write in nix","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.","descriptionLong":"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.","published":"2021-12-26T21:48:02.000Z","updated":"2026-10-24T10:30:59.049643852Z","reserved":"2021-12-26T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","rating":"medium","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"nix","purl":"pkg:cargo/nix","ranges":[">=0.16.0 <0.20.2",">=0.21.0 <0.21.2",">=0.22.0 <0.22.2",">=0.21.0-0 <0.21.2",">=0.22.0-0 <0.22.2",">=0.23.0-0 <0.23.0"],"fixed":["0.20.2","0.21.2","0.22.2","0.23.0"],"advisory":"GHSA-76w9-p8mg-j927"}],"cwes":["CWE-787"],"aliases":["GHSA-76w9-p8mg-j927","GHSA-wgrg-5h56-jg27","RUSTSEC-2021-0119"],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0119.html","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report","web","advisory"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/nix/RUSTSEC-2021-0119.md","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/advisories/GHSA-wgrg-5h56-jg27","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45707","tags":["advisory"]},{"url":"https://github.com/nix-rust/nix/issues/1541","tags":["web","report"]},{"url":"https://github.com/nix-rust/nix","tags":["package"]},{"url":"https://crates.io/crates/nix","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.0169,"epssPercentile":0.77563,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-45707","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45707","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-45707","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-76w9-p8mg-j927","ok":true,"note":"GHSA-76w9-p8mg-j927"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-wgrg-5h56-jg27","ok":true,"note":"GHSA-wgrg-5h56-jg27"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-45707","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}