The issue was addressed with improved checks. This issue is fixed in macOS Ventura 13.7.1, macOS Sequoia 15, iOS 17.7 and iPadOS 17.7, macOS Sonoma 14.7, visionOS 2, iOS 18 and iPadOS 18. Processing a maliciously crafted file may lead to heap corruption.
https://support.apple.com/en-us/121568
https://support.apple.com/en-us/121250
https://support.apple.com/en-us/121249
https://support.apple.com/en-us/121247