CVE-2025-5791 Details
Description
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.
A privilege escalation vulnerability exists in the Rust 'users' crate, specifically in versions 0.8.0 and later. The issue arises from an incorrect group listing that appends the 'root' group to user and process group access lists, unless the total number of groups is exactly 1024. This flaw can be exploited if the group information is used for access control.
Users can downgrade to versions prior to 0.8.0, which do not include the vulnerable functions, as a temporary workaround. Alternatively, the 'uzers' crate, an actively maintained fork of the 'users' crate, can be used.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 6, 2025CISA-ADP
Assessed Jun 6, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2025:12359 | [email protected] | |
| https://access.redhat.com/security/cve/CVE-2025-5791 | [email protected] | AdvisoryVendor |
| https://bugzilla.redhat.com/show_bug.cgi?id=2370001 | [email protected] | ExploitIssue TrackingRemedyVendor |
| https://crates.io/crates/users | [email protected] | ProductVendor |
| https://github.com/ogham/rust-users/issues/44 | [email protected] | ExploitIssue Tracking |
| https://rustsec.org/advisories/RUSTSEC-2025-0040.html | [email protected] | AdvisoryRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-266 | Incorrect Privilege Assignment | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Rust users | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 4, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 31, 2025 | CVE Modified | [email protected] |
| Jun 6, 2025 | New CVE Received | [email protected] |
Volerion