What is PHP and why did it spark a global cyber-security scramble?
AI-assisted discovery reveals decade-old flaws in PHP, prompting urgent patching warnings from international government agencies and tech firms.
Quick Look
- Researchers using AI uncovered decade-old, critical vulnerabilities in the PHP programming language, which powers 70% of websites.
- Governments worldwide and tech firms are urging immediate patching to prevent data theft and server exploitation.
AI-generated summary
Why It Matters
PHP is an open-source programming language developed in the 1990s that powers approximately 70% of the world's websites. The newly discovered vulnerabilities, dubbed 'php2shell', have existed for over a decade.
For more than a decade, serious flaws had gone undetected in the technology underpinning much of the internet.
It took AI to bring them to light and caused a global cyber-security alert.
The vulnerabilities lie within a programming language called PHP, which has been used internationally since the 2000s to build websites.
Governments and cyber-security agencies around the world are scrambling to contain the fallout of the discovery on Wednesday, and have urged website operators to install a new emergency fix or consider taking their platforms offline.
Cyber-security firm Wiz - one of the companies whose researchers uncovered the vulnerabilities - described the flaws as the "most severe" ever detected by AI.
OpenAI, whose technology was used to find the flaws, called the discovery "one of the most impactful security issues in recent memory".
Most people may not have heard of PHP, but they probably interact with it daily.
It stands for PHP: Hypertext Preprocessor, an open-source, back-end programming language which runs on a web server.
Developed in the early 1990s to help serve dynamic web pages and applications, PHP still powers lots of platforms today, including Wikipedia, online shops and WordPress – the system behind many websites.
When you visit a site, PHP is the code which collects data and effectively turns it into a page you can read.
It has also been used to write a number of tools for building or speeding up the creation of web apps, with Laravel, Symfony and Drupal among popular PHP frameworks.
According to cyber-security firm Wiz, which helped uncover the critical PHP vulnerabilities surfaced this week, PHP powers 70% of the world's websites.
It is maintained by a non-profit called the PHP Foundation, composed of individuals and companies which depend on the language and aim to ensure its "long-term prosperity".
A group of cyber-security researchers and organisations disclosed two vulnerabilities within PHP this week, which they warned could have the potential to upend sites across the internet.
Cyber firms Wiz and Calif said the flaws – coined "php2shell" - were inherent in the language itself, with versions of PHP released over the last decade affected.
Ryan Austin, a Calif researcher who helped uncover the security issues, told the BBC it was "the most serious vulnerability I've ever found".
Wiz wrote in a blog post about its findings that, under the right conditions, hackers could exploit the php2shell issue to take control of affected web servers and steal sensitive data - saying everything built on PHP was left exposed.
AI could also make such attacks easier and faster, Paul Spain, chief executive of Gorilla Cyber Security, told the BBC.
He estimated the flaw could affect "millions and millions" of websites.
Jill Slay, a cyber-security researcher at the University of Adelaide, said it would be "disastrous" if hackers or countries weaponised the flaw and seized private data from websites.
The PHP Foundation rolled out patches on Wednesday to fix the vulnerabilities that had been lurking in their software for years.
"All PHP users are strongly encouraged to update immediately," the company said.
Authorities and security organisations around the world have echoed those warnings to website operators to secure their platforms.
The US National Security Agency told all organisations that use PHP to take their systems offline if they were unable to patch them immediately, adding that the flaw could provide a "direct path" to exploit a system's database.
"These risks are serious enough to require immediate patching across United States Government departments and agencies," the agency said.
The UK's National Cyber Security Centre gave similar advice and told organisations to check for "backdoors installed by an attacker".
Its counterparts in the EU, Singapore and Australia have also issued similar alerts.
Japanese Prime Minister Sanae Takaichi urged people to check if their publicly available websites ran on PHP.
"We have an urgent request for everyone to take action tonight," Takaichi wrote on X.
"If it is difficult to apply the fix patch promptly, temporarily suspending websites and similar measures can be considered an effective way to reduce risk," she said.
Tech companies have also sought to quickly secure their systems.
E-commerce giant Amazon said it was targeted in multiple attempts days before the public disclosure of the PHP issue, but its websites were operating as normal.
Matthew Prince, the boss of internet infrastructure firm Cloudflare, also said it had seen "thousands" of attempts to exploit the PHP vulnerabilities across its network in the 10 hours before it was publicly announced.
"That jumped to tens of thousands in the 45 minutes post announcement, hundreds of thousands within two hours, and millions now," he wrote on X.
The issue affects back-end website and web development processes that will be invisible to many users - meaning most people won't need to take any action.
But small businesses with sites, including those built using WordPress, may be wondering how to protect themselves.
Those who own websites or manage infrastructure running PHP have been urged to secure their websites by updating to the latest version.
Ethical hacker Ken Munro, who has spent years finding security flaws in computer systems, says installing the fixes - known as patching - is "a bit like running a Windows update".
If a hosting company or web developer manages your website, contact them and ask whether the PHP security fixes have been applied - something that must be applied to PHP itself and cannot be resolved by updating WordPress or its plugins.
If you look after your website yourself, Munro says "it is your own responsibility to make sure fixes are applied".
The UK's National Cyber Security Centre recommends considering temporarily taking sites offline if updates or temporary protections cannot be applied quickly enough.
The US National Security Agency has also urged "heightened awareness" in the coming weeks, telling people to closely monitor updates from software vendors.
"Vigilance in applying patches related to those systems is paramount," it said.
And while the onus lies mainly on website operators, users should stay alert for any security advice issued by affected services, such as requests to change passwords, Kanhere said.
He warned people to be alert to any phishing messages exploiting the publicity around the incident too.
What to Watch
AI outlook — possibilities, not facts
Increased phishing attempts leveraging the PHP vulnerability news.
Likely · Within weeks
Open Questions
- How many systems have already been compromised?
- Will there be a rise in successful data breaches in the coming weeks?






