Microsoft has said it is working quickly to repair a security flaw in its Internet Explorer web browser after it detected attempts to exploit the weakness.

The coding problem affected versions six through 11 of the browser, with Microsoft saying it was aware of “limited, targeted attacks” taking advantage of the flaw.

“The vulnerability may corrupt memory in a way that could allow an attacker to execute arbitrary code in the context of the current user within Internet Explorer,” Microsoft said.

“An attacker could host a specially crafted website that is designed to exploit this vulnerability through Internet Explorer and then convince a user to view the website.”