Apple has issued an important security update addressing a zero-day vulnerability exploited by hackers in targeted attacks.