This issue was addressed with improved checks. This issue is fixed in macOS Monterey 12.5, watchOS 8.7, iOS 15.6 and iPadOS 15.6. An app may be able to execute arbitrary code with kernel privileges.
Published August 24, 2022.
Apple Ipados
Apple watchOS
Apple Macos
Apple iPhone OS