Websites are going offline. Governments are issuing urgent cybersecurity warnings. Security teams around the world are racing to update their servers. At the centre of this growing security alert is a piece of software that most internet users have probably never heard of: PHP.
Two critical vulnerabilities in PHP, known together as PHP2Shell, can allow attackers to remotely execute malicious code on vulnerable servers without needing to log in first. Both vulnerabilities have been rated 9.2 out of 10 under the CVSS v4.0 scoring system, placing them in the critical category.
The PHP project released emergency security updates on 21 October 2026. But by then, security researchers had already detected attempts to exploit the vulnerabilities, while organisations in several countries were taking websites and online services offline as a precaution.
The situation has also raised another important question: if artificial intelligence helped researchers find the vulnerabilities, could the same technology help hackers exploit them faster?
Here is PHP2Shell explained in simple terms.
PHP2Shell in 5 Points
1. PHP is a programming language used by a huge number of websites.
2. Two critical vulnerabilities were found in PHP itself, rather than in a particular website or plugin.
3. The flaws can potentially allow an unauthenticated attacker to execute malicious code remotely.
4. Organisations worldwide have rushed to patch affected systems, with some temporarily taking services offline.
5. AI-assisted security research played a role in finding and investigating the vulnerabilities, highlighting how quickly both defensive and offensive cybersecurity capabilities are changing.
One important point should be made clear from the beginning: PHP being widely used does not mean 70% of websites are vulnerable to PHP2Shell. The actual risk depends on the PHP version, deployment and whether the system has been patched.
What Happened With PHP2Shell?
PHP’s development team disclosed two critical vulnerabilities identified as CVE-2026-109618 and CVE-2026-109619. The vulnerabilities affect PHP’s core runtime and involve problems with memory handling. Under certain conditions, a remote attacker can send specially crafted requests to a vulnerable PHP server and potentially make it execute code of the attacker’s choice.
Read more | SBI Data Leak Explained: What Happened, What Customers Should Know and How Banks Can Prevent It
This is known as remote code execution, or RCE. The danger comes from the combination of three things. PHP is extremely widely used. The vulnerabilities affect PHP itself. And attackers have already been seen probing for ways to exploit them. The PHP Foundation has said there is no evidence that the PHP project itself was compromised, but organisations running affected versions have been urged to update immediately.
First Things First: What Is PHP?
If you have never heard of PHP, there is no need to worry about the technical terminology. PHP is a programming language that helps websites work. When you open a website, your browser shows you the finished page. But before that page reaches your screen, a server has to process your request.
For example, when you log into a website, search for a product, submit a form or access information from a database, the server needs software to process those requests. PHP is one of the technologies that can do that work. You do not necessarily see PHP when you use a website, but it may be doing important work in the background.
PHP is open-source and has been used to build websites for more than 30 years. It is also used by major web platforms, including WordPress and other content-management systems. Estimates put PHP at around 70% of websites where the server-side programming language can be identified. That does not mean 70% of all websites are vulnerable. It means that a security problem in PHP has the potential to reach a very large number of systems.
So, What Is a PHP cyberattack?
A PHP cyber attack is not necessarily an attack on PHP as a company or organisation. In this case, attackers are trying to exploit security weaknesses inside PHP software running on web servers.
PHP2Shell is the name being used for the two critical vulnerabilities:
- CVE-2026-109618
- CVE-2026-109619
Both can potentially lead to unauthenticated remote code execution. In simple terms, an attacker could send a specially prepared request to a vulnerable server and, if the exploit works, make that server run instructions controlled by the attacker. That is what makes the vulnerabilities so serious.
What Does “Remote Code Execution” Actually Mean?
The phrase sounds complicated, but the basic idea is simple. Remote means the attacker does not need to be physically sitting in front of the computer. Code means instructions that a computer can understand. Execution means the computer actually runs those instructions. So, remote code execution means an attacker may be able to make a computer run their instructions from somewhere else.
Why Is PHP2Shell Such a Big Deal?
The first reason is simple: PHP is everywhere. The second is that the vulnerabilities are in the PHP engine itself. This is important because PHP2Shell is not simply a bug in one WordPress plugin or one company’s website. A website can use WordPress, Drupal, Joomla or another application, but if the underlying server is running a vulnerable PHP version, the PHP layer still needs to be addressed.
Read More | Your Smart TV Could Become an AI Host: How Serious Is Anthropic’s Self-Replicating AI Warning?
The third reason is the possibility of unauthenticated access. An attacker may not need to already have a username or password to attempt exploitation. That creates a much wider potential attack surface.
How Does PHP2Shell Work?
The technical details involve PHP’s handling of memory, but the basic idea can be explained without complicated programming terms. A computer uses memory as temporary working space while software is running. PHP constantly uses this memory while processing website requests. The two PHP2Shell vulnerabilities involve different problems with how that memory is handled.
CVE-2026-109618: The Out-of-Memory Problem
The first vulnerability involves an out-of-memory condition. In simple terms, an attacker can send specially crafted input that causes PHP to run into a memory problem while processing a request. Instead of safely stopping, PHP can mishandle information left in memory.
This can result in memory corruption. Under the right conditions, that corruption can potentially be manipulated into remote code execution. The important point for an ordinary reader is this:
The attacker is deliberately creating a situation in which PHP becomes confused about how it is handling its own memory. That confusion can then become a route to controlling the server.
CVE-2026-109619: The Leftover-Memory Problem
The second vulnerability involves what security researchers describe as a stale global state and a use-after-free condition. Imagine two people using the same desk. The first person finishes their work, but instead of completely clearing the desk, some information about their paperwork remains.
Read More | AI Agents Can Shop for You. So Why Are Websites Blocking Them?
The second person starts working. If the system accidentally uses the old information while handling the second person’s work, the wrong data can be accessed or manipulated. That is roughly the idea behind the second vulnerability. Under certain conditions, an attacker can cause PHP to use information that should no longer be available. This can lead to memory disclosure and potentially code execution. The two vulnerabilities are different, but both create potentially dangerous paths through PHP’s memory management.
How Could a Hacker Attack a Website?
At a high level, a potential attack could look like this:
Step 1: Find a vulnerable server
An attacker scans internet-facing systems looking for PHP installations that have not been patched.
Step 2: Send a specially crafted request
The attacker sends data designed to trigger one of the vulnerable conditions.
Step 3: Trigger the PHP flaw
PHP mishandles memory while processing the request.
Step 4: Attempt remote code execution
If the exploit succeeds, the attacker may be able to make the server execute malicious instructions.
Step 5: Try to take advantage of the access
Depending on the server’s permissions and configuration, the attacker could attempt to steal information, modify files, install malware or move further into the organisation’s network. This does not mean every vulnerable server will automatically be taken over. A vulnerability creates an opportunity. Successful compromise depends on several factors, including configuration, privileges and the attacker’s ability to exploit the flaw.
Why Did Websites Around the World Go Offline?
This is one of the most visible parts of the PHP2Shell incident. Websites and online services in several countries were temporarily taken offline while administrators worked to apply security updates. But there is an important distinction: A website going offline does not mean it was hacked.
In many cases, organisations deliberately shut down vulnerable or potentially vulnerable services as a precaution. The choice was essentially: Stay online while potentially vulnerable or Temporarily go offline while applying the fix
For many organisations, a few hours of downtime was considered safer than leaving a server exposed to a critical vulnerability. The UK, for example, saw dozens of government services become unavailable or partially unavailable while security teams worked on the issue. The UK’s National Cyber Security Centre also issued warnings to tens of thousands of organisations. The same defensive approach was seen in parts of Europe and Asia.
Which Countries Have Been Affected?
The PHP2Shell response has crossed national borders because PHP itself is used globally. Organisations and public services in countries including the UK, France, Germany, the Netherlands, Finland, Denmark, Japan and Canada have been affected by warnings, precautionary shutdowns or security measures.
The response has not been identical everywhere. Some organisations patched systems while keeping services online. Others isolated servers or temporarily shut down websites where immediate patching was not possible. The important point is that these disruptions should not automatically be described as confirmed breaches. In many cases, they were preventive security measures.
Why Did the Attacks Start So Quickly?
This is where the story becomes particularly concerning. Normally, when a serious vulnerability is discovered, researchers and software developers often use a process known as coordinated disclosure.
The researcher privately informs the software developer. The developer investigates the problem. A security update is prepared. Affected organisations receive advance information. The vulnerability is then publicly disclosed, ideally after users have had time to install the fix. This process is designed to prevent criminals from learning about a vulnerability before defenders have had a chance to protect their systems.
Read More | AI Safety vs AI Race: From Jacob Coxon to Trump’s AI Czar — Where Is This Story Heading?
PHP2Shell disrupted that process. The PHP Foundation had planned the security disclosure for 22 October, but information about the vulnerabilities began circulating online earlier than expected. That created a very short window between “attackers know about the problem” and “everyone has had time to patch it.”
How Is India Dealing With PHP2Shell?
India’s Computer Emergency Response Team-India, or CERT-In, has issued an advisory warning about the vulnerabilities. It has classified the threat as high risk and warned that successful exploitation could allow remote code execution and potentially lead to complete system compromise. CERT-In has advised organisations and individuals using PHP to apply the relevant security updates.
For Indian companies, banks, government departments, educational institutions, hospitals and other organisations using PHP, the immediate task is to determine whether their systems are running an affected version.
For a small, well-managed website, updating PHP may be relatively quick. For a large company or government department, however, the difficult part may be identifying every affected system, testing the update, deploying it safely and checking whether the server was already targeted.
What Should Ordinary Internet Users Do?
For most people, there is no reason to panic. PHP2Shell is primarily a server-side vulnerability. Ordinary users generally cannot patch the PHP installation running on a website themselves. However, there are sensible precautions everyone should follow.
Keep your phone, computer, browser and operating system updated. Use strong and unique passwords. Turn on multi-factor authentication wherever it is available. Be cautious about unexpected links and downloads. Do not ignore browser security warnings. And if a major website suddenly goes offline, do not immediately assume it has been hacked. It may have been taken offline deliberately while its security team applies a patch.
Read More | Bill Gates’ AI Safety Risk Warning: Jobs, Robot Tax, ‘Human Reserved’ Work and What Comes Next
Why Does PHP2Shell Matter to Ordinary Internet Users?
The incident reveals something most people rarely think about. When you visit a website, you see a page. You do not see the thousands of pieces of software working behind it. PHP is one of those hidden building blocks.
If a vulnerability is discovered in a widely used component, thousands or potentially millions of systems may suddenly need attention. That means cybersecurity is not only about protecting your phone or choosing a strong password. It is also about securing the software that quietly keeps websites, businesses, government services and online platforms running.
Indrani Priyadarshini is a journalist and editorial professional specialising in technology, artificial intelligence, smart cities, green energy, and digital transformation. With over four years of experience in tech journalism and digital media, she is known for turning complex industry developments into clear, engaging, and insightful stories. Her expertise spans reporting, editorial strategy, digital publishing workflows, and in-depth coverage of emerging technologies shaping the future.
