Latest
Billions for AI, Pennies for the Plumbing: AI Companies Should Pay to Keep PHP AlivePHP2Shell: AI Found a 22-Year-Old Crack Under Your Website in Two DaysPetrov Day: The Officer Who Didn’t Believe the ComputerKindle Unlimited Is Now Kindle+. AI Audiobooks Just Joined the BuffetMo Gawdat Says the AI Dystopia Starts in 2027. Read the List, Skip the DatesThe Society of Authors Signed an Ethical AI Charter, Then Ran From It in Eight DaysChina Is Using Bots to Fan the Data Center Backlash. The Backlash Is Still Real.When to Quit Writing a Book: I’ve Abandoned Dozens, and I’d Do It AgainGetty Images Filed for Bankruptcy. Can You Prove You Licensed Your Book’s Images?Fluff Words: Cut Them From Your Prose, Keep Them in Your DialogueWhere Can Writers Learn Storytelling From Movies? Richard Lowe Publishes 1,226 Film and TV Reviews With Writing Craft NotesWhere Are the Independent Bookstores and Public Libraries Worth Visiting in Tampa Bay? Author Richard Lowe Profiles 44 of ThemWhat Should You Know Before Hiring a Ghostwriter? The Writing King Publishes 57 New Answers, Including What to Do When It Goes WrongWhere Can You Hear Founders and Executives Tell Their Own Stories? Richard Lowe’s Leaders and Their Stories Publishes Every Unscripted Interview With a Full TranscriptAuthor Richard Lowe Publishes Eight Volumes of Enemies of You, a Researched Series on the Forces Working Against Ordinary AmericansThe Jackal (1997) ReviewThe Day of the Jackal (2024) ReviewYour First Novel Is an Apprentice Piece: What Beta Readers and Editors Can’t FixWhen the Cloud Gets Bombed: What the AWS Data Center Strikes Teach About BackupsHuman-Written Book Labels Are Gatekeeping With a FeeThe Enshittification of Microsoft Office: Why I Switched to a Free CloneGlobal Encryption Day: The Padlock Every Writer Depends OnWriting Your Worst Moments in a Memoir: Show the Evidence, Skip the VerdictHow to Register a Copyright for Your Book (and What Doesn’t Count)Your AI Chats Aren’t Private: Deleted ChatGPT Logs in CourtThe Board Seat Scam: A 419 Letter in a Business SuitI Joined the Science Fiction Book Club 30 TimesCitations in a Memoir: Endnotes, Footnotes and Fair UseThe Stores That Still Care: Publix, Walmart, Aldi, Best Buy and the RestThe Grocery Store Plan: Why Every Store Starts With FlowersWinnie-the-Pooh’s 100th Birthday: A Century in the Hundred Acre WoodFree With a Fill-Up: How America Stopped Giving Things AwayAI’s Black Box Is Getting a Window. Somebody Still Has to Look Through It“It Stars C. Thomas Howell. No.” Why AI Gets Stuck in a LoopShould You Query or Self-Publish Your Memoir If You’re Not Famous?Judge the Writing, Not the Tool: What the AI Pile-Ons Get WrongThiago Ferreira: Thinkers, Not DoersYana Semova: Let AI Do the AdminLisa Hamilton-Smith: Unstoppable, AI AssistedRobert E. Howard Day: The Texan Who Built ConanElmore Leonard Day: Leave Out the Part Readers SkipRoald Dahl Day: Six Pencils and a Grudge Against Grown-UpsEncourage a Young Writer Day: The Adult Who Read the PagesStephen King Day: The Daily Two ThousandZora Neale Hurston Day: The Ear She TrainedTell a Fairy Tale Day: The Stories Everybody EditedAlice’s Day: The Story Told on a Rowing BoatSuperman Day: The $130 Contract Behind the CapeNational Podcast Day: The Interview Is the Raw MaterialRaymond Chandler Day: The Novelist Who Started at Fifty
The Writing King Your Ethical Ghostwriter. Your Story, Done Right.

PHP2Shell: AI Found a 22-Year-Old Crack Under Your Website in Two Days

TL;DR: PHP2Shell is a pair of critical flaws in PHP, the language under about 70% of websites, including every WordPress site. The weakness was first reported in 2004, and nobody exploited it because the work was too tedious. In 2026 an AI model found a working attack in two days, and attacks started within hours of the October 21 patch. If you run an author website, confirm your host has patched PHP, keep a firewall in front of the site, and treat updates as urgent from now on.

Every website is a house built on a foundation the owner never sees. You pick the paint and the furniture. You argue about the front door. Under all of it sits a slab somebody poured years ago, and for most of the web that slab is PHP.

