CVE-2025-5791 – users
Package
Manager: cargo
Name: users
Vulnerable Version: >=0.8.0 <=0.11.0
Severity
Level: High
CVSS v3.1: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
EPSS: 6e-05 pctl0.00328
Details
users may append `root` to group listings 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)
Metadata
Created: 2025-06-05T01:17:28Z
Modified: 2025-06-06T23:16:38Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-m65q-v92h-cm7q/GHSA-m65q-v92h-cm7q.json
CWE IDs: ["CWE-266"]
Alternative ID: GHSA-m65q-v92h-cm7q
Finding: F005
Auto approve: 1