CVE-2025-5791Users: `root` appended to group listings
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.
What to do
Ubuntu, crates.io have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | rust-users | Under investigation | UBUNTU-CVE-2025-5791 | |
| Ubuntu 22.04 | rust-users | Under investigation | UBUNTU-CVE-2025-5791 | |
| Ubuntu 20.04 | rust-users | Fix pending | UBUNTU-CVE-2025-5791 | |
| Red Hat Enterprise Linux 10 | ssh-key-dir | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | afterburn | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | afterburn-dracut | Will not fix Will not fix | ||
| crates.io library | users | Fix pending | GHSA-m65q-v92h-cm7q |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- rust-users: affected: 0.8.0 to before 0.11.1; fixed in
0.11.1 - Red Hat OpenShift sandboxed containers 1.10
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
- Red Hat Trusted Profile Analyzer
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2025:12359 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2025:12359
- https://access.redhat.com/security/cve/CVE-2025-5791
- https://bugzilla.redhat.com/show_bug.cgi?id=2370001
- https://crates.io/crates/users
- https://github.com/ogham/rust-users/issues/44
- https://rustsec.org/advisories/RUSTSEC-2025-0040.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.