Description
sudo-rs is a memory safe implementation of sudo and su written in Rust. Prior to version 0.2.6, users with no (or very limited) sudo privileges can determine whether files exists in folders that they otherwise cannot access using `sudo --list <pathname>`. Users with local access to a machine can discover the existence/non-existence of certain files, revealing potentially sensitive information in the file names. This information can also be used in conjunction with other attacks. Version 0.2.6 fixes the vulnerability.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rust-sudo-rs | 0.2.5-5 | — |
| Debian 13 | rust-sudo-rs | 0.2.5-5 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 25.10 | rust-sudo-rs | 0.2.8-1ubuntu2 | — |
| Ubuntu 24.04 LTS | rust-sudo-rs | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | sudo-rs | < 0.2.6 | 0.2.6 | GHSA-98cv-wqjx-wx8f |
Advisories 1
- WID-SEC-2025-1043 sudo-rs: Mehrere Schwachstellen ermöglichen Offenlegung von Informationen BSI CERT-Bund (WID) · May 13, 2025