CVEfocus › CVE database › CVE-2025-46718

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

CVSS 3.3 LowEPSS 0.3% (higher than 14% of CVEs)Published 2025-05-12Updated 2025-05-12Assigner: GitHub_M

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.

CWE-497

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

4Fixed
1Fix pending

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10rust-sudo-rsFixed0.2.8-1ubuntu2UBUNTU-CVE-2025-46718
Ubuntu 24.04rust-sudo-rsFix pendingUBUNTU-CVE-2025-46718
Debian 14rust-sudo-rsFixed0.2.5-5DEBIAN-CVE-2025-46718
Debian 13rust-sudo-rsFixed0.2.5-5DEBIAN-CVE-2025-46718
crates.io librarysudo-rsFixed0.2.6GHSA-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.

References

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.