Skip to content

CVE-2025-46718 sudo-rs Allows Low Privilege Users to Enumerate Privileges of Others

LowCVSS 3.3 EPSS 0.27%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

6 packages: 4 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/rust-sudo-rs(Ubuntu 24.04) All versions No fix listed No fix yet
crates.io sudo-rs(crates.io) < 0.2.6 0.2.6 Fixed
debian/rust-sudo-rs(Debian 13) < 0.2.5-5 0.2.5-5 Fixed
debian/rust-sudo-rs(Debian 14) < 0.2.5-5 0.2.5-5 Fixed
trifectatech sudo < 0.2.6 0.2.6 Fixed
trifectatechfoundation sudo-rs = < 0.2.6 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
crates.io sudo-rs(crates.io) < 0.2.6 0.2.6
debian/rust-sudo-rs(Debian:13) < 0.2.5-5 0.2.5-5
debian/rust-sudo-rs(Debian:14) < 0.2.5-5 0.2.5-5
trifectatechfoundation sudo-rs = < 0.2.6 No fix listed
ubuntu/rust-sudo-rs(Ubuntu:24.04) All versions No fix listed
trifectatech sudo < 0.2.6 0.2.6

References