Debian Codegraph @

docs/sudo-cve.md

raw symbols SCIP
1 # Past sudo CVEs
2
3 This listing contains security issues originally found in sudo but which could
4 also be relevant for sudo-rs.
5
6 ## Possibly relevant CVEs / advisories
7
8 These CVEs/advisories are possibly relevant to sudo-rs:
9
10 | CVE | Tests | Sudo Advisory / Attack notes |
11 | ---------------------- | ----- | --------------------------------------------------------------------------- |
12 | CVE-1999-0958 [^1] | | Relative path attack (.. attack) |
13 | CVE-1999-1496 [^2] | | Information leakage on which commands exist |
14 | - [^rust] | | https://www.sudo.ws/security/advisories/heap_corruption/ |
15 | CVE-2002-0184 [^rust] | | https://www.sudo.ws/security/advisories/prompt/ |
16 | CVE-2004-1051 [^4] | | https://www.sudo.ws/security/advisories/bash_functions/ |
17 | CVE-2004-1689 [^22] | | https://www.sudo.ws/security/advisories/sudoedit/ |
18 | CVE-2005-1119 [^5] | | Corrupt arbitrary files via a symlink attack |
19 | CVE-2005-1993 [^6] | | https://www.sudo.ws/security/advisories/path_race/ |
20 | CVE-2005-4890 [^7] | | TTY hijacking when a privileged user uses sudo to run unprivileged commands |
21 | - [^9] | | https://www.sudo.ws/security/advisories/cmnd_alias_negation/ |
22 | CVE-2010-0426 [^23] | | https://www.sudo.ws/security/advisories/sudoedit_escalate/ |
23 | CVE-2010-1163 [^23] | | https://www.sudo.ws/security/advisories/sudoedit_escalate2/ |
24 | CVE-2010-1646 [^10] | | https://www.sudo.ws/security/advisories/secure_path/ |
25 | CVE-2010-2956 [^11] | | https://www.sudo.ws/security/advisories/runas_group/ |
26 | CVE-2011-0010 [^12] | | https://www.sudo.ws/security/advisories/runas_group_pw/ |
27 | CVE-2012-0809 [^13] | | https://www.sudo.ws/security/advisories/sudo_debug/ |
28 | CVE-2013-1775 [^14] | | https://www.sudo.ws/security/advisories/epoch_ticket/ |
29 | CVE-2013-1776 [^15] | | https://www.sudo.ws/security/advisories/tty_tickets/ |
30 | CVE-2013-2776 [^15] | | https://www.sudo.ws/security/advisories/tty_tickets/ |
31 | CVE-2013-2777 [^15] | | https://www.sudo.ws/security/advisories/tty_tickets/ |
32 | CVE-2014-9680 [^16] | | https://www.sudo.ws/security/advisories/tz/ |
33 | CVE-2015-5602 [^24] | | https://bugzilla.sudo.ws/show_bug.cgi?id=707 |
34 | CVE-2016-7032 [^17] | | https://www.sudo.ws/security/advisories/noexec_bypass/ |
35 | CVE-2016-7076 [^17] | | https://www.sudo.ws/security/advisories/noexec_wordexp/ |
36 | CVE-2017-1000367 [^18] | | https://www.sudo.ws/security/advisories/linux_tty/ |
37 | CVE-2017-1000368 [^18] | | https://www.sudo.ws/security/advisories/linux_tty/ |
38 | CVE-2019-18634 [^rust] | | https://www.sudo.ws/security/advisories/pwfeedback/ |
39 | CVE-2021-3156 [^21] | | https://www.sudo.ws/security/advisories/unescape_overflow/ |
40 | CVE-2021-23239 [^25] | | https://www.sudo.ws/releases/stable/#1.9.5 |
41 | CVE-2023-22809 [^20] | | https://www.sudo.ws/security/advisories/sudoedit_any/ |
42 | CVE-2023-28486 [^19] | | Syslog messages do not escape control characters |
43
44 [^1]: All our path checks should only ever be done with absolute paths
45 [^2]: We try to take care to only expose relevant information to the user
46 [^rust]: Our usage of Rust should mostly prevent heap corruption bugs from occurring
47 [^4]: env_reset is always enabled in sudo-rs, additionally we apply filtering to
48 several variables to prevent any additional attack paths
49 [^5]: -
50 [^6]: Sudo-rs uses the suggested realpath function, as it is considered available
51 enough for our target systems
52 [^7]: To prevent attacks, a PTY must be used when running commands within a TTY,
53 which is enabled by default in sudo-rs
54 [^9]: -
55 [^10]: -
56 [^11]: -
57 [^12]: -
58 [^13]: -
59 [^14]: -
60 [^15]: -
61 [^16]: -
62 [^17]: Sudo-rs uses seccomp filtering rather than libc function interception through LD_PRELOAD.
63 [^18]: -
64 [^19]: -
65 [^20]: Sudo-rs doesn't use a "stringly typed" interface between the execution and policy modules.
66 [^21]: Rust memory safety should prevent this, sudo-rs doesn't allow `-s` and `-e` to be combined, and sudo-rs
67 doesn't "unescape" program arguments in the sudoers module
68 [^22]: Reading the changed temporary file back is done by an unprivileged helper process.
69 [^23]: Sudo-rs matches commands based on (canonicalized and absolute) path names, so `sudoedit` never matches; furthermore,
70 invoking `sudo /path/to/sudoedit` will instead run `sudoedit` as the current user.
71 [^24]: Sudo-rs doesn't allow wildcards or symlinks in configuration arguments to sudoedit, and checks that all path
72 components are not writable by the calling user.
73 [^25]: Sudo-rs opens all components of the path to be edited exactly once, and checks that all path components are
74 not writable by the calling user.
75
76 ## Non-applicable CVEs
77
78 These CVEs are almost entirely not applicable in the current sudo-rs codebase,
79 mainly because the feature they relate to is not implemented. Sometimes this is
80 done purposefully, because the feature has security implications. Sometimes the
81 feature will be implemented at a later time, these CVEs might become
82 relevant at that time.
83
84 | CVE | Reason |
85 | -------------- | ----------------------------------------------------------------------------------------------------------- |
86 | CVE-2002-0043 | mail functionality is not implemented, https://www.sudo.ws/security/advisories/postfix/ |
87 | CVE-2005-2959 | env_reset is always enabled / blacklist is not supported, https://www.sudo.ws/security/advisories/bash_env/ |
88 | CVE-2005-4158 | env_reset is always enabled / blacklist is not supported, https://www.sudo.ws/security/advisories/perl_env/ |
89 | CVE-2006-0151 | env_reset is always enabled / blacklist is not supported |
90 | CVE-2007-3149 | Kerberos functionality is not implemented, https://www.sudo.ws/security/advisories/kerberos5/ |
91 | CVE-2009-0034 | The group matching logic does not have this bug, https://www.sudo.ws/security/advisories/group_vector/ |
92 | CVE-2010-0427 | runas_default is not implemented |
93 | CVE-2012-2337 | No host ip-based rule matching is currently implemented, https://www.sudo.ws/security/advisories/netmask/ |
94 | CVE-2012-3440 | Related to Red Hat specific script and not sudo directly |
95 | CVE-2014-0106 | Disabling env_reset is not supported, https://www.sudo.ws/security/advisories/env_add/ |
96 | CVE-2015-8239 | The sha2 digest feature is not implemented |
97 | CVE-2019-14287 | This bug is not present, https://www.sudo.ws/security/advisories/minus_1_uid/ |
98 | CVE-2021-23240 | sudo-rs does not have SELinux support, https://www.sudo.ws/security/advisories/sudoedit_selinux/ |
99 | CVE-2022-43995 | crypt/password backend is not implemented, only PAM |
100 | CVE-2023-27320 | The chroot functionality is not implemented, https://www.sudo.ws/security/advisories/double_free/ |
101 | CVE-2023-28487 | Sudoreplay is not implemented |
102 | CVE-2025-32462 | `sudo -h` is not implemented, https://www.sudo.ws/security/advisories/host_any/ |
103 | CVE-2025-32463 | The chroot functionality is not implemented, https://www.sudo.ws/security/advisories/chroot_bug/ |
104
105 ## Disputed CVEs
106
107 While these CVEs are related to sudo, they are disputed as security issues.
108 Either the behavior described in the CVE is intended behavior, or the issue
109 cannot be replicated.
110
111 | CVE | Notes |
112 | -------------- | ----- |
113 | CVE-2005-1831 | |
114 | CVE-2019-18684 | |
115 | CVE-2019-19234 | |
116 | CVE-2019-19232 | |