A privacy issue was addressed with improved handling of files. This issue is fixed in watchOS 10.1, macOS Sonoma 14.1, macOS Monterey 12.7.2, macOS Ventura 13.6.3, iOS 17.1 and iPadOS 17.1. An app may be able to access sensitive user data.
https://support.apple.com/en-us/HT214038
https://support.apple.com/en-us/HT214037
https://support.apple.com/en-us/HT213988