GitHub Advisoryadvisory · crates.io
GHSA-m65q-v92h-cm7q users may append `root` to group listings
HIGH
Official page ↗
- Aliases
- CVE-2025-5791
- Ecosystem
- crates.io
- Packages
- users
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- Weaknesses
- CWE-266
- Reviewed
- 2025-06-05
Affected packages
• crates.io users: >= 0.8.0, <= 0.11.0 (no fix yet)
Description
Affected versions append `root` to group listings, unless the correct listing has exactly 1024 groups.
This affects both:
• The supplementary groups of a user
• The group access list of the current process
If the caller uses this information for access control, this may lead to privilege escalation.
This crate is not currently maintained, so a patched version is not available.
Versions older than 0.8.0 do not contain the affected functions, so downgrading to them is a workaround.
Recommended alternatives
• `uzers` (an actively maintained fork of the `users` crate)
• `sysinfo`
Related
Alias · CVE (1)
- CVE-2025-5791 A flaw was found in the user's crate for Rust. vulnerability
Weakness · CWE (1)
- CWE-266 Incorrect Privilege Assignment weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-5791 advisory
- https://github.com/ogham/rust-users/issues/44 web
- https://access.redhat.com/security/cve/CVE-2025-5791 web
- https://bugzilla.redhat.com/show_bug.cgi?id=2370001 web
- https://github.com/ogham/rust-users package
- https://rustsec.org/advisories/RUSTSEC-2025-0040.html web