Skip to content

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

Package

cargo sudo-rs (Rust)

Affected versions

>= 0.2.7, < 0.2.10

Patched versions

0.2.10

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.

References

@squell squell published to trifectatechfoundation/sudo-rs Nov 11, 2025
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

Severity

Low

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Physical
Attack complexity
High
Privileges required
High
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N

EPSS score

Exploit Prediction Scoring System (EPSS)

This score estimates the probability of this vulnerability being exploited within the next 30 days. Data provided by FIRST.
(2nd percentile)

Weaknesses

Missing Password Field Masking

The product does not mask passwords during entry, increasing the potential for attackers to observe and capture passwords. Learn more on MITRE.

CVE ID

CVE-2025-64170

GHSA ID

GHSA-c978-wq47-pvvw

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.