Vulnerability · Published May 12, 2025 · Assigned by GitHub_M
CVE-2025-46718sudo-rs Allows Low Privilege Users to Enumerate Privileges of Others
Low 3.3
In plain English
A low-severity security flaw in sudo-rs from trifectatechfoundation. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 20% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | rust-sudo-rs | 0.2.5-5 | DEBIAN-CVE-2025-46718 |
| Debian:14 | rust-sudo-rs | 0.2.5-5 | DEBIAN-CVE-2025-46718 |
| Ubuntu:24.04:LTS | rust-sudo-rs | no fix listed | UBUNTU-CVE-2025-46718 |
| Ubuntu:25.10 | rust-sudo-rs | 0.2.8-1ubuntu2 | UBUNTU-CVE-2025-46718 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| trifectatechfoundation | sudo-rs | < 0.2.6 |
Weakness: CWE-497 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N