This week the world found out there’s been a crack in that slab since 2004. A researcher reported it that year, and it sat there because breaking through it took more patience than any attacker had. Then somebody pointed an AI model at it, and the AI found a way through in two days.

I spent 33 years in technology, a lot of it in cybersecurity, and my own business runs on a WordPress site. WordPress is written in PHP. So are the 70-odd plugins I’ve built for it. This one hits close to home.

Your website sits on PHP: a 22-year-old crack AI found in two daysA cross-section of a building. The roof is your author website. Below it, floors for themes and plugins, WordPress, and your host's web server. Everything rests on a foundation labeled PHP, which runs about 70 percent of websites, and the foundation has a crack: a flaw first reported in 2004. Timeline: 2004: Flaw reported, mostly ignored; 2020: Related bug, partial fix; 2024: Similar flaw left unfixed; Jul 30, 2026: AI pointed at PHP; Aug 1, 2026: AI finds a working attack; Oct 21, 2026: Patch ships, attacks in hours.Everything on your site sits on PHPA crack in the foundation sat for 22 years. AI found a way through it in two days.Your author websiteThemes and pluginsWordPressYour host's web serverPHPruns about 70% of the webFlaw first reported in 200422 years, then two days2004Flaw reported, mostly ignored2020Related bug, partial fix2024Similar flaw left unfixedJul 30, 2026AI pointed at PHPAug 1, 2026AI finds a working attackOct 21, 2026Patch ships, attacks in hoursthewritingking.com
Your website sits on PHP: a 22-year-old crack AI found in two daysA cross-section of a building. The roof is your author website. Below it, floors for themes and plugins, WordPress, and your host's web server. Everything rests on a foundation labeled PHP, which runs about 70 percent of websites, and the foundation has a crack: a flaw first reported in 2004. Timeline: 2004: Flaw reported, mostly ignored; 2020: Related bug, partial fix; 2024: Similar flaw left unfixed; Jul 30, 2026: AI pointed at PHP; Aug 1, 2026: AI finds a working attack; Oct 21, 2026: Patch ships, attacks in hours.Your site sits on PHPA 22-year-old crack, found by AI in two daysYour author websiteThemes and pluginsWordPressYour host's web serverPHPruns about 70% of the webFlaw first reported in 200422 years, then two days2004Flaw reported, mostly ignored2020Related bug, partial fix2024Similar flaw left unfixedJul 30, 2026AI pointed at PHPAug 1, 2026AI finds a working attackOct 21, 2026Patch ships, attacks in hoursthewritingking.com

Your author website, WordPress and your plugins all rest on PHP. The crack sat in the foundation for 22 years.

What is the PHP2Shell vulnerability?

PHP2Shell is the name given to two critical flaws in PHP, tracked as CVE-2026-109618 and CVE-2026-109619. Government agencies described both as remote code execution that needs no login. An attacker who never signs in can make your server run their code. From there they can read passwords, copy the database, plant malware or use your server as a door into the rest of the network.

The flaw lives in how PHP cleans up after a request gets cut off. CNN’s David Goldman compared it to a restaurant kitchen. Bury the chef in orders until she walks out mid-shift, and the next chef serves food off the dirty pans she left behind. When PHP runs out of memory at just the wrong moment, it leaves stale data lying around, and the next request can be tricked into using it.

PHP runs about 70% of the websites that use a server-side language. WordPress alone powers around 40% of all websites. Palo Alto Networks counted 22.6 million potentially vulnerable PHP instances.

Why did a PHP flaw go unexploited for 22 years?

Because exploiting it was miserable work. Stefan Esser warned about the weakness in July 2004. Another researcher found a related problem in 2020, and the PHP maintainers issued a partial fix. A similar flaw turned up in 2024 and was left alone.

Tedium was the lock, and AI doesn’t get bored.

To break in, an attacker had to crash the server’s memory at one exact instant and slip past PHP’s safety limits. Nobody bothered. One security CEO called it “security by exhaustion”: the door was unlocked, but it took so long to open that nobody tried.

Tedium was the lock, and AI doesn’t get bored.

On July 30, 2026, researchers at the security company Calif, working with OpenAI’s Patch the Planet program, pointed an AI model at PHP. OpenAI says the model was GPT-5.6 Sol. By August 1 it had found a way to attack. It found another a few days later. The cloud security firm Wiz found and reported the flaws on its own. The researchers said they used AI tools anyone can get.

What happened after the PHP2Shell patch was released?

