Vulnerability · Published Jun 6, 2025 · Assigned by redhat
CVE-2025-5791Users: `root` appended to group listings
High 7.1
In plain English
A high-severity security flaw in rust-users. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities).
Severity (CVSS 3.1)7.1High
Exploit odds (30 days)0.2%top 89.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu:22.04:LTS | rust-users | no fix listed | UBUNTU-CVE-2025-5791 |
| Ubuntu:24.04:LTS | rust-users | no fix listed | UBUNTU-CVE-2025-5791 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| rust-users | 0.8.0 – before 0.11.1 | |
| Red Hat | Red Hat OpenShift sandboxed containers 1.10 | see references |
| Red Hat | Red Hat Enterprise Linux 10 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat OpenShift Container Platform 4 | see references |
| Red Hat | Red Hat OpenShift Container Platform 4 | see references |
| Red Hat | Red Hat Trusted Profile Analyzer | see references |
Weakness: CWE-266 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
References
- RHSA-2025:12359 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-5791 vdb-entry, x_refsource_REDHAT
- RHBZ#2370001 issue-tracking, x_refsource_REDHAT
- https://crates.io/crates/users
- https://github.com/ogham/rust-users/issues/44
- https://rustsec.org/advisories/RUSTSEC-2025-0040.html