{"id":"CVE-2025-5791","aliases":["RUSTSEC-2025-0040"],"url":"https://o3.security/vulnerability/CVE-2025-5791","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)","published":"2025-06-05T01:17:28Z","modified":"2026-09-10T03:50:57.706129891Z","cvss":{"score":7.1,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"},"epss":{"score":0.00173,"percentile":0.06729,"asOf":"2026-08-24"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"users","fixedVersion":null}],"fix":null,"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-09-10T03:50:57.706129891Z"}}