This issue was addressed by removing the vulnerable code. This issue is fixed in tvOS 17, watchOS 10, macOS Sonoma 14, iOS 17 and iPadOS 17, macOS Ventura 13.6.4. An app may be able to bypass Privacy preferences.
https://support.apple.com/kb/HT213940
https://support.apple.com/kb/HT213938
https://support.apple.com/kb/HT213937
https://support.apple.com/kb/HT213936
https://support.apple.com/en-us/HT214058
https://support.apple.com/en-us/HT213940
https://support.apple.com/en-us/HT213938
https://support.apple.com/en-us/HT213937