High severity · published Jun 6, 2025
CVE-2025-5791
Users: `root` appended to group listings
7.1
CVSS
0.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 9% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RH
Red Hat Enterprise Linux 10 · Red Hat
All versions, or not specified · source: vendor
RH
Red Hat Enterprise Linux 9 · Red Hat
All versions, or not specified · source: vendor
RH
Red Hat OpenShift Container Platform 4 · Red Hat
All versions, or not specified · source: vendor
RH
Red Hat OpenShift sandboxed containers 1.1 · Red Hat
All versions, or not specified · source: vendor
RH
Red Hat Trusted Profile Analyzer · Red Hat
All versions, or not specified · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-5791
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-5791
access.redhat.com
https://access.redhat.com/errata/RHSA-2025:12359
access.redhat.com
https://access.redhat.com/security/cve/CVE-2025-5791
bugzilla.redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=2370001
crates.io
https://crates.io/crates/users
github.com
https://github.com/ogham/rust-users/issues/44
rustsec.org
https://rustsec.org/advisories/RUSTSEC-2025-0040.html
More from Red Hat Enterprise Linux 10
7.8
CVE-2026-46300
net: skbuff: preserve shared-frag marker during coalescing
7.8
CVE-2026-31431
crypto: algif_aead - Revert to operating out-of-place
7.5
CVE-2026-34486
Apache Tomcat: Fix for CVE-2026-29146 allowed bypass of EncryptInterceptor
10.0
CVE-2026-46595
Invoking VerifiedPublicKeyCallback permissions skip enforcement in golang.org/x/crypto/ssh
10.0
CVE-2026-34078
Flatpak has a complete sandbox escape leading to host file access and code execution in the host context
