Apple released a security update after a small number of Macs were infected by malware.
The security fix can be downloaded here.
Earlier, Apple said Tuesday that some Mac computers were the target of a cyberattack conducted by the same hackers that targeted Facebook last week.
(Read More: Facebook Reveals Hack Attack, Says User Data Not Compromised)
"Apple has identified malware which infected a limited number of Mac systems through a vulnerability in the Java plug-in for browsers. The malware was employed in an attack against Apple and other companies, and was spread through a website for software developers. We identified a small number of systems within Apple that were infected and isolated them from our network. There is no evidence that any data left Apple. We are working closely with law enforcement to find the source of the malware," the company said in a statement to CNBC.
In separate hacking attacks Tuesday, Jeep's Twitter account was also breached.
(Read More: Jeep Becomes Latest Victim of Twitter Hack Attack)
The hackers took over Jeep's account and sent unofficial tweets. The hackers also wrote on Jeep's Twitter account that the company was being sold to Cadillac.
Cadillac said in a tweet shortly after the attack on Jeep's Twitter account that it was not connected to the hack.