Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. sudo-rs
  4. ›
  5. CVE-2025-64517

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

November 13, 2025

When Defaults targetpw (or Defaults rootpw) is enabled, the password of the target account (or root account) instead of the invoking user is used for authentication. sudo-rs prior to 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.

References

  • github.com/advisories/GHSA-q428-6v73-fc4q
  • github.com/trifectatechfoundation/sudo-rs
  • github.com/trifectatechfoundation/sudo-rs/commit/8423fd986c3fa58b357f238c0db5e54baca5255d
  • github.com/trifectatechfoundation/sudo-rs/releases/tag/v0.2.10
  • github.com/trifectatechfoundation/sudo-rs/security/advisories/GHSA-q428-6v73-fc4q
  • nvd.nist.gov/vuln/detail/CVE-2025-64517

Code Behaviors & Features

Detect and mitigate CVE-2025-64517 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.2.5 before 0.2.10

Fixed versions

  • 0.2.10

Solution

Upgrade to version 0.2.10 or above.

Impact 4.4 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

cargo/sudo-rs/CVE-2025-64517.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 05 Dec 2025 12:19:27 +0000.