An authentication issue was addressed with improved state management. This issue is fixed in macOS Sonoma 14.5, watchOS 10.5, iOS 17.5 and iPadOS 17.5, iOS 16.7.8 and iPadOS 16.7.8. An attacker with physical access may be able to leak Mail account credentials.
https://support.apple.com/kb/HT214106
https://support.apple.com/kb/HT214104
https://support.apple.com/kb/HT214101
https://support.apple.com/kb/HT214100
https://support.apple.com/en-us/HT214106
https://support.apple.com/en-us/HT214104