CVE-2025-64170: sudo-rs Partial Password Reveal Is Possible Vulnerability
LOWCVE-2025-64170 is a LOW (CVSS 3.8) partial password reveal is possible vulnerability (CWE-549: Missing Password Field Masking) affecting sudo-rs libraries in the crates.io ecosystem. The issue involves partial password reveal is possible after timeout. Remediation is available by upgrading affected packages to version 0.2.10.
CVE-2025-64170 at a Glance
Security Impact
CVSS: 3.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N).
How to Fix CVE-2025-64170
To remediate this vulnerability, upgrade all affected sudo-rs dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade sudo-rs to 0.2.10
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for sudo-rs
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-64170, inspect your project dependencies for sudo-rs:
inspect dependencies for sudo-rs
Analyze the terminal output to locate any version of sudo-rs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.10), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-549: Missing Password Field Masking, where the product does not mask passwords during entry, increasing the potential for attackers to observe and capture passwords. In sudo-rs, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-64170 Affected sudo-rs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sudo-rs
|
crates.io |
≥ 0.2.7
< 0.2.10
|
0.2.10
|
References
Frequently Asked Questions
What is CVE-2025-64170?
Which sudo-rs versions are affected?
What version fixes CVE-2025-64170?
Is sudo-rs affected?
What is the CVSS score of CVE-2025-64170?
What CWE is associated with CVE-2025-64170?
How can I check crates.io dependencies for CVE-2025-64170?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c978-wq47-pvvw",
"modified" : "2025-11-15T03:13:07Z",
"published" : "2025-11-12T21:30:11Z",
"aliases" : [ "CVE-2025-64170" ],
"summary" : "sudo-rs: Partial password reveal is possible after timeout",
"details" : "### Summary\nIf 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.\n\n### Example\nUsing sudo-rs:\n```\ngeiger@cerberus:~$ sudo -s\n[sudo: authenticate] Password: sudo-rs: timed out\ngeiger@cerberus:~$ testtesttest\n```\n\n\"testtesttest\" was entered at the password prompt but not confirmed by pressing return and then waiting for the timeout.\n\n### Impact\nThis 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.\n\n### Versions affected\nPasswords timeouts were added in sudo-rs 0.2.7 (with a default set to 5 minutes).\n\n### Credits\nThis issue was discovered and reported by @DevLaTron.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "sudo-rs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.2.7"
}, {
"fixed" : "0.2.10"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/trifectatechfoundation/sudo-rs/security/advisories/GHSA-c978-wq47-pvvw"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-64170"
}, {
"type" : "WEB",
"url" : "https://github.com/trifectatechfoundation/sudo-rs/commit/0e3d3837aec3ee9fb5dcb8bfe11e8adb367f58f4"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/trifectatechfoundation/sudo-rs"
}, {
"type" : "WEB",
"url" : "https://github.com/trifectatechfoundation/sudo-rs/releases/tag/v0.2.10"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-549" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-11-12T21:30:11Z",
"nvd_published_at" : "2025-11-12T21:15:53Z"
}
}