A path handling issue was addressed with improved validation. This issue is fixed in macOS Sonoma 14.6, iOS 17.6 and iPadOS 17.6. An app may be able to access protected user data.
https://support.apple.com/en-us/HT214119
https://support.apple.com/en-us/HT214117