A logic issue was addressed with improved checks. This issue is fixed in macOS Sonoma 14.8, macOS Sequoia 15.7. A malicious app may be able to access private information.
https://support.apple.com/en-us/125112
https://support.apple.com/en-us/125111
http://seclists.org/fulldisclosure/2025/Sep/55