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

Published Jun 3, 2025
·
Updated

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.

Other sources

Affected versions append root to group listings, unless the correct listing has exactly 1024 groups.

This affects both:

- The supplementary groups of a user - The group access list of the current process

If the caller uses this information for access control, this may lead to privilege escalation.

This crate is not currently maintained, so a patched version is not available.

Versions older than 0.8.0 do not contain the affected functions, so downgrading to them is a workaround.

Recommended alternatives - uzers (an actively maintained fork of the users crate) - sysinfo

Red Hat

Users: root appended to group listings

Microsoft

Affected Software

6 affected componentsFixes available
Rust users>0.8.0
rust/users>=0.8.0<=0.11.0
Microsoft azl3 kata-containers-cc 3.15.0.aks0-12<3.15.0.aks0-14
3.15.0.aks0-14
Microsoft cbl2 kata-containers-cc 3.2.0.azl2-7<3.2.0.azl2-7
3.2.0.azl2-7
Microsoft azl3 kata-containers-cc 3.15.0.aks0-4
Microsoft azl3 kata-containers-cc 3.15.0.aks0-5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.15.0.aks0-14
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.2.0.azl2-7

Event History

Jun 3, 2025
Data Sourced
via Red Hat·01:02 PM
DescriptionSeverityAffected Software
Jun 5, 2025
Advisory Published
via GitHub·01:17 AM
Data Sourced
via GitHub·01:17 AM
DescriptionSeverityWeaknessAffected Software
Jun 6, 2025
CVE Published
via MITRE·01:10 PM
Data Sourced
via MITRE·01:10 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:15 PM
DescriptionSeverityWeakness
Aug 6, 2025
Data Sourced
via Microsoft·12:00 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·12:00 AM
SeverityAffected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Updated
via Microsoft·07:00 AM
SeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-5791?

CVE-2025-5791 has been classified with a high severity due to its potential for privilege escalation.

2

How do I fix CVE-2025-5791?

To fix CVE-2025-5791, upgrade the Rust users crate to version 0.11.0 or later.

3

What versions are affected by CVE-2025-5791?

CVE-2025-5791 affects Rust users crate versions between 0.8.0 and 0.11.0.

4

What kind of vulnerability is CVE-2025-5791?

CVE-2025-5791 is a privilege escalation vulnerability due to incorrect group listing in the Rust users crate.

5

Who is impacted by CVE-2025-5791?

CVE-2025-5791 impacts users of the Rust users crate that have fewer than 1024 groups.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203