A path handling issue was addressed with improved validation. This issue is fixed in macOS Monterey 12.6.8, iOS 16.6 and iPadOS 16.6, macOS Big Sur 11.7.9, macOS Ventura 13.5, watchOS 9.6. An app may be able to gain root privileges.
https://support.apple.com/kb/HT213846
https://support.apple.com/kb/HT213842
https://support.apple.com/en-us/HT213848
https://support.apple.com/en-us/HT213845
https://support.apple.com/en-us/HT213844