CVE-2025-5791 — Vulnerability in users — CVE Details
users may append `root` to group listings
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.26%). Schedule for your next planned update.
Does your project use an affected users version?
Paste your Cargo.lock to check it for CVE-2025-5791 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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
Advisory Timeline
- First published June 5, 2025 (539 days ago).
- Last revised September 10, 2026 — 462 days after initial publication.
Affected Packages (1)
Affects 1 ecosystem: crates.io (1).
| Package | Fixed In |
|---|---|
| users crates.io · Affected: All versions | Range-based data available |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-266
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.1 score means for each attack dimension.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-5791ADVISORY
- https://github.com/ogham/rust-users/issues/44WEB
- https://access.redhat.com/security/cve/CVE-2025-5791WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2370001WEB
- https://github.com/ogham/rust-usersPACKAGE
- https://rustsec.org/advisories/RUSTSEC-2025-0040.htmlWEB
Frequently Asked Questions
- What is CVE-2025-5791?
- users may append `root` to group listings. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.1/10).
- How do I check if my project is affected by CVE-2025-5791?
- CVE-2025-5791 affects users. It has a 0.3% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-5791 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 10.7% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-83816HIGH
CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE
- CVE-2026-83817HIGH
CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution