CVE-2025-46718sudo-rs Allows Low Privilege Users to Enumerate Privileges of Others
sudo-rs is a memory safe implementation of sudo and su written in Rust. Prior to version 0.2.6, users with limited sudo privileges (e.g. execution of a single command) can list sudo privileges of other users using the `-U` flag. This vulnerability allows users with limited sudo privileges to enumerate the sudoers file, revealing sensitive information about other users' permissions. Attackers can collect information that can be used to more targeted attacks. Systems where users either do not have sudo privileges or have the ability to run all commands as root through sudo (the default configuration on most systems) are not affected by this advisory. Version 0.2.6 fixes the vulnerability.
What to do
Fixed builds are available from Debian, Ubuntu, crates.io: see the table below for the fixed version per release.
Ubuntu has 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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | rust-sudo-rs | Fixed | 0.2.8-1ubuntu2 | UBUNTU-CVE-2025-46718 |
| Ubuntu 24.04 | rust-sudo-rs | Fix pending | UBUNTU-CVE-2025-46718 | |
| Debian 14 | rust-sudo-rs | Fixed | 0.2.5-5 | DEBIAN-CVE-2025-46718 |
| Debian 13 | rust-sudo-rs | Fixed | 0.2.5-5 | DEBIAN-CVE-2025-46718 |
| crates.io library | sudo-rs | Fixed | 0.2.6 | GHSA-w9q3-g4p5-5q2r |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- trifectatechfoundation sudo-rs: affected: < 0.2.6
References
- https://github.com/trifectatechfoundation/sudo-rs/security/advisories/GHSA-w9q3-g4p5-5q2r
- https://github.com/trifectatechfoundation/sudo-rs/releases/tag/v0.2.6
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.