A path handling issue was addressed with improved validation. This issue is fixed in macOS Monterey 12.7.2, macOS Ventura 13.6.3, iOS 17.2 and iPadOS 17.2, tvOS 17.2, watchOS 10.2, macOS Sonoma 14.2. An app may be able to break out of its sandbox.
https://support.apple.com/en-us/HT214041
https://support.apple.com/en-us/HT214040
https://support.apple.com/en-us/HT214038
https://support.apple.com/en-us/HT214037