Stuff Breaks - What PHP2Shell teaches us about software, maintenance, and AI

With the severity of the recent PHP2Shell vulnerabilities, and the number of WordPress websites I manage, I sent an email to my clients letting them know their websites were fine and that no issues had been identified. The hosting companies I work with have been reliable and proactive in handling situations like this.

One client responded, thanking me for the update and mentioning they had heard about it on NPR. When a PHP vulnerability makes it onto a major news service, you know it’s serious.

Since then, I’ve seen some interesting posts on LinkedIn about PHP2Shell.

Lots of opinions about PHP, WordPress, AI-generated software, and whether certain technologies should be abandoned.

I think many are missing the point.

Stuff breaks.

PHP2Shell is a software engineering and maintenance problem, not evidence that one programming language, framework, or development approach is inherently superior.

To be clear, the vulnerabilities were in PHP itself. Not WordPress, not Laravel, not Drupal, or any other application built with PHP.

Some of the affected code dates back to 2012, with other vulnerable code paths dating to 2017.

That’s a long time for something this serious to go undetected.

What’s particularly interesting is the timeline.

A related memory-management problem had been identified by a PHP developer in 2024, but there wasn’t a demonstrated practical exploit.

In August 2026, AI-assisted security researchers discovered the vulnerabilities and developed working exploits. The first report was submitted on August 11.

By October 17, Amazon had detected exploitation attempts.

On October 21, emergency patches were released.

Think about that. Code that had existed for years became demonstrably exploitable, and attempts to exploit it were detected before the public disclosure.

I’ve been doing this professionally for almost 30 years, and I’ve been behind a keyboard even longer.

Stuff breaks.

Even with all the planning, redundancies, code reviews, CI/CD pipelines, automated testing, end-to-end testing, monitoring, and services promising incredible uptime, things still break.

This is nothing new.

There’s a great line from the remake of Battlestar Galactica that sums it up:

“All of this has happened before, and all of this will happen again.”

We’ve seen it with Heartbleed in OpenSSL, Log4Shell in Java’s Log4j library, vulnerabilities in OpenSSH, and even the removal of a tiny JavaScript package called left-pad that disrupted software builds.

We’ve seen major outages from Cloudflare, AWS, and CrowdStrike.

Different technologies. Different causes. Similar lessons.

The bigger concern isn’t simply how many CVEs have been issued against PHP, Python, Node.js, Java, or any other language.

It’s how many vulnerabilities are still sitting in software today, either undiscovered or known but not considered practically exploitable.

And now we have AI.

AI helped researchers find and exploit these PHP vulnerabilities. It’s increasingly capable of reviewing enormous amounts of code and identifying problems that developers may have overlooked for years.

That means vulnerabilities could be discovered faster. Unfortunately, it also means they could be exploited faster.

Maybe that’s ultimately a good thing.

Maybe it will force us to make better decisions about how we secure software.

Maybe companies will take software upgrades, maintenance, and technical debt more seriously.

Maybe we’ll reconsider how long we should support older versions of software, and whether maintaining backward compatibility is worth the security and maintenance costs.

Maybe we’ll start treating security and maintenance as fundamental parts of software development, rather than something we deal with after the software is built.

And maybe AI will help us find and correct more of these problems before they become major incidents.

But I don’t think the answer is that PHP is dead, WordPress is insecure, AI-generated software is inherently dangerous, or that moving everything to another programming language somehow solves the problem.

Every technology has tradeoffs. Every system has dependencies. And every piece of software eventually needs maintenance.

AI may change how we write software, how we find vulnerabilities, and how quickly we fix them.

But it doesn’t eliminate the responsibility of understanding, securing, and maintaining what we build.

Stuff breaks. The real question is how well we prepare for it, how quickly we respond, and what we learn when it happens.