# CVE-2025-46718: rust-sudo-rs: sudo-rs is a memory safe implementation of sudo and su written in Rust

CVE-2025-46718 is fixed in 2 products on 1 platform, first by sudo-rs 0.2.8-1ubuntu2, released May 12, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2025-46718
- Priority: Routine
- CVSS: 3.3 (low)
- EPSS: 0.0027
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: May 12, 2025

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | rust-sudo-rs Debian 13.5 (trixie) | 0.2.5-5 | [DEBIAN-CVE-2025-46718](https://patchblox.com/security/data/fix/linux/debian-cve-2025-46718.md) | May 12, 2025 |
| Linux | rust-sudo-rs Debian 14 | 0.2.5-5 | [DEBIAN-CVE-2025-46718](https://patchblox.com/security/data/fix/linux/debian-cve-2025-46718.md) | May 12, 2025 |
| Linux | sudo-rs Ubuntu 25.10 (questing) | 0.2.8-1ubuntu2 | [sudo-rs 0.2.8-1ubuntu2](https://patchblox.com/security/data/fix/linux/ubuntu-questing-sudo-rs-0.2.8-1ubuntu2.md) | May 12, 2025 |

---

Data as of 2026-11-08T19:12:23Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
