{"id":"GHSA-wgrg-5h56-jg27","revision":null,"records":[{"revision":"8a36101ff73f40c2bcd49f86d7628b32","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2021-45707","aliases":[],"title":"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.","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.","state":0,"publishedAt":"2021-12-26T21:48:02+00:00","modifiedAt":"2024-08-04T04:47:02.459+00:00","affected":[{"ecosystem":"Vendor product","name":"n/a","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"n/a\",\n                    \"vendor\": \"n/a\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"n/a\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://rustsec.org/advisories/RUSTSEC-2021-0119.html","https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/nix/RUSTSEC-2021-0119.md","https://github.com/advisories/GHSA-wgrg-5h56-jg27"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2021-45707","license":"CVE Program Terms of Use","key":"cve-program:CVE-2021-45707","identifiers":["CVE-2021-45707"]},"retained":false,"historicalAffected":[]},{"revision":"ac0c6c4ea8da4930b59fa2a18dcba68c","observedAt":"2026-11-18T03:38:03.957+00:00","statement":{"source":"euvd","id":"EUVD-2022-0497","aliases":["CVE-2021-45707","GHSA-76w9-p8mg-j927"],"title":"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.","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[],"references":["https://rustsec.org/advisories/RUSTSEC-2021-0119.html","https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/nix/RUSTSEC-2021-0119.md","https://github.com/advisories/GHSA-wgrg-5h56-jg27"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-0497","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Dec 26, 2021, 9:48:02 PM","dateUpdated":"Aug 4, 2024, 4:47:02 AM"},"relatedAdvisories":[{"id":"msrc_CVE-2021-45707","title":"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.","vulnerabilityIds":["CVE-2021-45707"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2022-0497","identifiers":["EUVD-2022-0497","CVE-2021-45707","GHSA-76w9-p8mg-j927"]},"retained":false,"historicalAffected":[]},{"revision":"f679cfaa875745c38fbbf58b1adaf133","observedAt":"2026-10-24T19:17:37.358+00:00","statement":{"source":"nvd","id":"CVE-2021-45707","aliases":[],"title":"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.","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.","state":0,"publishedAt":"2021-12-27T00:15:09.94+00:00","modifiedAt":"2026-06-17T04:13:59.38+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"severity":"CRITICAL"},{"system":"CVSS 2.0 · nvd@nist.gov · Primary","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"severity":"HIGH"}],"references":["https://github.com/advisories/GHSA-wgrg-5h56-jg27","https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/nix/RUSTSEC-2021-0119.md","https://rustsec.org/advisories/RUSTSEC-2021-0119.html"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2021-45707","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-787"],"productCriteria":["cpe:2.3:a:nix_project:nix:*:*:*:*:*:rust:*:*"],"sourceDates":{"published":"2021-12-27T00:15:09.940","lastModified":"2026-06-17T04:13:59.380"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2021-45707","identifiers":["CVE-2021-45707"]},"retained":false,"historicalAffected":[]},{"revision":"b1e7cffd2e8d4f028a9f1199c2955bbe","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-76w9-p8mg-j927","aliases":["CVE-2021-45707","GHSA-wgrg-5h56-jg27","RUSTSEC-2021-0119"],"title":"Out-of-bounds Write in nix","description":"On certain platforms, if a user has more than 16 groups, the nix::unistd::getgrouplist function will call the libc getgrouplist function with a length parameter greater than the size of the buffer it provides, resulting in an out-of-bounds write and memory corruption.\n\nThe libc getgrouplist function takes an in/out parameter ngroups specifying the size of the group buffer. When the buffer is too small to hold all of the requested user's group memberships, some libc implementations, including glibc and Solaris libc, will modify ngroups to indicate the actual number of groups for the user, in addition to returning an error. The version of nix::unistd::getgrouplist in nix 0.16.0 and up will resize the buffer to twice its size, but will not read or modify the ngroups variable. Thus, if the user has more than twice as many groups as the initial buffer size of 8, the next call to getgrouplist will then write past the end of the buffer.\n\nThe issue would require editing /etc/groups to exploit, which is usually only editable by the root user.","state":0,"publishedAt":"2022-01-06T22:07:14+00:00","modifiedAt":"2026-09-10T03:49:10.6201002+00:00","affected":[{"ecosystem":"crates.io","name":"nix","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.16.0"},{"kind":"fixed","version":"0.20.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"crates.io","name":"nix","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.21.0"},{"kind":"fixed","version":"0.21.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"crates.io","name":"nix","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.22.0"},{"kind":"fixed","version":"0.22.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2021-45707","https://github.com/nix-rust/nix/issues/1541","https://github.com/advisories/GHSA-wgrg-5h56-jg27","https://github.com/nix-rust/nix","https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/nix/RUSTSEC-2021-0119.md","https://rustsec.org/advisories/RUSTSEC-2021-0119.html"],"sourceUrl":"https://github.com/advisories/GHSA-76w9-p8mg-j927","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-76w9-p8mg-j927","identifiers":["GHSA-76w9-p8mg-j927","CVE-2021-45707","GHSA-wgrg-5h56-jg27","RUSTSEC-2021-0119"]},"retained":false,"historicalAffected":[]},{"revision":"4ebc294a72b44466829f160e6b5bdfa3","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-wgrg-5h56-jg27","aliases":["CVE-2021-45707","GHSA-76w9-p8mg-j927","RUSTSEC-2021-0119"],"title":"Out-of-bounds write in nix::unistd::getgrouplist","description":"On certain platforms, if a user has more than 16 groups, the\n`nix::unistd::getgrouplist` function will call the libc `getgrouplist`\nfunction with a length parameter greater than the size of the buffer it\nprovides, resulting in an out-of-bounds write and memory corruption.\n\nThe libc `getgrouplist` function takes an in/out parameter `ngroups`\nspecifying the size of the group buffer. When the buffer is too small to\nhold all of the reqested user's group memberships, some libc\nimplementations, including glibc and Solaris libc, will modify `ngroups`\nto indicate the actual number of groups for the user, in addition to\nreturning an error. The version of `nix::unistd::getgrouplist` in nix\n0.16.0 and up will resize the buffer to twice its size, but will not\nread or modify the `ngroups` variable. Thus, if the user has more than\ntwice as many groups as the initial buffer size of 8, the next call to\n`getgrouplist` will then write past the end of the buffer.\n\nThe issue would require editing /etc/groups to exploit, which is usually\nonly editable by the root user.\n","state":0,"publishedAt":"2022-06-17T00:13:59+00:00","modifiedAt":"2026-09-10T03:49:44.2307553+00:00","affected":[{"ecosystem":"crates.io","name":"nix","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.16.0"},{"kind":"fixed","version":"0.20.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"crates.io","name":"nix","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.21.0"},{"kind":"fixed","version":"0.21.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"crates.io","name":"nix","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.22.0"},{"kind":"fixed","version":"0.22.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/nix-rust/nix/issues/1541","https://github.com/nix-rust/nix","https://rustsec.org/advisories/RUSTSEC-2021-0119.html"],"sourceUrl":"https://github.com/advisories/GHSA-wgrg-5h56-jg27","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-wgrg-5h56-jg27","identifiers":["GHSA-wgrg-5h56-jg27","CVE-2021-45707","GHSA-76w9-p8mg-j927","RUSTSEC-2021-0119"]},"retained":false,"historicalAffected":[]},{"revision":"5cddedd565d6482f9ae156da40a87bf6","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2021-0119","aliases":["CVE-2021-45707","GHSA-76w9-p8mg-j927","GHSA-wgrg-5h56-jg27"],"title":"Out-of-bounds write in nix::unistd::getgrouplist","description":"On certain platforms, if a user has more than 16 groups, the\n`nix::unistd::getgrouplist` function will call the libc `getgrouplist`\nfunction with a length parameter greater than the size of the buffer it\nprovides, resulting in an out-of-bounds write and memory corruption.\n\nThe libc `getgrouplist` function takes an in/out parameter `ngroups`\nspecifying the size of the group buffer. When the buffer is too small to\nhold all of the requested user's group memberships, some libc\nimplementations, including glibc and Solaris libc, will modify `ngroups`\nto indicate the actual number of groups for the user, in addition to\nreturning an error. The version of `nix::unistd::getgrouplist` in nix\n0.16.0 and up will resize the buffer to twice its size, but will not\nread or modify the `ngroups` variable. Thus, if the user has more than\ntwice as many groups as the initial buffer size of 8, the next call to\n`getgrouplist` will then write past the end of the buffer.\n\nThe issue would require editing /etc/groups to exploit, which is usually\nonly editable by the root user.","state":0,"publishedAt":"2021-09-27T12:00:00+00:00","modifiedAt":"2023-11-08T04:07:23.055467+00:00","affected":[{"ecosystem":"crates.io","name":"nix","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.16.0"},{"kind":"fixed","version":"0.20.2"},{"kind":"introduced","version":"0.21.0-0"},{"kind":"fixed","version":"0.21.2"},{"kind":"introduced","version":"0.22.0-0"},{"kind":"fixed","version":"0.22.2"},{"kind":"introduced","version":"0.23.0-0"},{"kind":"fixed","version":"0.23.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/nix","https://rustsec.org/advisories/RUSTSEC-2021-0119.html","https://github.com/nix-rust/nix/issues/1541"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2021-0119","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2021-0119","identifiers":["RUSTSEC-2021-0119","CVE-2021-45707","GHSA-76w9-p8mg-j927","GHSA-wgrg-5h56-jg27"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-19T05:22:48.4383343+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-19T05:22:48.4383343+00:00","lastSuccessAt":"2026-11-19T05:22:48.5819004+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.581904+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-e55c589538e0700b45c7d6d41fe1447a79199283262c371c864535c791a040b9-a3c5d1f50b99987b637138fdc7cd9e1e0d772b1c81dbbff4bcc8be865c192a98","complete":true,"records":428232,"lastAttemptAt":"2026-11-19T05:22:47.9486287+00:00","lastSuccessAt":"2026-11-19T05:22:47.9265788+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:47.9486287+00:00","snapshotPublishedAt":"2026-11-19T04:33:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-b150ae109cce487fa19ffff3143f135b","complete":false,"records":13861,"lastAttemptAt":"2026-11-19T05:26:49.7145638+00:00","lastSuccessAt":"2026-11-19T05:26:49.7829309+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:26:49.7829309+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-19T05:22:48.4383343+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-19T05:22:48.4383343+00:00","lastSuccessAt":"2026-11-19T05:22:48.5827402+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.5827403+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-84b4b212d7ef41cb9ec24b71e9d8e5d8","complete":true,"records":13873,"lastAttemptAt":"2026-11-19T05:22:49.1394496+00:00","lastSuccessAt":"2026-11-19T04:24:39.391+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:24:39.391+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13908,"expectedIdentifiers":13908,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-76574c95b6792d47ba90af64983ed5843633f14426346d676016e94a5f383202","complete":true,"records":9963,"lastAttemptAt":"2026-11-19T05:22:48.2819697+00:00","lastSuccessAt":"2026-11-19T01:24:31.4213722+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.2819697+00:00","snapshotPublishedAt":"2026-11-19T01:03:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-19T05:22:48.0028407+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.0028407+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-c0d9c71c6fa06d617f979e7bec0d97aca70ca5aea1558184002f8e44516f2fac","complete":true,"records":3177,"lastAttemptAt":"2026-11-19T05:22:48.391557+00:00","lastSuccessAt":"2026-11-18T21:25:09.5127964+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.391557+00:00","snapshotPublishedAt":"2026-11-18T21:18:06+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-2556fa291ec863b7fd77332e55dcff5569878e06b48ea32c182e52878cdd1ce8","complete":true,"records":232702,"lastAttemptAt":"2026-11-19T05:22:48.1723185+00:00","lastSuccessAt":"2026-11-19T04:24:35.8955272+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.1723185+00:00","snapshotPublishedAt":"2026-11-19T03:33:12+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}