CVE-2025-64170
sudo-rs: Partial password reveal is possible after timeout
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.
Attack profile
How easy it is to exploit
- Attack vector
- Physical
- Complexity
- High
- Privileges needed
- High
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
3.8
sudo-rs: Partial password reveal is possible after timeout
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.
- Record
CVE-2025-64170- CVSS 3.1
- 3.8 Low
CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-549
- Updated
- 2026-11-02
EUVDEUVD-2025-131955
3.8
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.
- Record
EUVD-2025-131955- CVSS 3.1
- 3.8 Low
CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-c978-wq47-pvvw
3.8
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:
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.
- Record
GHSA-c978-wq47-pvvw- CVSS 3.1
- 3.8 Low
CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-549
- Updated
- 2026-11-02
NVD
3.8
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.
- Record
CVE-2025-64170- CVSS 3.1
- 3.8 Low
CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-549
- Updated
- 2026-11-02
OSV
3.8
sudo-rs: Partial password reveal is possible after timeout
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.
- Record
CVE-2025-64170- CVSS 3.1
- 3.8 Low
CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-549
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2025-64170
3.8
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.
- Record
DEBIAN-CVE-2025-64170- CVSS 3.1
- 3.8 Low
CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVGHSA-c978-wq47-pvvw
3.8
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:
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.
- Record
GHSA-c978-wq47-pvvw- CVSS 3.1
- 3.8 Low
CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-549
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2025-64170
3.8
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.
- Record
UBUNTU-CVE-2025-64170- CVSS 3.1
- 3.8 Low
CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
sudo-rscrates.io |
0.2.7 up to 0.2.10 | 0.2.10 |
rust-sudo-rsDebian:13 |
before 0.2.5-5+deb13u1, plus listed versions 0.2.5-5 |
0.2.5-5+deb13u1 |
rust-sudo-rsDebian:14 |
before 0.2.10-1, plus listed versions 0.2.5-50.2.9-1 |
0.2.10-1 |
rust-sudo-rsDebian:13 From an advisory covering 2 CVEs |
before 0.2.5-5+deb13u1, plus listed versions 0.2.5-5 |
0.2.5-5+deb13u1 |
rust-sudo-rsUbuntu:25.10 |
before 0.2.8-1ubuntu5.2, plus listed versions 0.2.4-10.2.5-3ubuntu10.2.5-40.2.5-50.2.5-5ubuntu1 Show 6 moreShow less0.2.5-5ubuntu30.2.8-1ubuntu20.2.8-1ubuntu30.2.8-1ubuntu40.2.8-1ubuntu50.2.8-1ubuntu5.1 |
0.2.8-1ubuntu5.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-64170 is a low vulnerability (CVSS 3.8) in Trifectatechfoundation Sudo-rs, published November 11, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.15%, the 4th percentile. Fixed in sudo-rs 0.2.10.
References
github.com/trifectatechfoundation/sudo-rs/security/advisories/GHSA-c978-wq47-pvvw
github.com/trifectatechfoundation/sudo-rs/releases/tag/v0.2.10
github.com/trifectatechfoundation/sudo-rs/commit/0e3d3837aec3ee9fb5dcb8bfe11e8adb367f58f4
nvd.nist.gov/vuln/detail/CVE-2025-64170
github.com/advisories/GHSA-c978-wq47-pvvw
github.com/CVEProject/cvelistV5/tree/main/cves/2025/64xxx/CVE-2025-64170.json