A logic issue was addressed with improved checks. This issue is fixed in iOS 18.1 and iPadOS 18.1, iOS 17.7.1 and iPadOS 17.7.1, macOS Ventura 13.7.1, macOS Sonoma 14.7.1, watchOS 11.1, visionOS 2.1. A malicious app may use shortcuts to access restricted files.
https://support.apple.com/en-us/121570
https://support.apple.com/en-us/121568
https://support.apple.com/en-us/121567
https://support.apple.com/en-us/121566