{"id":"CVE-2025-64170","aliases":["CVE-2025-64170","GHSA-c978-wq47-pvvw"],"related":[],"kind":"vulnerability","state":"published","title":"sudo-rs: Partial password reveal is possible after timeout","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"sudo-rs es una implementación de sudo y su segura para la memoria escrita en Rust. A partir de la versión 0.2.7 y antes de la versión 0.2.10, si un usuario comienza a introducir una contraseña pero no presiona 'enter' durante un período prolongado, puede producirse un tiempo de espera de la contraseña. Cuando esto sucede, las pulsaciones de teclas que se introdujeron se hacen eco en la consola. Esto podría revelar información parcial de la contraseña, posiblemente exponiendo archivos de historial cuando no se maneja con cuidado por parte del usuario y en pantalla, utilizable para ataques de ingeniería social o Pass-By. La versión 0.2.10 corrige el problema.","source":"nvd"}],"published":"2025-11-12T20:30:14.961Z","modified":"2026-10-18T20:10:00.110Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N","score":3.8,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N","score":3.8,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N","score":3.8,"rating":"LOW"}],"cwes":["CWE-549"],"affected":[{"ranges":[{"version":">= 0.2.7, < 0.2.10","status":"affected"}],"vendor":"trifectatechfoundation","product":"sudo-rs","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.2.7","status":"affected","fixed":"0.2.10"}],"ecosystem":"crates.io","package":"sudo-rs","purl":"pkg:cargo/sudo-rs","source":"ghsa"}],"references":[{"url":"https://github.com/trifectatechfoundation/sudo-rs/security/advisories/GHSA-c978-wq47-pvvw","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/trifectatechfoundation/sudo-rs/releases/tag/v0.2.10","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64170","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/trifectatechfoundation/sudo-rs/commit/0e3d3837aec3ee9fb5dcb8bfe11e8adb367f58f4","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/trifectatechfoundation/sudo-rs","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-11-14T17:34:17.406Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-64170","url":"https://www.cve.org/CVERecord?id=CVE-2025-64170","licence":"CVE Terms of Use","modified":"2025-11-14T17:34:21.165Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c978-wq47-pvvw","url":"https://github.com/advisories/GHSA-c978-wq47-pvvw","licence":"CC-BY-4.0","modified":"2025-11-15T03:13:07.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-64170","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64170","licence":"Public domain","modified":"2026-10-18T20:10:00.110Z"}],"updatedAt":"2026-11-25T22:59:07.586Z","epss":{"score":0.0015,"percentile":0.04424,"date":"2026-12-01T12:00:22.000Z"}}