CVE-2025-46717: Sudo rs Sudo-rs Allows Low Privilege Users Vulnerability
LOWCVE-2025-46717 is a LOW (CVSS 3.3) sudo-rs allows low privilege users vulnerability (CWE-497: Exposure of Sensitive System Information to an Unauthorized Control Sphere) affecting Sudo rs libraries in the crates.io ecosystem. The issue involves sudo-rs allows low privilege users to discover the existence of files in inaccessible folders. Remediation is available by upgrading affected packages to version 0.2.6.
CVE-2025-46717 at a Glance
Security Impact
CVSS: 3.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2025-46717
To remediate this vulnerability, upgrade all affected Sudo rs dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade sudo-rs to 0.2.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for sudo-rs
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-46717, inspect your project dependencies for Sudo rs:
inspect dependencies for sudo-rs
Analyze the terminal output to locate any version of Sudo rs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.6), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-497: Exposure of Sensitive System Information to an Unauthorized Control Sphere, where the product does not properly prevent sensitive system-level information from being accessed by unauthorized actors who do not have the same level of access to the underlying system as the product does. In Sudo rs, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-46717 Affected Sudo rs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sudo-rs
|
crates.io |
< 0.2.6
|
0.2.6
|
References
Frequently Asked Questions
What is CVE-2025-46717?
Which Sudo rs versions are affected?
What version fixes CVE-2025-46717?
Is sudo-rs affected?
What is the CVSS score of CVE-2025-46717?
What CWE is associated with CVE-2025-46717?
How can I check crates.io dependencies for CVE-2025-46717?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-98cv-wqjx-wx8f",
"modified" : "2025-05-13T14:08:18Z",
"published" : "2025-05-13T14:08:18Z",
"aliases" : [ "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",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "sudo-rs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.2.6"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.2.5"
}
} ],
"references" : [ {
"type" : "WEB",
"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"
}, {
"type" : "WEB",
"url" : "https://github.com/trifectatechfoundation/sudo-rs/releases/tag/v0.2.6"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-497" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-05-13T14:08:18Z",
"nvd_published_at" : "2025-05-12T15:16:01Z"
}
}