A logic issue was addressed with improved checks. This issue is fixed in iOS 16.7.8 and iPadOS 16.7.8, macOS Monterey 12.7.5, macOS Ventura 13.6.7, macOS Sonoma 14.4. An app may be able to access user-sensitive data.
https://support.apple.com/kb/HT214107
https://support.apple.com/kb/HT214105
https://support.apple.com/kb/HT214100
https://support.apple.com/kb/HT214084
https://support.apple.com/en-us/HT214107
https://support.apple.com/en-us/HT214105
https://support.apple.com/en-us/HT214100
https://support.apple.com/en-us/HT214084
http://seclists.org/fulldisclosure/2024/May/14