Vulnerability GHSA-98cv-wqjx-wx8f

Low Risk
LOW RISK
CVSS Score: 3.3
Score Range: < 4.0
Low severity vulnerabilities (CVSS < 4.0). Hygiene issues that can accumulate but pose lower immediate risk.
1 year ago
May 13, 2025 at 02:08 PM UTC
sudo-rs Allows Low Privilege Users to Discover the Existence of Files in Inaccessible Folders
0.1.0 and 0.2.0 - 0.2.5
0.1.0 and 0.2.0 - 0.2.5

Summary

sudo-rs Allows Low Privilege Users to Discover the Existence of Files in Inaccessible Folders

Details

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

Impacted packages

Timeline

Published
1 year ago
May 13, 2025 at 02:08 PM UTC
Fixed (0.2.6)
1 year ago
May 06, 2025 at 05:14 PM UTC
Last Modified
1 month ago
September 10, 2026 at 03:50 AM UTC