Advisory

GHSA-c978-wq47-pvvw

Also known as: CVE-2025-64170

Summary

sudo-rs: Partial password reveal is possible after timeout

Details

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.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2025-11-12 21:30 UTC
Modified
2025-11-15 03:13 UTC

Affected packages and fixes

sudo-rs

crates.io · All systems

Affected

  • introduced 0.2.7, fixed 0.2.10 (semver)

Fixed versions

0.2.10

Fix

  • Fixed version 0.2.10
    cargo update -p sudo-rs --precise 0.2.10

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences