CVE-2025-64170: sudo-rs Partial Password Reveal Is Possible Vulnerability

LOW
Advisory Identifier: GHSA-c978-wq47-pvvw
CVSS 3.8
CWE-549
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-64170
GHSA Identifier GHSA-c978-wq47-pvvw
Severity LOW
CVSS v3.1 Base Score 3.8
CWE Classification CWE-549: Missing Password Field Masking
Affected Product sudo-rs
Package Ecosystem crates.io
Published Date
Last Updated

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).

Attack Vector Physical (AV:P)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (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.

sudo-rs fixed: 0.2.10
Upgrade sudo-rs to 0.2.10
Verify Direct and Transitive Dependencies

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

### 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.

CVE-2025-64170 Affected sudo-rs Versions

1 component(s)
Fixed Versions:
0.2.10
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?
CVE-2025-64170 is a security vulnerability in sudo-rs involving Partial password reveal is possible after timeout under CWE-549: Missing Password Field Masking.
Which sudo-rs versions are affected?
Affected versions include releases prior to 0.2.10 across affected packages: sudo-rs.
What version fixes CVE-2025-64170?
Upgrading to 0.2.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sudo-rs affected?
Yes, sudo-rs is affected in releases prior to 0.2.10. Upgrade your dependency to 0.2.10 or later.
What is the CVSS score of CVE-2025-64170?
CVE-2025-64170 has a CVSS v3.1 base score of 3.8 (LOW) with vector string CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2025-64170?
CVE-2025-64170 is classified under CWE-549: Missing Password Field Masking (The product does not mask passwords during entry, increasing the potential for attackers to observe and capture passwords.).
How can I check crates.io dependencies for CVE-2025-64170?
Run the dependency tree command: 'inspect dependencies for sudo-rs'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}