CVE-2025-64517
sudo-rs doesn't record authenticating user properly in timestamp
Also known as GHSA-q428-6v73-fc4q
Mitigation
- Upgrade sudo-rs to 0.2.10 or later.
Who should check
- Projects that depend on crates.io package sudo-rs (>= 0.2.5, < 0.2.10)
- Anyone running trifectatechfoundation sudo-rs >= 0.2.5, < 0.2.10
Vulnerability facts
- Affected
- sudo-rs >= 0.2.5, < 0.2.10
- Fixed in
- 0.2.10
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 4.4 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: High
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: None
- EPSS
- 0.27% chance of exploitation in 30 days (percentile 12, 2026-11-26)
- CWE
- CWE-287
- Modified
Description
sudo-rs is a memory safe implementation of sudo and su written in Rust. With `Defaults targetpw` (or `Defaults rootpw`) enabled, the password of the target account (or root account) instead of the invoking user is used for authentication. sudo-rs starting in version 0.2.5 and prior to version 0.2.10 incorrectly recorded the invoking user’s UID instead of the authenticated-as user's UID in the authentication timestamp. Any later `sudo` invocation on the same terminal while the timestamp was still valid would use that timestamp, potentially bypassing new authentication even if the policy would have required it. A highly-privileged user (able to run commands as other users, or as root, through sudo) who knows one password of an account they are allowed to run commands as, would be able to run commands as any other account the policy permits them to run commands for, even if they don't know the password for those accounts. A common instance of this would be that a user can still use their own password to run commands as root (the default behaviour of `sudo`), effectively negating the intended behaviour of the `targetpw` or `rootpw` options. Version 0.2.10 contains a patch for the issue. Versions prior to 0.2.5 are not affected, since they do not offer `Defaults targetpw` or `Defaults rootpw`.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| crates.io sudo-rs | >= 0.2.5, < 0.2.10 | 0.2.10 | osv |
| trifectatechfoundation sudo-rs | >= 0.2.5, < 0.2.10 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-64517. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-64517.md Affected: sudo-rs >= 0.2.5, < 0.2.10 Fixed in: 0.2.10 Steps: 1. Search this machine and project for sudo-rs (crates.io), trifectatechfoundation sudo-rs: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2025-64517 being exploited?
There is no confirmed exploitation: CVE-2025-64517 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-64517?
Medium: CVSS 4.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-64517?
sudo-rs >= 0.2.5, < 0.2.10.
Is there a fix for CVE-2025-64517?
Yes. Fixed in 0.2.10. Upgrade sudo-rs to 0.2.10 or later.
How do I check if I'm affected by CVE-2025-64517?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.