{"id":"GHSA-m65q-v92h-cm7q","revision":"b8853ac413454ecf8d6a11331bddb91f","records":[{"revision":"b8853ac413454ecf8d6a11331bddb91f","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-m65q-v92h-cm7q","aliases":["CVE-2025-5791","RUSTSEC-2025-0040"],"title":"users may append `root` to group listings","description":"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)","state":0,"publishedAt":"2025-06-05T01:17:28+00:00","modifiedAt":"2026-09-10T03:50:57.7061299+00:00","affected":[{"ecosystem":"crates.io","name":"users","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.8.0"},{"kind":"last_affected","version":"0.11.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2025-5791","https://github.com/ogham/rust-users/issues/44","https://access.redhat.com/security/cve/CVE-2025-5791","https://bugzilla.redhat.com/show_bug.cgi?id=2370001","https://github.com/ogham/rust-users","https://rustsec.org/advisories/RUSTSEC-2025-0040.html"],"sourceUrl":"https://github.com/advisories/GHSA-m65q-v92h-cm7q","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-m65q-v92h-cm7q","identifiers":["GHSA-m65q-v92h-cm7q","CVE-2025-5791","RUSTSEC-2025-0040"]},"retained":false,"historicalAffected":[]}],"coverage":[]}