Description
sudo-rs is a memory safe implementation of sudo and su written in Rust. Starting in version 0.2.7 and prior to version 0.2.10, if a user begins entering a password but does not press return for an extended period, a password timeout may occur. When this happens, the keystrokes that were entered are echoed back to the console. This could reveal partial password information, possibly exposing history files when not carefully handled by the user and on screen, usable for Social Engineering or Pass-By attacks. Version 0.2.10 fixes the issue.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| trifectatechfoundation | sudo-rs | >= 0.2.7, < 0.2.10 | — |
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.10-1 | — |
| Debian 13 | rust-sudo-rs | 0.2.5-5+deb13u1 | DSA-6052-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 25.10 | rust-sudo-rs | 0.2.8-1ubuntu5.2 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | sudo-rs | >= 0.2.7, < 0.2.10 | 0.2.10 | GHSA-c978-wq47-pvvw |
Advisories 1
- DSA-6052-1 rust-sudo-rs - security update Debian Security (DSA / DLA) · Nov 11, 2025