Red Hat VEX
RHVEX-CVE-2025-5791
users: `root` appended to group listings
Details
A flaw was found in the user's crate for Rust. This vulnerability allows privilege escalation via incorrect group listing when a user or process has fewer than exactly 1024 groups, leading to the erroneous inclusion of the root group in the access list.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | ssh-key-dir | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | afterburn | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | afterburn-dracut | All versions, will not be fixed |
References
- https://access.redhat.com/security/cve/CVE-2025-5791
- https://bugzilla.redhat.com/show_bug.cgi?id=2370001
- https://www.cve.org/CVERecord?id=CVE-2025-5791
- https://nvd.nist.gov/vuln/detail/CVE-2025-5791
- https://crates.io/crates/users
- https://github.com/ogham/rust-users/issues/44
- https://rustsec.org/advisories/RUSTSEC-2025-0040.html