Skip to content
OpenAdvisories
Low · 3.3 CVE-2025-46718 EUVD-2025-14323GHSA-w9q3-g4p5-5q2r

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

Published May 12, 2025 · Updated May 12, 2025 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
trifectatechfoundation sudo-rs < 0.2.6 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rust-sudo-rs 0.2.5-5 —
Debian 13 rust-sudo-rs 0.2.5-5 —
ReleasePackageFixed inAdvisory
Ubuntu 25.10 rust-sudo-rs 0.2.8-1ubuntu2 —
Ubuntu 24.04 LTS rust-sudo-rs No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io sudo-rs < 0.2.6 0.2.6 GHSA-w9q3-g4p5-5q2r

Advisories 1

References