An app may be able to access protected user data. This issue is fixed in macOS Sonoma 14, macOS Ventura 13.6.1. The issue was addressed with improved checks.
https://support.apple.com/kb/HT213985
https://support.apple.com/en-us/HT213985
https://support.apple.com/en-us/120950