This issue was addressed with improved checks. This issue is fixed in iOS 15.7.1 and iPadOS 15.7.1, macOS Ventura 13, watchOS 9.1, iOS 16.1 and iPadOS 16, macOS Monterey 12.6.1, macOS Big Sur 11.7.1. A user may be able to cause unexpected app termination or arbitrary code execution.
https://support.apple.com/en-us/HT213490
https://support.apple.com/en-us/HT213489
https://support.apple.com/en-us/HT213494
https://support.apple.com/en-us/HT213493