Apple has released a security update to fix a zero-day vulnerability that was exploited by hackers at the beginning of 2023.