A logic issue was addressed with improved checks. This issue is fixed in iPadOS 17.7.3, 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 gain elevated privileges.
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
https://support.apple.com/en-us/121839