An urgent warning has been issued to millions after a software used by more than half of the world's websites was found to have critical flaws that could let hackers take over servers.