{"id":"GHSA-m65q-v92h-cm7q","summary":"users may append `root` to group listings","details":"Affected versions append `root` to group listings, unless the correct listing has exactly 1024 groups.\n\nThis affects both:\n\n- The supplementary groups of a user\n- The group access list of the current process\n\nIf the caller uses this information for access control, this may lead to privilege escalation.\n\nThis crate is not currently maintained, so a patched version is not available.\n\nVersions older than 0.8.0 do not contain the affected functions, so downgrading to them is a workaround.\n\n## Recommended alternatives\n- [`uzers`](https://crates.io/crates/uzers) (an actively maintained fork of the `users` crate)\n- [`sysinfo`](https://crates.io/crates/sysinfo)","aliases":["CVE-2025-5791","RUSTSEC-2025-0040"],"modified":"2026-09-10T03:50:57.706129891Z","published":"2025-06-05T01:17:28Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2025-06-05T01:17:28Z","nvd_published_at":null,"cwe_ids":["CWE-266"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-5791"},{"type":"WEB","url":"https://github.com/ogham/rust-users/issues/44"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-5791"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2370001"},{"type":"PACKAGE","url":"https://github.com/ogham/rust-users"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2025-0040.html"}],"affected":[{"package":{"name":"users","ecosystem":"crates.io","purl":"pkg:cargo/users"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.8.0"},{"last_affected":"0.11.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-m65q-v92h-cm7q/GHSA-m65q-v92h-cm7q.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"}]}