CVE-2025-46717
LOW3.3EPSS 0.07%sudo-rs Allows Low Privilege Users to Discover the Existence of Files in Inaccessible Folders
描述
### 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
受影響套件(2)
- crates.io/sudo-rsfrom 0, < 0.2.6
- Debian/rust-sudo-rsfrom 0, < 0.2.5-5
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | LOW3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
參考連結(5)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2025-46717
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2025-46717
- PATCHhttps://github.com/trifectatechfoundation/sudo-rs
- WEBhttps://github.com/trifectatechfoundation/sudo-rs/releases/tag/v0.2.6
- WEBhttps://github.com/trifectatechfoundation/sudo-rs/security/advisories/GHSA-98cv-wqjx-wx8f