A logic issue was addressed with improved checks. This issue is fixed in macOS Sonoma 14.2, macOS Ventura 13.6.3, macOS Monterey 12.7.2. An app may be able to access protected user data.
https://support.apple.com/en-us/HT214038
https://support.apple.com/en-us/HT214037
https://support.apple.com/en-us/HT214036
http://seclists.org/fulldisclosure/2023/Dec/9