A permissions issue was addressed with improved validation. This issue is fixed in Security Update 2022-001 Catalina, macOS Monterey 12.2, macOS Big Sur 11.6.3. An application may be able to access restricted files.
https://support.apple.com/en-us/103173
https://support.apple.com/en-us/102848
https://support.apple.com/en-us/HT213056