A logic issue was addressed with improved state management. This issue is fixed in macOS Big Sur 11.6.5, macOS Monterey 12.3, Security Update 2022-003 Catalina. An application may be able to gain elevated privileges.
https://support.apple.com/kb/HT213257
https://support.apple.com/en-us/HT213185