This issue was addressed with improved checks. This issue is fixed in Security Update 2022-001 Catalina, macOS Big Sur 11.6.3. A malicious application may be able to bypass certain Privacy preferences.
https://support.apple.com/en-us/103173
https://support.apple.com/kb/HT212978