CVE-2025-64170: sudo-rs: Partial password reveal is possible after timeout
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.
Published Nov 12, 2025 · Updated Nov 15, 2025
Affected packages
sudo-rs
- Ecosystem
- Rust (crates.io)
- Affected
- >= 0.2.7, < 0.2.10
- Fixed in
- 0.2.10
- Check
cargo tree -i sudo-rs
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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:
geiger@cerberus:~$ sudo -s
[sudo: authenticate] Password: sudo-rs: timed out
geiger@cerberus:~$ testtesttest"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.
Credited to DevLaTron, bjorn3, MggMuggins, squell.
References
- https://github.com/trifectatechfoundation/sudo-rs/security/advisories/GHSA-c978-wq47-pvvw
- https://github.com/trifectatechfoundation/sudo-rs/commit/0e3d3837aec3ee9fb5dcb8bfe11e8adb367f58f4
- https://nvd.nist.gov/vuln/detail/CVE-2025-64170
- https://github.com/trifectatechfoundation/sudo-rs/releases/tag/v0.2.10
- https://github.com/advisories/GHSA-c978-wq47-pvvw
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Rust (crates.io) vulnerabilities
All Rust (crates.io) entriesCVE-2025-64517
sudo-rs doesn't record authenticating user properly in timestamp
medium4.4Nov 13, 2025CVE-2025-46717
sudo-rs Allows Low Privilege Users to Discover the Existence of Files in Inaccessible Folders
low3.3May 13, 2025CVE-2025-46718
sudo-rs Allows Low Privilege Users to Enumerate Privileges of Others
low3.3May 13, 2025
