CVE-2025-46718 Affecting rust-sudo-rs package, versions <0.2.8-1ubuntu2


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.02% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2510-RUSTSUDORS-13916089
  • published13 Nov 2025
  • disclosed12 May 2025

Introduced: 12 May 2025

CVE-2025-46718  (opens in a new tab)

How to fix?

Upgrade Ubuntu:25.10 rust-sudo-rs to version 0.2.8-1ubuntu2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rust-sudo-rs package and not the rust-sudo-rs package as distributed by Ubuntu. See How to fix? for Ubuntu:25.10 relevant fixed versions and status.

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.