The issue was addressed with improved checks. This issue is fixed in watchOS 11.2, tvOS 18.2, macOS Sequoia 15.2, iOS 18.2 and iPadOS 18.2, macOS Ventura 13.7.2, macOS Sonoma 14.7.2. An app may be able to break out of its sandbox.
https://support.apple.com/en-us/121844
https://support.apple.com/en-us/121843
https://support.apple.com/en-us/121842
https://support.apple.com/en-us/121840