This issue was addressed through improved state management. This issue is fixed in watchOS 10.6, macOS Sonoma 14.6, iOS 17.6 and iPadOS 17.6, tvOS 17.6. An app may be able to bypass Privacy preferences.
https://support.apple.com/en-us/HT214124
https://support.apple.com/en-us/HT214122
https://support.apple.com/en-us/HT214119
https://support.apple.com/en-us/HT214117
http://seclists.org/fulldisclosure/2024/Jul/22
http://seclists.org/fulldisclosure/2024/Jul/21