Web users are being urged to install Microsoft's emergency patch, which fixes a bug in Internet Explorer, immediately.

Microsoft  released the patch yesterday, after it was revealed that nearly two million PCs have been infected.

The flaw, which was accidentally made public by Chinese security researchers just over a week ago, has been used in a growing number of web-based attacks over the past few days. Criminals have posted attack code that exploits this flaw on thousands of websites so far, according to Rick Howard, intelligence director with VeriSign's iDefense group. VeriSign has now seen six variants of the attack software, all of which attempt to steal Chinese online gaming credentials.

Microsoft Internet Explorer 8 review

Often the attack is launched through a hidden iFrame component that is surreptitiously put on a website. VeriSign has even spotted one such iFrame attack on a legitimate financial institution's website, Howard said. "The volume of iFrames deploying this thing is really high."

The flaw lies in the way Internet Explorer's data-binding function works, Microsoft said. When the browser is attacked it will crash, corrupting the computer's memory and allowing the criminal to run unauthorised software.

Because Internet Explorer is used by about 70 percent of web surfers, this attack code will probably show up in widely used malicious software toolkits "very shortly", Howard said.

Visit Security Advisor for the latest internet threat news, FREE net threat email newsletters, and internet security products

Visit Broadband Advisor for the latest internet news, reviews, tips & tricks - and to take advantage of PC Advisor's unique, independent Broadband Speed Tester

Other security companies agreed with VeriSign's assessment. "Microsoft's latest IE out-of-band patch release needs to be installed right away," said Shavlik Technologies.

"The number of infected websites is growing at an alarming rate - even people visiting legitimate websites are getting hacked with this exploit."

The flaw is so serious, in fact, that Microsoft took the unusual step of issuing its security fix weeks ahead of schedule. Typically Microsoft releases security patches just once a month in order to simplify the lives of system administrators. Its next set of updates is due Jan. 13.

Criminals could also launch their attacks via email, by sending victims maliciously encoded HTML documents, although this type of attack has not been reported.

Microsoft's patch is for users of IE version 5 and up.

See also: Security alert as IE users told to switch to Firefox