Attackers moved before most site owners did. The PHP project shipped its fix on October 21. Word had leaked ahead of the release, and Amazon Web Services said it saw exploit attempts before the official disclosure.

Cloudflare reported tens of thousands of attack attempts within 45 minutes of the news and millions by that evening. Government agencies in the Netherlands and Finland took websites offline as a precaution. Proof-of-concept code started circulating almost immediately.

That’s the new pattern. A patch tells the whole world where the hole is. Twenty years ago you had weeks before anyone turned a patch into a working attack. Now you have hours, and the same AI that found the flaw can help an attacker weaponize the fix.

A 22-year-old PHP flaw was safe because exploiting it was boring. AI doesn’t get bored. Patch your site this week.
Share on X

Why does a security patch lead to more attacks at first?

Because a patch is a map. The moment the fix ships, anyone can compare the old code with the new code and see exactly what changed. That shows them where the hole was. Attackers used to need days or weeks to turn that comparison into a working attack. With AI doing the tedious part, it takes hours.

So the most dangerous window is the stretch between the patch going public and the patch landing on your server. For PHP2Shell, that window started before the official release, because details leaked.

Does that mean patches are bad? No. It means a patch you haven’t installed is worse than no news at all, since the attackers now know about the hole and you’re still sitting in it.

Who maintains the code an author website depends on?

Mostly people you’ll never meet. PHP is an open-source project. The PHP Foundation paid 11 developers to work on it going into 2026, on about $730,000 in donations for the year, and volunteers fill in the rest. WordPress is open source too. Your theme and plugins come from companies, solo developers and hobbyists, and some of them stopped paying attention years ago.

That system has worked surprisingly well for decades. It also means the foundation under 70% of the web had a known weak spot that nobody had the time or money to fully fix. Effort kept it safe, and money never did.

PHP isn’t the bottom, either.

It runs on an operating system, and on most web servers that’s Linux. Linux leans on small open-source libraries for compression and encryption. Some of those have been kept up by one or two people. When the Heartbleed bug hit in 2014, OpenSSL, the encryption library behind a huge share of secure websites, had about one full-time developer. In 2024 a stranger spent two years earning the trust of the volunteer who maintained xz Utils, a compression tool, and nearly slipped a backdoor into Linux through it.

Under all of that sits DNS, the internet’s address book. It turns a name like thewritingking.com into a server your browser can find. DNS is run by large organizations, not a lone volunteer, but everything above it stops working when it does.

The people holding the money aren’t paying for much of this. I made that case in billions for AI, pennies for the plumbing.

I’m in that chain myself. Most of the plugins on my site are ones I built, and this month I had every one of them put through a security review. Fixes are still going in. I wanted to find the small weaknesses nobody had bothered to test before somebody else’s AI found them for me.

Is my WordPress author website affected by PHP2Shell?

If your site runs on WordPress, it runs on PHP, so the answer depends on your host and your PHP version. Most authors are on managed hosting, where the host updates PHP for you. Your job is to confirm they did it.

Mine is on SiteGround’s GoGeek plan, running PHP 8.4, with Cloudflare Pro in front of it. That setup is about as boring as hosting gets, and boring is what I want. Even so, I don’t assume. A host that patches most servers in a day can still miss an old one, and a site pinned to an outdated PHP version won’t get the fix at all.

The security company CrowdStrike pointed out that lots of servers still run old PHP versions. It also said the patch almost certainly didn’t fix every problem PHP has. Few sites can realistically leave PHP. You’d be rebuilding the site from scratch.

What to check on your author website after PHP2Shell
Check How to do it Why it matters
PHP version Look in your hosting control panel or under Tools, Site Health in WordPress An outdated version won’t get the fix
Host’s patch status Read your host’s status page or open a support ticket and ask On managed hosting, the host applies the PHP update
Firewall Turn on a web application firewall, like Cloudflare’s managed rules Cloudflare shipped PHP2Shell rules as a stopgap
Backups Confirm a recent backup exists somewhere other than the server If someone got in before the patch, you need a clean copy
Error logs and odd files Scan the PHP error log and run your host’s malware scanner Strange errors or new files can be the first sign of trouble
Unused plugins and themes Delete anything you aren’t using Less code on the server means fewer places to hide

How should author websites handle security now that AI finds flaws faster?

Assume the clock runs faster than it used to. Security people have relied on effort for a long time without saying so. Plenty of known weaknesses never got exploited because the payoff wasn’t worth the work. AI just cut the work, so the old excuse for putting off an update (“nobody would bother”) is dead.

