Britain's National Health Service, one of the biggest state-run systems in the world, has suffered a significant cyber attack across its IT network Friday that has hit phone, computer and communications and forced the cancellations of surgeries around the country. 

The NHS, as it is known in Britain, has said they're investigating the system failure, which comes only hours after Spain's Telefonica SA, the country's biggest carrier, said it was hit by a "massive ransomware attack" that also affected other companies and organisations in Europe's fourth-largest economy.

We're aware of an IT issue affecting NHS computer systems. Please do not attend A&E unless it's an emergency. Thank you for your patience.

— NHS Mid Essex CCG (@MidEssexCCG) May 12, 2017
Spain's national cryptology center, a branch of the country's intelligence service, said the attack was aimed at Window operating systems by "encrypting all its archives and all the connected units inside the network, and infecting the rest of the Windows systems inside the network."

Telefonica was the only company to confirm it had been attacked, saying it had been suffered a "cybersecurity incident" affecting the personal computers of "some" employees.

Earlier this week, Microsoft Corp. (MSFT)  released an urgent update to stop hackers taking control of computers after a bug was discovered in its anti-malware software that allowed hackers to exploit by sending an infected email, instant message or getting the user to click on a web browser link.

Windows 8, 8.1,10 and Windows Server operating systems were affected by the bug, Microsoft said.

More from Markets

Big Blue Looks Stronger in the Weeks Ahead - Go Long Here and on Strength

Big Blue Looks Stronger in the Weeks Ahead - Go Long Here and on Strength

What the Government Shutdown Means for Retail

What the Government Shutdown Means for Retail

Jim Cramer Explains Why Analysts Got Goldman All Wrong

Jim Cramer Explains Why Analysts Got Goldman All Wrong

BlackRock's Profit Plunges 60% as Assets Slip Below $6 Trillion

BlackRock's Profit Plunges 60% as Assets Slip Below $6 Trillion

Real Goods Solar Plows Ahead With Energy Plans

Real Goods Solar Plows Ahead With Energy Plans