GHSA-c978-wq47-pvvw

Suggest an improvement
Source
https://github.com/advisories/GHSA-c978-wq47-pvvw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/11/GHSA-c978-wq47-pvvw/GHSA-c978-wq47-pvvw.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-c978-wq47-pvvw
Aliases
Downstream
Published
2025-11-12T21:30:11Z
Modified
2025-11-15T03:13:07Z
Severity
  • 3.8 (Low) CVSS_V3 - CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
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.

Database specific
{
    "severity": "LOW",
    "cwe_ids": [
        "CWE-549"
    ],
    "nvd_published_at": "2025-11-12T21:15:53Z",
    "github_reviewed_at": "2025-11-12T21:30:11Z",
    "github_reviewed": true
}
References

Affected packages

crates.io / sudo-rs

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.2.7
Fixed
0.2.10