3.3low
sudo-rs Allows Low Privilege Users to Discover the Existence of Files in Inaccessible Folders
- Severity
- 3.3low CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.37% (higher than 33% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-98cv-wqjx-wx8f
Description
sudo-rs is a memory safe implementation of sudo and su written in Rust. Prior to version 0.2.6, users with no (or very limited) sudo privileges can determine whether files exists in folders that they otherwise cannot access using `sudo --list <pathname>`. Users with local access to a machine can discover the existence/non-existence of certain files, revealing potentially sensitive information in the file names. This information can also be used in conjunction with other attacks. Version 0.2.6 fixes the vulnerability.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| trifectatechfoundation sudo-rs | < 0.2.6 | CVE List |
| sudo-rs (crates.io) | before 0.2.6 | GitHub Advisory Database |
| trifectatech sudo | before 0.2.6 | NVD |
All scores
| GitHub_M | 3.3low CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 3.3low CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
sudo-rs is a memory safe implementation of sudo and su written in Rust. Prior to version 0.2.6, users with no (or very limited) sudo privileges can determine whether files exists in folders that they otherwise cannot access using `sudo --list <pathname>`. Users with local access to a machine can discover the existence/non-existence of certain files, revealing potentially sensitive information in the file names. This information can also be used in conjunction with other attacks. Version 0.2.6 fixes the vulnerability.
GitHub Advisory Database
Summary
Users with no (or very limited) sudo privileges can determine whether files exists in folders that they otherwise cannot access using sudo --list <pathname>.
PoC
As root:
# mkdir /tmp/foo
# chmod a-rwx /tmp/foo
# touch /tmp/foo/secret_file
As a user without any (or limited) sudo rights:
$ sudo --list /tmp/foo/nonexistent_file
sudo-rs: '/tmp/foo/nonexistent_file': command not found
$ $ sudo --list /tmp/foo/secret_file
sudo-rs: Sorry, user eve may not run sudo on host.
I.e. the user can distinguish whether files exist.
Related
Original sudo (vulnerable version tested by us: 1.9.15p5) exhibited similar behaviour for files with the executable bit set.
Impact
Users with local access to a machine can discover the existence/non-existence of certain files, revealing potentially sensitive information in the file names. This information can also be used in conjunction with other attacks.
Credits
This issue was identified by sudo-rs developer Marc Schoolderman
NVD (es)
sudo-rs es una implementación de sudo y su con memoria segura, escrita en Rust. Antes de la versión 0.2.6, los usuarios sin privilegios de sudo (o con privilegios muy limitados) podían determinar si existían archivos en carpetas a las que de otro modo no podrían acceder mediante `sudo --list `. Los usuarios con acceso local a una máquina pueden descubrir la existencia o inexistencia de ciertos archivos, revelando información potencialmente sensible en sus nombres. Esta información también puede utilizarse en combinación con otros ataques. La versión 0.2.6 corrige esta vulnerabilidad.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-46717 changed 2025-05-12 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-98cv-wqjx-wx8f changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-46717 changed 2026-06-17 | Public domain |