# CVE-2025-5791: Users: `root` appended to group listings

- Severity: High 7.1 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-01-15T12:00:00.000Z
- Modified: 2026-11-23T16:17:23.567Z
- Also known as: GHSA-m65q-v92h-cm7q, RUSTSEC-2025-0040
- Weaknesses: CWE-266
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- rust-users: from 0.8.0 before 0.11.1
- openshift-sandboxed-containers/osc-rhel9-operator: no versions given (not affected: from 1.10-1753885668 before *)
- rust-ssh-key-dir: no versions given
- rust-afterburn: no versions given
- kata-containers: no versions given
- rhtpa/rhtpa-trustification-service-rhel9: no versions given
- users (crates.io): from 0.8.0 up to 0.11.0; from 0.8.0

## Every score

- redhat: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://access.redhat.com/errata/RHSA-2025:12359> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2025-5791> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2370001> (issue-tracking, web)
- <https://crates.io/crates/users> (package)
- <https://github.com/ogham/rust-users/issues/44> (report, web)
- <https://rustsec.org/advisories/RUSTSEC-2025-0040.html> (advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-5791> (advisory)
- <https://github.com/ogham/rust-users> (package)

## Sources

- CVE List: [CVE-2025-5791](https://www.cve.org/CVERecord?id=CVE-2025-5791), CVE Terms of Use, modified 2026-11-23
- GitHub Advisory Database: [GHSA-m65q-v92h-cm7q](https://github.com/advisories/GHSA-m65q-v92h-cm7q), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2025-0040](https://rustsec.org/advisories/RUSTSEC-2025-0040.html), CC0-1.0, modified 2025-10-28
- NVD: [CVE-2025-5791](https://nvd.nist.gov/vuln/detail/CVE-2025-5791), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2025-5791 · Whole record: https://cve.day/CVE-2025-5791.json · Rebuilt by cve.day 2026-11-25T22:58:58.883Z
