sudo-rs
A memory safe implementation of sudo and su.
Activity
- Latest release
- 2w ago
- Total releases
- 21
- Cadence
- ~39 days
- Last 12 months
- 7
Reach
- Downloads
- 17.2k
- Stars
- 4.5k
Details
- License
- Apache-2.0 OR MIT
- First release
- May 09, 2023
| Version | Released | |
|---|---|---|
0.2.15
patch
| ||
0.2.14
unknown
| ||
0.2.13
unknown
| ||
0.2.12
unknown
| ||
0.2.11
unknown
| ||
0.2.10
unknown
| ||
0.2.9
unknown
2 CVEs
CVE-2025-64517
GHSA-q428-6v73-fc4q
Nov 13, 2025
sudo-rs doesn't record authenticating user properly in timestamp
4.4
/ 10
Medium
Local
Low
High
None
Unchanged
None
High
None
SummaryWhen ImpactA highly-privileged user (able to run commands as other users, or as root, through sudo) who knows one password of an account they are allowed to run commands as, would be able to run commands as any other account the policy permits them to run commands for, even if they don't know the password for those accounts. A common instance of this would be that a user can still use their own password to run commands as root (the default behaviour of ExampleWith this in /etc/sudoers:
First run:
Then run:
Affected versionssudo-rs prior to 0.2.5 are not affected, since they do not offer CreditsThis issue was discovered and reported by @Pingasmaster. Fixed in
0.2.10
References
Updated Nov 13, 2025 · Source: OSV.dev
CVE-2025-64170
GHSA-c978-wq47-pvvw
Nov 12, 2025
sudo-rs: Partial password reveal is possible after timeout
3.8
/ 10
Low
Physical
High
High
Required
Unchanged
High
None
None
SummaryIf a user begins entering a password but does not press return for an extended period, a password timeout may occur. When this happens, the keystrokes that were entered are echoed back to the console. ExampleUsing sudo-rs:
"testtesttest" was entered at the password prompt but not confirmed by pressing return and then waiting for the timeout. ImpactThis could reveal partial password information, possibly exposing history files when not carefully handled by the user and on screen, usable for Social Engineering or Pass-By attacks. Versions affectedPasswords timeouts were added in sudo-rs 0.2.7 (with a default set to 5 minutes). CreditsThis issue was discovered and reported by @DevLaTron. Fixed in
0.2.10
References
Updated Nov 15, 2025 · Source: OSV.dev | ||
0.2.8
unknown
2 CVEs
CVE-2025-64517
GHSA-q428-6v73-fc4q
Nov 13, 2025
sudo-rs doesn't record authenticating user properly in timestamp
4.4
/ 10
Medium
Local
Low
High
None
Unchanged
None
High
None
SummaryWhen ImpactA highly-privileged user (able to run commands as other users, or as root, through sudo) who knows one password of an account they are allowed to run commands as, would be able to run commands as any other account the policy permits them to run commands for, even if they don't know the password for those accounts. A common instance of this would be that a user can still use their own password to run commands as root (the default behaviour of ExampleWith this in /etc/sudoers:
First run:
Then run:
Affected versionssudo-rs prior to 0.2.5 are not affected, since they do not offer CreditsThis issue was discovered and reported by @Pingasmaster. Fixed in
0.2.10
References
Updated Nov 13, 2025 · Source: OSV.dev
CVE-2025-64170
GHSA-c978-wq47-pvvw
Nov 12, 2025
sudo-rs: Partial password reveal is possible after timeout
3.8
/ 10
Low
Physical
High
High
Required
Unchanged
High
None
None
SummaryIf a user begins entering a password but does not press return for an extended period, a password timeout may occur. When this happens, the keystrokes that were entered are echoed back to the console. ExampleUsing sudo-rs:
"testtesttest" was entered at the password prompt but not confirmed by pressing return and then waiting for the timeout. ImpactThis could reveal partial password information, possibly exposing history files when not carefully handled by the user and on screen, usable for Social Engineering or Pass-By attacks. Versions affectedPasswords timeouts were added in sudo-rs 0.2.7 (with a default set to 5 minutes). CreditsThis issue was discovered and reported by @DevLaTron. Fixed in
0.2.10
References
Updated Nov 15, 2025 · Source: OSV.dev | ||
0.2.7
unknown
2 CVEs
CVE-2025-64517
GHSA-q428-6v73-fc4q
Nov 13, 2025
sudo-rs doesn't record authenticating user properly in timestamp
4.4
/ 10
Medium
Local
Low
High
None
Unchanged
None
High
None
SummaryWhen ImpactA highly-privileged user (able to run commands as other users, or as root, through sudo) who knows one password of an account they are allowed to run commands as, would be able to run commands as any other account the policy permits them to run commands for, even if they don't know the password for those accounts. A common instance of this would be that a user can still use their own password to run commands as root (the default behaviour of ExampleWith this in /etc/sudoers:
First run:
Then run:
Affected versionssudo-rs prior to 0.2.5 are not affected, since they do not offer CreditsThis issue was discovered and reported by @Pingasmaster. Fixed in
0.2.10
References
Updated Nov 13, 2025 · Source: OSV.dev
CVE-2025-64170
GHSA-c978-wq47-pvvw
Nov 12, 2025
sudo-rs: Partial password reveal is possible after timeout
3.8
/ 10
Low
Physical
High
High
Required
Unchanged
High
None
None
SummaryIf a user begins entering a password but does not press return for an extended period, a password timeout may occur. When this happens, the keystrokes that were entered are echoed back to the console. ExampleUsing sudo-rs:
"testtesttest" was entered at the password prompt but not confirmed by pressing return and then waiting for the timeout. ImpactThis could reveal partial password information, possibly exposing history files when not carefully handled by the user and on screen, usable for Social Engineering or Pass-By attacks. Versions affectedPasswords timeouts were added in sudo-rs 0.2.7 (with a default set to 5 minutes). CreditsThis issue was discovered and reported by @DevLaTron. Fixed in
0.2.10
References
Updated Nov 15, 2025 · Source: OSV.dev | ||
0.2.6
unknown
1 CVE
CVE-2025-64517
GHSA-q428-6v73-fc4q
Nov 13, 2025
sudo-rs doesn't record authenticating user properly in timestamp
4.4
/ 10
Medium
Local
Low
High
None
Unchanged
None
High
None
SummaryWhen ImpactA highly-privileged user (able to run commands as other users, or as root, through sudo) who knows one password of an account they are allowed to run commands as, would be able to run commands as any other account the policy permits them to run commands for, even if they don't know the password for those accounts. A common instance of this would be that a user can still use their own password to run commands as root (the default behaviour of ExampleWith this in /etc/sudoers:
First run:
Then run:
Affected versionssudo-rs prior to 0.2.5 are not affected, since they do not offer CreditsThis issue was discovered and reported by @Pingasmaster. Fixed in
0.2.10
References
Updated Nov 13, 2025 · Source: OSV.dev | ||
0.2.5
unknown
3 CVEs
CVE-2025-64517
GHSA-q428-6v73-fc4q
Nov 13, 2025
sudo-rs doesn't record authenticating user properly in timestamp
4.4
/ 10
Medium
Local
Low
High
None
Unchanged
None
High
None
SummaryWhen ImpactA highly-privileged user (able to run commands as other users, or as root, through sudo) who knows one password of an account they are allowed to run commands as, would be able to run commands as any other account the policy permits them to run commands for, even if they don't know the password for those accounts. A common instance of this would be that a user can still use their own password to run commands as root (the default behaviour of ExampleWith this in /etc/sudoers:
First run:
Then run:
Affected versionssudo-rs prior to 0.2.5 are not affected, since they do not offer CreditsThis issue was discovered and reported by @Pingasmaster. Fixed in
0.2.10
References
Updated Nov 13, 2025 · Source: OSV.dev
CVE-2025-46718
GHSA-w9q3-g4p5-5q2r
May 13, 2025
sudo-rs Allows Low Privilege Users to Enumerate Privileges of Others
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with limited sudo privileges (e.g. execution of a single command) can list sudo privileges of other users using the PoCThe initial test has been done in a container running Ubuntu 24.04 and installing oxidizr, running sudo-rs 0.2.2. A user (bob) has been added with only ps command executable through sudo:
The user is not able to read the
The same command with sudo-rs is run without denying the execution:
The same happens for other non-root users:
The behavior has been also been observed for version 0.2.5. ImpactUsers with limited sudo privileges can enumerate the sudoers file, revealing sensitive information about other users' permissions. Attackers can collect information that can be used to more targeted attacks. Systems where users either do not have sudo privileges or have the ability to run all commands as root through sudo (the default configuration on most systems) are not affected by this advisory. CreditsThis issue was identified by Sonia Zorba. Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-46717
GHSA-98cv-wqjx-wx8f
May 13, 2025
sudo-rs Allows Low Privilege Users to Discover the Existence of Files in Inaccessible Folders
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with no (or very limited) sudo privileges can determine whether files exists in folders that they otherwise cannot access using PoCAs root:
As a user without any (or limited) sudo rights:
I.e. the user can distinguish whether files exist. RelatedOriginal sudo (vulnerable version tested by us: 1.9.15p5) exhibited similar behaviour for files with the executable bit set. ImpactUsers 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. CreditsThis issue was identified by sudo-rs developer Marc Schoolderman Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev | ||
0.2.4
unknown
2 CVEs
CVE-2025-46718
GHSA-w9q3-g4p5-5q2r
May 13, 2025
sudo-rs Allows Low Privilege Users to Enumerate Privileges of Others
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with limited sudo privileges (e.g. execution of a single command) can list sudo privileges of other users using the PoCThe initial test has been done in a container running Ubuntu 24.04 and installing oxidizr, running sudo-rs 0.2.2. A user (bob) has been added with only ps command executable through sudo:
The user is not able to read the
The same command with sudo-rs is run without denying the execution:
The same happens for other non-root users:
The behavior has been also been observed for version 0.2.5. ImpactUsers with limited sudo privileges can enumerate the sudoers file, revealing sensitive information about other users' permissions. Attackers can collect information that can be used to more targeted attacks. Systems where users either do not have sudo privileges or have the ability to run all commands as root through sudo (the default configuration on most systems) are not affected by this advisory. CreditsThis issue was identified by Sonia Zorba. Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-46717
GHSA-98cv-wqjx-wx8f
May 13, 2025
sudo-rs Allows Low Privilege Users to Discover the Existence of Files in Inaccessible Folders
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with no (or very limited) sudo privileges can determine whether files exists in folders that they otherwise cannot access using PoCAs root:
As a user without any (or limited) sudo rights:
I.e. the user can distinguish whether files exist. RelatedOriginal sudo (vulnerable version tested by us: 1.9.15p5) exhibited similar behaviour for files with the executable bit set. ImpactUsers 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. CreditsThis issue was identified by sudo-rs developer Marc Schoolderman Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev | ||
0.2.3
unknown
2 CVEs
CVE-2025-46718
GHSA-w9q3-g4p5-5q2r
May 13, 2025
sudo-rs Allows Low Privilege Users to Enumerate Privileges of Others
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with limited sudo privileges (e.g. execution of a single command) can list sudo privileges of other users using the PoCThe initial test has been done in a container running Ubuntu 24.04 and installing oxidizr, running sudo-rs 0.2.2. A user (bob) has been added with only ps command executable through sudo:
The user is not able to read the
The same command with sudo-rs is run without denying the execution:
The same happens for other non-root users:
The behavior has been also been observed for version 0.2.5. ImpactUsers with limited sudo privileges can enumerate the sudoers file, revealing sensitive information about other users' permissions. Attackers can collect information that can be used to more targeted attacks. Systems where users either do not have sudo privileges or have the ability to run all commands as root through sudo (the default configuration on most systems) are not affected by this advisory. CreditsThis issue was identified by Sonia Zorba. Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-46717
GHSA-98cv-wqjx-wx8f
May 13, 2025
sudo-rs Allows Low Privilege Users to Discover the Existence of Files in Inaccessible Folders
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with no (or very limited) sudo privileges can determine whether files exists in folders that they otherwise cannot access using PoCAs root:
As a user without any (or limited) sudo rights:
I.e. the user can distinguish whether files exist. RelatedOriginal sudo (vulnerable version tested by us: 1.9.15p5) exhibited similar behaviour for files with the executable bit set. ImpactUsers 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. CreditsThis issue was identified by sudo-rs developer Marc Schoolderman Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev | ||
0.2.2
unknown
2 CVEs
CVE-2025-46718
GHSA-w9q3-g4p5-5q2r
May 13, 2025
sudo-rs Allows Low Privilege Users to Enumerate Privileges of Others
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with limited sudo privileges (e.g. execution of a single command) can list sudo privileges of other users using the PoCThe initial test has been done in a container running Ubuntu 24.04 and installing oxidizr, running sudo-rs 0.2.2. A user (bob) has been added with only ps command executable through sudo:
The user is not able to read the
The same command with sudo-rs is run without denying the execution:
The same happens for other non-root users:
The behavior has been also been observed for version 0.2.5. ImpactUsers with limited sudo privileges can enumerate the sudoers file, revealing sensitive information about other users' permissions. Attackers can collect information that can be used to more targeted attacks. Systems where users either do not have sudo privileges or have the ability to run all commands as root through sudo (the default configuration on most systems) are not affected by this advisory. CreditsThis issue was identified by Sonia Zorba. Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-46717
GHSA-98cv-wqjx-wx8f
May 13, 2025
sudo-rs Allows Low Privilege Users to Discover the Existence of Files in Inaccessible Folders
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with no (or very limited) sudo privileges can determine whether files exists in folders that they otherwise cannot access using PoCAs root:
As a user without any (or limited) sudo rights:
I.e. the user can distinguish whether files exist. RelatedOriginal sudo (vulnerable version tested by us: 1.9.15p5) exhibited similar behaviour for files with the executable bit set. ImpactUsers 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. CreditsThis issue was identified by sudo-rs developer Marc Schoolderman Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev | ||
0.2.1
unknown
2 CVEs
CVE-2025-46718
GHSA-w9q3-g4p5-5q2r
May 13, 2025
sudo-rs Allows Low Privilege Users to Enumerate Privileges of Others
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with limited sudo privileges (e.g. execution of a single command) can list sudo privileges of other users using the PoCThe initial test has been done in a container running Ubuntu 24.04 and installing oxidizr, running sudo-rs 0.2.2. A user (bob) has been added with only ps command executable through sudo:
The user is not able to read the
The same command with sudo-rs is run without denying the execution:
The same happens for other non-root users:
The behavior has been also been observed for version 0.2.5. ImpactUsers with limited sudo privileges can enumerate the sudoers file, revealing sensitive information about other users' permissions. Attackers can collect information that can be used to more targeted attacks. Systems where users either do not have sudo privileges or have the ability to run all commands as root through sudo (the default configuration on most systems) are not affected by this advisory. CreditsThis issue was identified by Sonia Zorba. Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-46717
GHSA-98cv-wqjx-wx8f
May 13, 2025
sudo-rs Allows Low Privilege Users to Discover the Existence of Files in Inaccessible Folders
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with no (or very limited) sudo privileges can determine whether files exists in folders that they otherwise cannot access using PoCAs root:
As a user without any (or limited) sudo rights:
I.e. the user can distinguish whether files exist. RelatedOriginal sudo (vulnerable version tested by us: 1.9.15p5) exhibited similar behaviour for files with the executable bit set. ImpactUsers 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. CreditsThis issue was identified by sudo-rs developer Marc Schoolderman Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev | ||
0.2.0
unknown
3 CVEs
CVE-2025-46718
GHSA-w9q3-g4p5-5q2r
May 13, 2025
sudo-rs Allows Low Privilege Users to Enumerate Privileges of Others
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with limited sudo privileges (e.g. execution of a single command) can list sudo privileges of other users using the PoCThe initial test has been done in a container running Ubuntu 24.04 and installing oxidizr, running sudo-rs 0.2.2. A user (bob) has been added with only ps command executable through sudo:
The user is not able to read the
The same command with sudo-rs is run without denying the execution:
The same happens for other non-root users:
The behavior has been also been observed for version 0.2.5. ImpactUsers with limited sudo privileges can enumerate the sudoers file, revealing sensitive information about other users' permissions. Attackers can collect information that can be used to more targeted attacks. Systems where users either do not have sudo privileges or have the ability to run all commands as root through sudo (the default configuration on most systems) are not affected by this advisory. CreditsThis issue was identified by Sonia Zorba. Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-46717
GHSA-98cv-wqjx-wx8f
May 13, 2025
sudo-rs Allows Low Privilege Users to Discover the Existence of Files in Inaccessible Folders
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with no (or very limited) sudo privileges can determine whether files exists in folders that they otherwise cannot access using PoCAs root:
As a user without any (or limited) sudo rights:
I.e. the user can distinguish whether files exist. RelatedOriginal sudo (vulnerable version tested by us: 1.9.15p5) exhibited similar behaviour for files with the executable bit set. ImpactUsers 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. CreditsThis issue was identified by sudo-rs developer Marc Schoolderman Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2023-42456
RUSTSEC-2023-0069
GHSA-2r3c-m6v7-9354
Nov 01, 2023
sudo-rs: Path Traversal vulnerability
3.1
/ 10
Low
Local
Low
High
Required
Unchanged
None
Low
Low
ImpactAn issue was discovered where usernames containing the . and / characters could result in the corruption of specific files on the filesystem. As usernames are generally not limited by the characters they can contain, a username appearing to be a relative path can be constructed. For example we could add a user to the system containing the username ../../../../bin/cp. When logged in as a user with that name, that user could run sudo -K to clear their session record file. The session code then constructs the path to the session file by concatenating the username to the session file storage directory, resulting in a resolved path of /bin/cp. The code then clears that file, resulting in the cp binary effectively being removed from the system. An attacker needs to be able to login as a user with a constructed username. Given that such a username is unlikely to exist on an existing system, they will also need to be able to create the users with the constructed usernames. PatchesThe bug is fixed in version 0.2.1 of sudo-rs. Sudo-rs now uses the uid for the user instead of their username for determining the filename. Note that an upgrade to this version will result in existing session files being ignored and users will be forced to re-authenticate. It also fully eliminates any possibility of path traversal, given that uids are always integer values. The issue was corrected in commit Fixed in
0.2.1
References Updated Nov 08, 2023 · Source: OSV.dev | ||
0.2.0-dev.20230711
unknown
3 CVEs
CVE-2025-46718
GHSA-w9q3-g4p5-5q2r
May 13, 2025
sudo-rs Allows Low Privilege Users to Enumerate Privileges of Others
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with limited sudo privileges (e.g. execution of a single command) can list sudo privileges of other users using the PoCThe initial test has been done in a container running Ubuntu 24.04 and installing oxidizr, running sudo-rs 0.2.2. A user (bob) has been added with only ps command executable through sudo:
The user is not able to read the
The same command with sudo-rs is run without denying the execution:
The same happens for other non-root users:
The behavior has been also been observed for version 0.2.5. ImpactUsers with limited sudo privileges can enumerate the sudoers file, revealing sensitive information about other users' permissions. Attackers can collect information that can be used to more targeted attacks. Systems where users either do not have sudo privileges or have the ability to run all commands as root through sudo (the default configuration on most systems) are not affected by this advisory. CreditsThis issue was identified by Sonia Zorba. Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-46717
GHSA-98cv-wqjx-wx8f
May 13, 2025
sudo-rs Allows Low Privilege Users to Discover the Existence of Files in Inaccessible Folders
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with no (or very limited) sudo privileges can determine whether files exists in folders that they otherwise cannot access using PoCAs root:
As a user without any (or limited) sudo rights:
I.e. the user can distinguish whether files exist. RelatedOriginal sudo (vulnerable version tested by us: 1.9.15p5) exhibited similar behaviour for files with the executable bit set. ImpactUsers 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. CreditsThis issue was identified by sudo-rs developer Marc Schoolderman Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2023-42456
RUSTSEC-2023-0069
GHSA-2r3c-m6v7-9354
Nov 01, 2023
sudo-rs: Path Traversal vulnerability
3.1
/ 10
Low
Local
Low
High
Required
Unchanged
None
Low
Low
ImpactAn issue was discovered where usernames containing the . and / characters could result in the corruption of specific files on the filesystem. As usernames are generally not limited by the characters they can contain, a username appearing to be a relative path can be constructed. For example we could add a user to the system containing the username ../../../../bin/cp. When logged in as a user with that name, that user could run sudo -K to clear their session record file. The session code then constructs the path to the session file by concatenating the username to the session file storage directory, resulting in a resolved path of /bin/cp. The code then clears that file, resulting in the cp binary effectively being removed from the system. An attacker needs to be able to login as a user with a constructed username. Given that such a username is unlikely to exist on an existing system, they will also need to be able to create the users with the constructed usernames. PatchesThe bug is fixed in version 0.2.1 of sudo-rs. Sudo-rs now uses the uid for the user instead of their username for determining the filename. Note that an upgrade to this version will result in existing session files being ignored and users will be forced to re-authenticate. It also fully eliminates any possibility of path traversal, given that uids are always integer values. The issue was corrected in commit Fixed in
0.2.1
References Updated Nov 08, 2023 · Source: OSV.dev | ||
0.2.0-dev.20230703
unknown
3 CVEs
CVE-2025-46718
GHSA-w9q3-g4p5-5q2r
May 13, 2025
sudo-rs Allows Low Privilege Users to Enumerate Privileges of Others
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with limited sudo privileges (e.g. execution of a single command) can list sudo privileges of other users using the PoCThe initial test has been done in a container running Ubuntu 24.04 and installing oxidizr, running sudo-rs 0.2.2. A user (bob) has been added with only ps command executable through sudo:
The user is not able to read the
The same command with sudo-rs is run without denying the execution:
The same happens for other non-root users:
The behavior has been also been observed for version 0.2.5. ImpactUsers with limited sudo privileges can enumerate the sudoers file, revealing sensitive information about other users' permissions. Attackers can collect information that can be used to more targeted attacks. Systems where users either do not have sudo privileges or have the ability to run all commands as root through sudo (the default configuration on most systems) are not affected by this advisory. CreditsThis issue was identified by Sonia Zorba. Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-46717
GHSA-98cv-wqjx-wx8f
May 13, 2025
sudo-rs Allows Low Privilege Users to Discover the Existence of Files in Inaccessible Folders
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with no (or very limited) sudo privileges can determine whether files exists in folders that they otherwise cannot access using PoCAs root:
As a user without any (or limited) sudo rights:
I.e. the user can distinguish whether files exist. RelatedOriginal sudo (vulnerable version tested by us: 1.9.15p5) exhibited similar behaviour for files with the executable bit set. ImpactUsers 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. CreditsThis issue was identified by sudo-rs developer Marc Schoolderman Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2023-42456
RUSTSEC-2023-0069
GHSA-2r3c-m6v7-9354
Nov 01, 2023
sudo-rs: Path Traversal vulnerability
3.1
/ 10
Low
Local
Low
High
Required
Unchanged
None
Low
Low
ImpactAn issue was discovered where usernames containing the . and / characters could result in the corruption of specific files on the filesystem. As usernames are generally not limited by the characters they can contain, a username appearing to be a relative path can be constructed. For example we could add a user to the system containing the username ../../../../bin/cp. When logged in as a user with that name, that user could run sudo -K to clear their session record file. The session code then constructs the path to the session file by concatenating the username to the session file storage directory, resulting in a resolved path of /bin/cp. The code then clears that file, resulting in the cp binary effectively being removed from the system. An attacker needs to be able to login as a user with a constructed username. Given that such a username is unlikely to exist on an existing system, they will also need to be able to create the users with the constructed usernames. PatchesThe bug is fixed in version 0.2.1 of sudo-rs. Sudo-rs now uses the uid for the user instead of their username for determining the filename. Note that an upgrade to this version will result in existing session files being ignored and users will be forced to re-authenticate. It also fully eliminates any possibility of path traversal, given that uids are always integer values. The issue was corrected in commit Fixed in
0.2.1
References Updated Nov 08, 2023 · Source: OSV.dev |
0.2.0-dev.20230703
unknown
Dependencies (6)
Changelog
Compare changes
|
|
0.2.0-dev.20230627
unknown
3 CVEs
CVE-2025-46718
GHSA-w9q3-g4p5-5q2r
May 13, 2025
sudo-rs Allows Low Privilege Users to Enumerate Privileges of Others
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with limited sudo privileges (e.g. execution of a single command) can list sudo privileges of other users using the PoCThe initial test has been done in a container running Ubuntu 24.04 and installing oxidizr, running sudo-rs 0.2.2. A user (bob) has been added with only ps command executable through sudo:
The user is not able to read the
The same command with sudo-rs is run without denying the execution:
The same happens for other non-root users:
The behavior has been also been observed for version 0.2.5. ImpactUsers with limited sudo privileges can enumerate the sudoers file, revealing sensitive information about other users' permissions. Attackers can collect information that can be used to more targeted attacks. Systems where users either do not have sudo privileges or have the ability to run all commands as root through sudo (the default configuration on most systems) are not affected by this advisory. CreditsThis issue was identified by Sonia Zorba. Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-46717
GHSA-98cv-wqjx-wx8f
May 13, 2025
sudo-rs Allows Low Privilege Users to Discover the Existence of Files in Inaccessible Folders
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with no (or very limited) sudo privileges can determine whether files exists in folders that they otherwise cannot access using PoCAs root:
As a user without any (or limited) sudo rights:
I.e. the user can distinguish whether files exist. RelatedOriginal sudo (vulnerable version tested by us: 1.9.15p5) exhibited similar behaviour for files with the executable bit set. ImpactUsers 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. CreditsThis issue was identified by sudo-rs developer Marc Schoolderman Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2023-42456
RUSTSEC-2023-0069
GHSA-2r3c-m6v7-9354
Nov 01, 2023
sudo-rs: Path Traversal vulnerability
3.1
/ 10
Low
Local
Low
High
Required
Unchanged
None
Low
Low
ImpactAn issue was discovered where usernames containing the . and / characters could result in the corruption of specific files on the filesystem. As usernames are generally not limited by the characters they can contain, a username appearing to be a relative path can be constructed. For example we could add a user to the system containing the username ../../../../bin/cp. When logged in as a user with that name, that user could run sudo -K to clear their session record file. The session code then constructs the path to the session file by concatenating the username to the session file storage directory, resulting in a resolved path of /bin/cp. The code then clears that file, resulting in the cp binary effectively being removed from the system. An attacker needs to be able to login as a user with a constructed username. Given that such a username is unlikely to exist on an existing system, they will also need to be able to create the users with the constructed usernames. PatchesThe bug is fixed in version 0.2.1 of sudo-rs. Sudo-rs now uses the uid for the user instead of their username for determining the filename. Note that an upgrade to this version will result in existing session files being ignored and users will be forced to re-authenticate. It also fully eliminates any possibility of path traversal, given that uids are always integer values. The issue was corrected in commit Fixed in
0.2.1
References Updated Nov 08, 2023 · Source: OSV.dev |
0.2.0-dev.20230627
unknown
Dependencies (7)
Changelog
Compare changes
|
|
0.1.0-dev.20230620
unknown
3 CVEs
CVE-2025-46718
GHSA-w9q3-g4p5-5q2r
May 13, 2025
sudo-rs Allows Low Privilege Users to Enumerate Privileges of Others
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with limited sudo privileges (e.g. execution of a single command) can list sudo privileges of other users using the PoCThe initial test has been done in a container running Ubuntu 24.04 and installing oxidizr, running sudo-rs 0.2.2. A user (bob) has been added with only ps command executable through sudo:
The user is not able to read the
The same command with sudo-rs is run without denying the execution:
The same happens for other non-root users:
The behavior has been also been observed for version 0.2.5. ImpactUsers with limited sudo privileges can enumerate the sudoers file, revealing sensitive information about other users' permissions. Attackers can collect information that can be used to more targeted attacks. Systems where users either do not have sudo privileges or have the ability to run all commands as root through sudo (the default configuration on most systems) are not affected by this advisory. CreditsThis issue was identified by Sonia Zorba. Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-46717
GHSA-98cv-wqjx-wx8f
May 13, 2025
sudo-rs Allows Low Privilege Users to Discover the Existence of Files in Inaccessible Folders
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with no (or very limited) sudo privileges can determine whether files exists in folders that they otherwise cannot access using PoCAs root:
As a user without any (or limited) sudo rights:
I.e. the user can distinguish whether files exist. RelatedOriginal sudo (vulnerable version tested by us: 1.9.15p5) exhibited similar behaviour for files with the executable bit set. ImpactUsers 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. CreditsThis issue was identified by sudo-rs developer Marc Schoolderman Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2023-42456
RUSTSEC-2023-0069
GHSA-2r3c-m6v7-9354
Nov 01, 2023
sudo-rs: Path Traversal vulnerability
3.1
/ 10
Low
Local
Low
High
Required
Unchanged
None
Low
Low
ImpactAn issue was discovered where usernames containing the . and / characters could result in the corruption of specific files on the filesystem. As usernames are generally not limited by the characters they can contain, a username appearing to be a relative path can be constructed. For example we could add a user to the system containing the username ../../../../bin/cp. When logged in as a user with that name, that user could run sudo -K to clear their session record file. The session code then constructs the path to the session file by concatenating the username to the session file storage directory, resulting in a resolved path of /bin/cp. The code then clears that file, resulting in the cp binary effectively being removed from the system. An attacker needs to be able to login as a user with a constructed username. Given that such a username is unlikely to exist on an existing system, they will also need to be able to create the users with the constructed usernames. PatchesThe bug is fixed in version 0.2.1 of sudo-rs. Sudo-rs now uses the uid for the user instead of their username for determining the filename. Note that an upgrade to this version will result in existing session files being ignored and users will be forced to re-authenticate. It also fully eliminates any possibility of path traversal, given that uids are always integer values. The issue was corrected in commit Fixed in
0.2.1
References Updated Nov 08, 2023 · Source: OSV.dev |
0.1.0-dev.20230620
unknown
Dependencies (7)
Changelog
Compare changes
|
|
0.1.0
unknown
3 CVEs
CVE-2025-46718
GHSA-w9q3-g4p5-5q2r
May 13, 2025
sudo-rs Allows Low Privilege Users to Enumerate Privileges of Others
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with limited sudo privileges (e.g. execution of a single command) can list sudo privileges of other users using the PoCThe initial test has been done in a container running Ubuntu 24.04 and installing oxidizr, running sudo-rs 0.2.2. A user (bob) has been added with only ps command executable through sudo:
The user is not able to read the
The same command with sudo-rs is run without denying the execution:
The same happens for other non-root users:
The behavior has been also been observed for version 0.2.5. ImpactUsers with limited sudo privileges can enumerate the sudoers file, revealing sensitive information about other users' permissions. Attackers can collect information that can be used to more targeted attacks. Systems where users either do not have sudo privileges or have the ability to run all commands as root through sudo (the default configuration on most systems) are not affected by this advisory. CreditsThis issue was identified by Sonia Zorba. Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-46717
GHSA-98cv-wqjx-wx8f
May 13, 2025
sudo-rs Allows Low Privilege Users to Discover the Existence of Files in Inaccessible Folders
3.3
/ 10
Low
Local
Low
Low
None
Unchanged
Low
None
None
SummaryUsers with no (or very limited) sudo privileges can determine whether files exists in folders that they otherwise cannot access using PoCAs root:
As a user without any (or limited) sudo rights:
I.e. the user can distinguish whether files exist. RelatedOriginal sudo (vulnerable version tested by us: 1.9.15p5) exhibited similar behaviour for files with the executable bit set. ImpactUsers 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. CreditsThis issue was identified by sudo-rs developer Marc Schoolderman Fixed in
0.2.6
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2023-42456
RUSTSEC-2023-0069
GHSA-2r3c-m6v7-9354
Nov 01, 2023
sudo-rs: Path Traversal vulnerability
3.1
/ 10
Low
Local
Low
High
Required
Unchanged
None
Low
Low
ImpactAn issue was discovered where usernames containing the . and / characters could result in the corruption of specific files on the filesystem. As usernames are generally not limited by the characters they can contain, a username appearing to be a relative path can be constructed. For example we could add a user to the system containing the username ../../../../bin/cp. When logged in as a user with that name, that user could run sudo -K to clear their session record file. The session code then constructs the path to the session file by concatenating the username to the session file storage directory, resulting in a resolved path of /bin/cp. The code then clears that file, resulting in the cp binary effectively being removed from the system. An attacker needs to be able to login as a user with a constructed username. Given that such a username is unlikely to exist on an existing system, they will also need to be able to create the users with the constructed usernames. PatchesThe bug is fixed in version 0.2.1 of sudo-rs. Sudo-rs now uses the uid for the user instead of their username for determining the filename. Note that an upgrade to this version will result in existing session files being ignored and users will be forced to re-authenticate. It also fully eliminates any possibility of path traversal, given that uids are always integer values. The issue was corrected in commit Fixed in
0.2.1
References Updated Nov 08, 2023 · Source: OSV.dev |