# CVE-2025-64517: sudo-rs doesn't record authenticating user properly in timestamp

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.4
- **CVSS:** 4.4 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.27% (percentile 12, 2026-11-26)
- **CWE:** CWE-287
- **Aliases:** GHSA-q428-6v73-fc4q
- **Published:** 2025-11-12T22:08:29.422Z
- **Modified:** 2026-10-18T20:10:00.110Z

## 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

## 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

- crates.io `sudo-rs`: affected \>= 0.2.5, \< 0.2.10; fixed 0.2.10 (osv)
- trifectatechfoundation sudo-rs: \>= 0.2.5, \< 0.2.10 (cvelist)

## Mitigation

- Upgrade sudo-rs to 0.2.10 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/trifectatechfoundation/sudo-rs/security/advisories/GHSA-q428-6v73-fc4q>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-64517>
- patch: <https://github.com/trifectatechfoundation/sudo-rs/commit/8423fd986c3fa58b357f238c0db5e54baca5255d.>
- patch: <https://github.com/trifectatechfoundation/sudo-rs/commit/8423fd986c3fa58b357f238c0db5e54baca5255d>
- other: <https://github.com/trifectatechfoundation/sudo-rs/releases/tag/v0.2.10>
- other: <https://github.com/trifectatechfoundation/sudo-rs>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-64517>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-q428-6v73-fc4q> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-64517> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-64517>
