This issue was addressed by removing the vulnerable code. This issue is fixed in macOS Ventura 13.3, macOS Monterey 12.6.3, iOS 16.4 and iPadOS 16.4, macOS Big Sur 11.7.3, tvOS 16.4, watchOS 9.4. An app may be able to access user-sensitive data.
https://support.apple.com/en-us/HT213678
https://support.apple.com/en-us/HT213676
https://support.apple.com/en-us/HT213674
https://support.apple.com/en-us/HT213670