PHP2Shell: The Hack That Put Millions of Websites at Risk
Quick Answer
PHP2Shell is the name for two critical flaws in PHP (CVE-2026-109618 and CVE-2026-109619) that could let an attacker run code on a web server without logging in. PHP released fixes on October 21, 2026.
Video Chapters
Key Takeaways
- What Is PHP: First, what's PHP?
- What Happened: On October 21st, the PHP team rushed out emergency fixes for two serious flaws.
- Why It's a Big Deal: This one is serious.
- How to Stay Safe: So the fix is simple: update PHP.
This week, a single message sent to a website could let a stranger take control of the computer behind it. No password needed.
It's called PHP2Shell. Here's what it is, why it's such a big deal, and how to know if you're affected. Stay to the end for that part.
Part 1
What Is PHP

First, what's PHP? It's a programming language that runs on the web server behind a huge share of the world's websites.
Blogs, online stores, and countless business sites all use it. When you load one of those pages, PHP is working behind the scenes.
Part 2
What Happened

On October 21st, the PHP team rushed out emergency fixes for two serious flaws. Together, security researchers named them PHP2Shell.
Both bugs are about memory. In the right conditions, leftover data from one request could be reused by the next one, like a dirty plate going back on the shelf.
And that mess could let an attacker run their own code on the server. That's what security experts call remote code execution.
Researchers said the flaws had been hiding for decades. What changed is that new AI tools made it much easier to turn them into a working attack.
Part 3
Why It's a Big Deal

This one is serious. Amazon's security team spotted someone trying the attack on October 17th, four days before it was made public.
The attack can work with just one message, before the website's own code even starts running.
Part 4
How to Stay Safe

So the fix is simple: update PHP. The patched versions are 8.5.12, 8.4.27, 8.3.36, and 8.2.35.
If a site still runs PHP 8.1 or older, those versions don't get official updates anymore, so it's time to upgrade.
And if you just visit websites, there's nothing to install. This is a job for the people who run the servers.
The scary part isn't one bug. It's that AI is helping people find old ones faster, so keeping software updated matters more than ever.
Frequently Asked Questions
What Is PHP2Shell?
PHP2Shell is the name for two critical flaws in PHP (CVE-2026-109618 and CVE-2026-109619) that could let an attacker run code on a web server without logging in. PHP released fixes on October 21, 2026.
Is It True That if you visit a PHP website, you need to install a fix?
No. Visitors don't need to do anything. The fix is for the people who run the servers: update PHP to 8.5.12, 8.4.27, 8.3.36 or 8.2.35.
Video Transcript
Read the full transcript
Intro 0:00
This week, a single message sent to a website could let a stranger take control of the computer behind it. No password needed.
It's called PHP2Shell. Here's what it is, why it's such a big deal, and how to know if you're affected. Stay to the end for that part.
What is PHP 0:19
First, what's PHP? It's a programming language that runs on the web server behind a huge share of the world's websites.
Blogs, online stores, and countless business sites all use it. When you load one of those pages, PHP is working behind the scenes.
What happened 0:36
On October 21st, the PHP team rushed out emergency fixes for two serious flaws. Together, security researchers named them PHP2Shell.
Both bugs are about memory. In the right conditions, leftover data from one request could be reused by the next one, like a dirty plate going back on the shelf.
And that mess could let an attacker run their own code on the server. That's what security experts call remote code execution.
Researchers said the flaws had been hiding for decades. What changed is that new AI tools made it much easier to turn them into a working attack.
Quick question 1:15
Quick question: does your website or business run on PHP? Tell me in the comments.
Why it's a big deal 1:21
This one is serious. Amazon's security team spotted someone trying the attack on October 17th, four days before it was made public.
The attack can work with just one message, before the website's own code even starts running.
How to stay safe 1:35
So the fix is simple: update PHP. The patched versions are 8.5.12, 8.4.27, 8.3.36, and 8.2.35.
If a site still runs PHP 8.1 or older, those versions don't get official updates anymore, so it's time to upgrade.
And if you just visit websites, there's nothing to install. This is a job for the people who run the servers.
The scary part isn't one bug. It's that AI is helping people find old ones faster, so keeping software updated matters more than ever.