CVE-2025-64170 sudo-rs: Partial password reveal is possible after timeout

Low 3.8 Published Updated

An attacker can view partial passwords on the console if a user times out during entry, potentially aiding social engineering or shoulder-surfing attacks.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-64170?

CVE-2025-64170 is a low-severity vulnerability in trifectatechfoundation sudo-rs, published on 12 Nov 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-549

Which versions are affected by CVE-2025-64170?

2 open source packages ship an affected version, including sudo-rs.

PackageAffectedFixed in
sudo-rs crates.ioFrom 0.2.70.2.10
sudo-rs crates.ioFrom 0.2.70.2.10

How do I fix CVE-2025-64170?

Upgrade sudo-rs to 0.2.10 or later.

Is CVE-2025-64170 being exploited?

There is no known exploitation of CVE-2025-64170 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2025-64170, GHSA-c978-wq47-pvvw, MINI-mxw6-8xjg-www7, UBUNTU-CVE-2025-64170.

Is CVE-2025-64170 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free