CVE-2025-5791
highpriority · track · 0EPSS 0.002 · 9 %ileEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.5–7.1
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (8)
Products and version ranges known to be affected.
- Red Hat Red Hat OpenShift sandboxed containers 1.1< sha256:a6f29da891174e57fcfd131da7aa90c50459ba24164111b83120a1b91f2eabbaenisa_euvdEU
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-m65q-v92h-cm7qusers may append `root` to group listings2025-06-05ghsa · osvUS
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`](https://crates.io/crates/uzers) (an actively maintained fork of the `users` crate) - [`sysinfo`](https://crates.io/crates/sysinfo)
- RUSTSEC-2025-0040`root` appended to group listings2025-01-15vendor · osvUS
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`](https://crates.io/crates/uzers) (an actively maintained fork of the `users` crate) - [`sysinfo`](https://crates.io/crates/sysinfo)
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (18)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/CVE-2025-5791cnnvd
- https://bugzilla.redhat.com/show_bug.cgi?id=2370001cnnvd
- https://crates.io/crates/userscnnvd
- https://github.com/ogham/rust-users/issues/44cnnvd
- https://rustsec.org/advisories/RUSTSEC-2025-0040.htmlcnnvd
- https://vigilance.fr/vulnerability/Rust-user-privilege-escalation-via-Group-Listing-47566cnnvd
- https://access.redhat.com/errata/RHSA-2025:12359enisa_euvd
- https://access.redhat.com/security/cve/CVE-2025-5791enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan