CVEfocus › CVE database › CVE-2025-5791

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

CVSS 7.1 HighEPSS 0.3% (higher than 11% of CVEs)Published 2025-06-06Updated 2026-11-23Assigner: redhat

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.

CWE-266

What to do

Ubuntu, crates.io have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fix pending
2Under investigation
3Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04rust-usersUnder investigationUBUNTU-CVE-2025-5791
Ubuntu 22.04rust-usersUnder investigationUBUNTU-CVE-2025-5791
Ubuntu 20.04rust-usersFix pendingUBUNTU-CVE-2025-5791
Red Hat Enterprise Linux 10ssh-key-dirWill not fix
Will not fix
Red Hat Enterprise Linux 9afterburnWill not fix
Will not fix
Red Hat Enterprise Linux 9afterburn-dracutWill not fix
Will not fix
crates.io libraryusersFix pendingGHSA-m65q-v92h-cm7q

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.