An access issue was addressed with improved access restrictions. This issue is fixed in macOS Big Sur 11.5, Security Update 2021-004 Catalina, Security Update 2021-005 Mojave. A sandboxed process may be able to circumvent sandbox restrictions.
https://support.apple.com/kb/HT212805
https://support.apple.com/en-us/HT212603
https://support.apple.com/en-us/HT212602