CVE-2025-46718
Rust vulnerability analysis and mitigation

Overview

sudo-rs, a memory safe implementation of sudo and su written in Rust, was found to contain a security vulnerability (CVE-2025-46718) prior to version 0.2.6. The vulnerability was discovered and disclosed on May 12, 2025, affecting systems where users have limited sudo privileges. This vulnerability allows users with restricted sudo access to enumerate other users' sudo privileges using the -U flag, which is not intended behavior compared to the original sudo implementation (GitHub Advisory).

Technical details

The vulnerability stems from improper privilege checking when using the -U flag with the list pseudocommand. When exploited, users with limited sudo privileges can list sudo privileges of other users, which should not be permitted. The vulnerability has been assigned a CVSS v3.1 base score of 3.3 (LOW) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N, indicating local access requirements and low severity (GitHub Advisory).

Impact

The vulnerability allows attackers with limited sudo privileges to enumerate the sudoers file, revealing sensitive information about other users' permissions. This information disclosure can be leveraged for more targeted attacks. However, systems where users either do not have sudo privileges or have the ability to run all commands as root through sudo (the default configuration on most systems) are not affected by this vulnerability (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in sudo-rs version 0.2.6. Users are advised to upgrade to this version or later. The fix includes additional checking before reporting errors or listing the rights of a user (GitHub Release).

Community reactions

The vulnerability was identified by Sonia Zorba and has received attention from the security community, with multiple reactions on GitHub including thumbs up, heart, and rocket emojis from the community members (GitHub Release).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-64347HIGH7.5
  • RustRust
  • apollo-router
NoYesNov 07, 2025
CVE-2025-64173HIGH7.5
  • RustRust
  • apollo-router
NoYesNov 06, 2025
CVE-2025-62596HIGH7.3
  • RustRust
  • youki
NoYesNov 06, 2025
CVE-2025-62161HIGH7.3
  • RustRust
  • youki
NoYesNov 06, 2025
GHSA-7vjm-6qgq-3mrqLOWN/A
  • RustRust
  • shaman
NoNoNov 03, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management