CVE-2025-64170
LOW3.8EPSS 0.01%sudo-rs: Partial password reveal is possible after timeout
Description
### 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.
Affected packages (3)
- crates.io/sudo-rs>= 0.2.7, < 0.2.10
- Debian/rust-sudo-rsfrom 0, < 0.2.5-5+deb13u1
- Debian/rust-sudo-rsfrom 0, < 0.2.5-5+deb13u1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | LOW3.8 | CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N |
References (6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2025-64170
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2025-64170
- PATCHhttps://github.com/trifectatechfoundation/sudo-rs
- WEBhttps://github.com/trifectatechfoundation/sudo-rs/commit/0e3d3837aec3ee9fb5dcb8bfe11e8adb367f58f4
- WEBhttps://github.com/trifectatechfoundation/sudo-rs/releases/tag/v0.2.10
- WEBhttps://github.com/trifectatechfoundation/sudo-rs/security/advisories/GHSA-c978-wq47-pvvw