I’ve written that WordPress security is a posture, not a plugin. PHP2Shell shows why. No single tool would have saved you here. Layers do. On my own site, Cloudflare sits in front of everything and the login page is locked behind Cloudflare’s Zero Trust, so an attacker has to get through Cloudflare before WordPress even sees them. SiteGround’s scanner runs every night. About once a month I read the PHP error logs myself. None of that is exotic, and all of it adds up.

The other lesson is about the supply chain. You didn’t write PHP. You probably didn’t write WordPress or your plugins either. Your site depends on work done by people you’ll never meet, some of them volunteers, and a crack in any of it is a crack in your site. Fewer plugins, from developers who still maintain them, means fewer cracks.

And yes, the defenders have AI too. The same kind of model that found PHP2Shell found it for the people who fixed it. That race doesn’t end. Whoever patches faster wins it.

SiteGround Web Hosting
Recommended Resource

SiteGround Web Hosting

The hosting I run my own business on. Rock stable, flexible, and I have never had a system problem with it.

★★★★½ My rating: 4.5 / 5

Read My Full Review →

If you’re picking a host, pick one that manages PHP updates for you and patches fast. I run my business on SiteGround for that reason.

My take

PHP2Shell didn’t scare me. The 22 years did. A known flaw sat in the foundation of most of the web because breaking in was boring, and boredom was never a security control. AI ended that excuse in two days. If your site runs WordPress, confirm the patch this week, keep a firewall in front of it, and stop putting off updates because nobody would bother. Somebody’s machine will bother.

What to do about PHP2Shell this week

Log in to your hosting account and find your PHP version. Ask your host whether the October 21 security release is on your server, and get the answer in writing. Turn on your firewall rules. Check that you have a backup you could restore from today. Then delete the plugins you stopped using two years ago.

The Cybersecurity Hub has the rest of my security articles, including the boring security work that keeps you safe. If you’d rather hand your author site to someone who watches this stuff, my WordPress service is the place to start. Nobody admires a foundation. Check yours anyway, before something heavy lands on the crack.

From the author
Family Cybersecurity by Richard Lowe

Family Cybersecurity
The same habits that protect a website protect a household, and this one covers them at home: which updates matter, and backups that survive whatever eats the originals.

Frequently Asked Questions

What can an attacker do with PHP2Shell?
Run their own code on your server without logging in. PHP2Shell is the name for two critical PHP flaws, CVE-2026-109618 and CVE-2026-109619, disclosed and patched on October 21, 2026. They allow an attacker who never logs in to run code on a vulnerable server.
Does PHP2Shell affect WordPress sites?
WordPress runs on PHP, so a WordPress site is exposed if its server runs an unpatched PHP version. The fix is a PHP update. On managed hosting, the host applies it. Confirm with your host that it’s done.
How did AI find the PHP flaw so fast?
The weakness had been known in theory since 2004, but turning it into a working attack took long, tedious trial and error. An AI model kept at it without tiring and found a method in two days, starting July 30, 2026.
How do I check my website’s PHP version?
In WordPress, go to Tools, then Site Health, then the Info tab, and open the Server section. Your hosting control panel shows it too. If you’re unsure whether your version has the October 21 fix, ask your host.
Is PHP2Shell being exploited right now?
Yes. Cloudflare reported tens of thousands of attack attempts within 45 minutes of the announcement and millions the same day, and Amazon Web Services called it broadly exploited in the wild.
Can a firewall protect a site from PHP2Shell?
A web application firewall can block many known attack patterns, and Cloudflare released rules for this one. Attackers have already changed their payloads to slip past them, so a firewall buys time. The patch is still the fix.
Should I move my author website off PHP?
For most authors, no. A move off PHP means rebuilding the site on another platform. That costs far more than keeping a well-run PHP site patched. Choose a host that updates PHP quickly and keep your plugins lean.

About the Author
Richard Lowe, professional ghostwriter

Richard Lowe is a professional ghostwriter and author with 113+ books authored and 54+ ghostwritten. Before writing full time he spent 33 years in enterprise technology, including 20 years as Director of Computer Operations and Technical Services at Trader Joe's. He writes nonfiction, fiction and memoir, and works with executives and experts on books that build authority.

More about Richard Lowe →

Disclaimer

The views and opinions expressed in this blog post are solely those of Richard Lowe and are based on personal experience and research. This content is for informational purposes only and should not be construed as professional legal, financial, accounting, or business advice. Always consult with qualified professionals before making important business or legal decisions. Richard Lowe is not a lawyer, accountant, or licensed professional advisor, and this content does not establish any professional relationship.

0 comments

No comments yet. Yours can be the first.

Was this useful?

Leave a comment