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.

Severity (CVSS 3.1)3.3Low
Exploit odds (30 days)0.3%top 80.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:13rust-sudo-rs0.2.5-5DEBIAN-CVE-2025-46718
Debian:14rust-sudo-rs0.2.5-5DEBIAN-CVE-2025-46718
Ubuntu:24.04:LTSrust-sudo-rsno fix listedUBUNTU-CVE-2025-46718
Ubuntu:25.10rust-sudo-rs0.2.8-1ubuntu2UBUNTU-CVE-2025-46718

Affected products (as reported)

VendorProductVersions
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

References