Oof, I'm surprised sudo has lasted this long without serious inspection and fuzzing that should've caught this. Given its sensitive nature and low complexity, I'd say this utility is a high priority for being rewritten in rust.
If you tell rust to do silly things it will still do silly things. The “fix” for this is less complexity, like doas. Sudo is a ridiculously complex program
4 comments
[ 2.7 ms ] story [ 21.5 ms ] threadWrite-up: https://seclists.org/fulldisclosure/2021/Jan/79
https://news.ycombinator.com/item?id=25919494
https://news.ycombinator.com/item?id=25919360
https://news.ycombinator.com/item?id=25919235