Every CVE Search/ Get API key

CVE-2025-64170

sudo-rs: Partial password reveal is possible after timeout

3.8 LowFix available

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

0.15%Up 0.1 points since Nov 13, 2025
90%50%10%1%

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 LowCVSS: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 LowCVSS: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 LowCVSS: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 LowCVSS: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 LowCVSS: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 LowCVSS: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 LowCVSS: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 LowCVSS: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

Affected packages
PackageAffectedFixed
sudo-rs
crates.io
0.2.7 up to 0.2.10
0.2.10
rust-sudo-rs
Debian:13
before 0.2.5-5+deb13u1, plus listed versions
0.2.5-5
0.2.5-5+deb13u1
rust-sudo-rs
Debian:14
before 0.2.10-1, plus listed versions
0.2.5-50.2.9-1
0.2.10-1
rust-sudo-rs
Debian: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-rs
Ubuntu: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 less
0.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

History
RecordedChangedSources
affected, facts
first indexedCVE 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

Show 5 moreShow less
MoveEnter Open