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.
"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.
(Read More: 10 Ways Companies Get Hacked )
Java, which is a widely used programming language, has a history as being used as a point of entry for cybercriminals. In fact, according to a report by the security firm Kaspersky Labs, half of all detected attacks in 2012 were caused by exploiting vulnerabilities in Java software.
(Read More: This Company Profits From Cyberwars )
In January, Oracle said it fixed a flaw in its Java software, but the Department of Homeland Security still urged people to disable the feature unless absolutely necessary.
On Friday, Facebook said it was the victim of a "sophisticated attack" that infected a small number of employees' computers when they visited a mobile developer website. But the company said that they had found no evidence that user data were jeopardized.