sudo-rs: Partial password reveal is possible after timeout
Low severity
GitHub Reviewed
Published
Nov 11, 2025
in
trifectatechfoundation/sudo-rs
•
Updated Nov 15, 2025
Description
Published by the National Vulnerability Database
Nov 12, 2025
Published to the GitHub Advisory Database
Nov 12, 2025
Reviewed
Nov 12, 2025
Last updated
Nov 15, 2025
Summary
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.
Example
Using sudo-rs:
"testtesttest" was entered at the password prompt but not confirmed by pressing return and then waiting for the timeout.
Impact
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.
Versions affected
Passwords timeouts were added in sudo-rs 0.2.7 (with a default set to 5 minutes).
Credits
This issue was discovered and reported by @DevLaTron.
References