A permissions issue was addressed with additional restrictions. This issue is fixed in macOS Ventura 13.7, iOS 17.7 and iPadOS 17.7, iOS 18 and iPadOS 18, macOS Sonoma 14.7, macOS Sequoia 15. An app may be able to access user-sensitive data.
https://support.apple.com/en-us/121250
https://support.apple.com/en-us/121247
https://support.apple.com/en-us/121246