CVE-2025-5791
A flaw was found in the user's crate for Rust. This vulnerability …
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 now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- access.redhat.com/errata/RHSA-2025:12359
- access.redhat.com/security/cve/CVE-2025-5791
- bugzilla.redhat.com/show_bug.cgi?id=2370001
- crates.io/crates/users
- github.com/ogham/rust-users/issues/44
- rustsec.org/advisories/RUSTSEC-2025-0040.html
- nvd.nist.gov/vuln/detail/CVE-2025-5791
- github.com/advisories/GHSA-m65q-v92h-cm7q
- nvd.nist.gov/vuln/detail/CVE-2025-5791
- cve.org/CVERecord?id=CVE-2025-5791
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.