Multiple issues were addressed by removing the vulnerable code. This issue is fixed in iOS 16.2 and iPadOS 16.2, macOS Ventura 13.1, watchOS 9.2. An app may be able to bypass Privacy preferences.
https://support.apple.com/en-us/HT213532
https://support.apple.com/en-us/HT213536
https://support.apple.com/en-us/HT213530
http://seclists.org/fulldisclosure/2022/Dec/27