CVE-2025-5791
HIGH 7.1CVSS 3.1Users: `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.
- Published
- 6 Jun 2025
- Last modified
- 23 Nov 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Deferred
- Weakness
- CWE-266
- Also known as
- GHSA-m65q-v92h-cm7qRUSTSEC-2025-0040
- Sources
- NVDJSONCVE ListJSONOSV GHSA-m65q-v92h-cm7qJSONOSV RUSTSEC-2025-0040JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| CVE List | redhat | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: total |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | https://github.com/ogham/rust-users/ | rust-users | >= 0.8.0, < 0.11.1 | 0.11.1 |
| CVE List | https://catalog.redhat.com/software/containers/ | openshift-sandboxed-containers/osc-rhel9-operatorcpe:/a:redhat:confidential_compute_attestation:1.10::el9 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rust-ssh-key-dircpe:/o:redhat:enterprise_linux:10 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rust-afterburncpe:/o:redhat:enterprise_linux:9 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | kata-containerscpe:/a:redhat:openshift:4 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rust-afterburncpe:/a:redhat:openshift:4 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhtpa/rhtpa-trustification-service-rhel9cpe:/a:redhat:trusted_profile_analyzer:1 |
all versions | |
| OSV | crates.io | users | >= 0.8.0, <= 0.11.0 | |
| OSV | crates.io | users | >= 0.8.0 |
References
- https://access.redhat.com/errata/RHSA-2025:12359 · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-5791 · vdb-entry, x_refsource_REDHAT, WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2370001 · issue-tracking, x_refsource_REDHAT, WEB
- https://crates.io/crates/users · PACKAGE
- https://github.com/ogham/rust-users/issues/44 · WEB, REPORT
- https://rustsec.org/advisories/RUSTSEC-2025-0040.html · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2025-5791 · ADVISORY
- https://github.com/ogham/rust-users · PACKAGE
History
- 25 Nov 2026 20:34 UTC · CVE List: first stored (published 6 Jun 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Jan 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Jun 2025)
- 25 Nov 2026 20:10 UTC · NVD: first stored (published 6 Jun 2025)