The issue was addressed with improved memory handling. This issue is fixed in macOS Sonoma 14.5. Processing a file may lead to unexpected app termination or arbitrary code execution.
https://support.apple.com/kb/HT214106
https://support.apple.com/en-us/HT214106