# CVE-2025-64517: rust-sudo-rs: sudo-rs is a memory safe implementation of sudo and su written in Rust

CVE-2025-64517 is fixed in 2 products on 1 platform, first by sudo-rs 0.2.8-1ubuntu5.2, released November 12, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2025-64517
- Priority: Routine
- CVSS: 4.4 (medium)
- EPSS: 0.0018
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Nov 12, 2025

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | rust-sudo-rs Debian 13.5 (trixie) | 0.2.5-5+deb13u1 | [DEBIAN-CVE-2025-64517](https://patchblox.com/security/data/fix/linux/debian-cve-2025-64517.md) | Nov 12, 2025 |
| Linux | rust-sudo-rs Debian 14 | 0.2.10-1 | [DEBIAN-CVE-2025-64517](https://patchblox.com/security/data/fix/linux/debian-cve-2025-64517.md) | Nov 12, 2025 |
| Linux | sudo-rs Ubuntu 25.10 (questing) | 0.2.8-1ubuntu5.2 | [sudo-rs 0.2.8-1ubuntu5.2](https://patchblox.com/security/data/fix/linux/ubuntu-questing-sudo-rs-0.2.8-1ubuntu5.2.md) | Nov 12, 2025 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
