Everyone is focusing on the fact that this us C vs rust. The original sudo has issues on its own. Its a large code base that does lots of things and has inherent security vulnerabilities.
Sudo is worth redoing regardless of language.
https://linuxsecurity.com/news/security-vulnerabilities/sudo-flaws-linux-privilege-at-risk