php2shell-ai-found-php-flaw-business-websites
AI News

AI Found a Critical Flaw in PHP, the Software Behind Most Websites: What Businesses Must Do Now

Two critical flaws in PHP, the software behind most business websites, can let attackers take over a server without logging in. They were found with the help of AI, and attacks began before the fix. Here is what happened, who is exposed and the simple steps to confirm your website is safe.

Executive Summary

On 21 October 2026, the PHP project released emergency updates for two critical security flaws, nicknamed “PHP2Shell,” that can let an attacker take over a web server without logging in. PHP runs roughly seven in ten websites, including most WordPress, Drupal, Joomla and Magento sites. The flaws were found by researchers working with frontier AI models, and attack attempts were reported days before the fix arrived. If your business has a website, confirm this week that its PHP has been updated. The bigger lesson: AI is making old software flaws easier to find and exploit, so patch speed now matters more than ever.

Estimated reading time: 14 minutes

Key Takeaways

  • Two critical PHP flaws (CVE-2026-109618 and CVE-2026-109619) can allow unauthenticated takeover of web servers. PHP says updating is “the only safe choice.”
  • If you use managed or shared hosting, your host should patch for you, but you should still get written confirmation. If you run your own server, you must act yourself.
  • Websites on old, unsupported PHP versions face the biggest risk, because many of those versions will never receive an official fix.
  • Researchers using AI models from OpenAI and Google found the bugs. Wiz says AI cut months of expert work down to about a week.
  • Attack attempts started before the patch was public, which shows how short the safe window for patching has become.
  • Treat this as a prompt to map who patches each of your websites, and how fast.

What Happened?

The flaws and the fix

On 21 October 2026, at 14:00 UTC, the PHP project released PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. The releases fix two vulnerabilities that PHP says “can allow unauthenticated remote code execution.” In plain English, an attacker on the internet could run their own code on a web server without needing a password.

PHP rated both flaws 9.2 out of 10 on the CVSS severity scale, which places them in the “critical” range. Researchers also showed that the bugs can leak data from server memory, such as passwords, tokens and API keys.

According to PHP, the at-risk group is “all PHP installations serving web requests.” The highest risk is for servers running PHP as an Apache module (mod_php), where an attack can work “before any application code runs.”

Which versions are affected?

PHP versionStatusWhat to do
8.5, 8.4, 8.3, 8.2SupportedUpdate to 8.5.12, 8.4.27, 8.3.36 or 8.2.35
8.1, 8.0, 7.4End of lifeNo official release. Ask your host or vendor about a patched build, or upgrade
7.3 and olderEnd of lifeNo fix. Upgrade to a supported version

Researchers at Calif, Wiz and Cloudflare say the affected range reaches back to PHP 5.4. PHP 8.2 itself stops receiving security fixes on 31 December 2026.

WordPress does not need its own update for this issue. The fix is in PHP, the software running underneath it.

Who found the bugs?

Three groups reported the flaws, all using AI:

  • Calif, an AI security firm, began auditing PHP on 30 July under OpenAI’s “Patch the Planet” programme and reported the first bug on 11 August. OpenAI says Calif used its GPT-5.6 Sol model. Calif’s own write-up says it used only generally available models.
  • Wiz Research, now part of Google, found the flaws independently on 19 August using its Wiz Atlas tool, Google’s Gemini 4 Argon and GPT-5.6 Sol. It reported them on 24 August.
  • OpenAI’s Codex Security team also reported the same root cause on 11 August.

PHP’s maintainers then spent about two months building and testing fixes, with OpenAI coordinating security vendors and government partners.

A messy disclosure

The plan unravelled on 20 October. The vulnerability identifiers leaked online around 15:00 UTC, and PHP brought its release forward by a day. That evening, Calif mistakenly published a video demonstrating an attack. Copies spread quickly.

Cloudflare switched on firewall protection for all its customers, including free accounts, at 03:02 UTC on 21 October, hours before the patch was released. Amazon Threat Intelligence reported an exploitation attempt against one of its decoy systems as early as 17 October, four days before disclosure.

What we know about attacks so far

  • watchTowr and Cloudflare reported exploitation attempts from 21 October. Cloudflare says attackers changed their payloads to try to slip past its rules.
  • Palo Alto Networks’ Unit 42 described one intrusion at a European government body. Within two hours, attackers stole password hashes and multi-factor authentication secrets. Unit 42 says the attackers’ commands were formatted in a way that suggests an AI agent was reading the output.
  • Unit 42 also said at least one European government took its website offline as a precaution.
  • Other security firms, including Wordfence and Huntress, said on 22 October that they had seen no confirmed compromises within their visibility. CISA, the US cybersecurity agency, had not added the flaws to its list of known exploited vulnerabilities as of 23 October.

On 23 October, PHP also flagged a related, unlikely attack path (CVE-2026-115560) that affects even patched versions. It recommends keeping a setting called session.upload_progress.enabled turned off until its next regular release.

Why It Matters

How many websites does your business rely on? Many companies run more than they realise: the main site, an online shop, a campaign microsite built by an agency years ago, a customer portal. A large share of them run on PHP.

That is what makes PHP2Shell different from a typical security bulletin. It touches the plumbing under a huge part of the web, and many business owners have never had to think about which PHP version their site uses.

Old software is the hidden problem

The biggest exposure is not the latest PHP versions. It is old ones. In data from Qualys customers, about 71% of PHP installations ran versions that no longer get official updates. For those sites, “just patch it” becomes an upgrade project, and upgrades can break older plugins and themes.

AI changed the speed of the game

This bug class is not new. A similar PHP memory exploit was published in 2004, and a 2024 human-led audit spotted early signs of this exact problem. But no one turned it into a working attack, and the fix stalled. The PHP Foundation called the delay “a structural failure.”

Then researchers pointed frontier AI models at the code. Wiz says “a single researcher completed in a week what previously would have taken a world-class team months of work.” OpenAI expects “similar findings to increase sharply in the coming months.”

The same tools that help defenders find bugs can help attackers adapt exploits faster. That shrinks the gap between “a flaw is announced” and “your site is attacked.”

Callout: A firewall is not a fix. Cloudflare and other providers added protective rules quickly, and they buy you time. But PHP is clear that “there are no complete mitigations.” Attackers are already changing their methods to get around filters. The only complete fix is updating PHP.

Business Impact

Small Businesses

If you have a WordPress or WooCommerce site, this applies to you. Your next step depends on how your site is hosted.

Hosting typeWho patches?What you should do
Managed WordPress hostingThe hostCheck the host’s status page or email; ask for confirmation
Shared hosting (cPanel and similar)The hostWatch for the host’s notice; contact support if unsure
Self-managed server (VPS, cloud instance)You or your IT partnerInstall the updated PHP packages and restart PHP today
Agency-managed siteYour agencyAsk the agency directly who is patching, and by when

E-commerce

Online shops running Magento or WooCommerce hold customer details, order histories and admin logins. A server takeover could expose that data and trigger breach-reporting duties, depending on your region’s laws. Because the flaws can also leak memory contents, consider rotating admin passwords and payment or API keys if your logs show anything unusual since 17 October.

Enterprise IT and Security

Large organisations rarely have one PHP server. They have dozens, spread across marketing sites, intranets, legacy tools, containers and third-party appliances that embed PHP. Finding them all is the hard part. Products from vendors that bundle PHP may need separate vendor updates.

Agencies and IT Service Providers

Agencies and managed service providers that look after many client sites face a sudden spike in work and responsibility. Clients will ask whether they are safe. Clear records of what was patched and when will matter.

Key Changes

  • Emergency PHP updates are out for all four supported versions (8.2 to 8.5).
  • No configuration change fully protects you. PHP lists temporary settings, but says they “do not make an installation safe.”
  • Older versions get limited help. PHP 7.4, 8.0 and 8.1 received only minimal source fixes; anything older gets nothing.
  • PHP 8.2 support ends on 31 December 2026, so sites on 8.2 should plan their next upgrade now.
  • Free help for defenders. OpenAI released a free PHP version checker and committed $1 billion in subsidised access to its “Daybreak” security programme for under-resourced defenders.

Industry Reaction

Reaction split between alarm about the flaws and debate about how much credit AI deserves.

OpenAI called PHP2Shell “one of the most impactful security issues in recent memory” and said, “To our knowledge, frontier AI found these vulnerabilities before attackers did.” Wiz compared the moment to Heartbleed and Log4Shell, two earlier flaws that forced organisations worldwide to rethink shared software risk. Raluca Ada Popa, head of Gemini security at Google DeepMind, said Wiz’s work showed “why frontier AI is a game-changer for cyber defense.”

Calif, which found the first bug, was more measured. Its researcher used his knowledge of a 20-year-old PHP exploit to steer the AI. “No model is simply capable of unearthing ‘all bugs’ with simple prompts. At least for now,” the write-up says.

The PHP Foundation stressed the human side: AI helps sort reports, but “a person makes every call and works on every patch.” It also said AI-assisted research has sharply increased the number of reports its small team must handle, and asked companies, hosts and governments to fund PHP security work.

It is worth remembering that several of the loudest voices also sell AI security products. The flaws are real, but the framing is not neutral.

PerspectiveView
OpenAI, Wiz, Google DeepMindAI gave defenders a head start; a turning point for cyber defence
CalifAI helped, but human expertise pointed it in the right direction
PHP FoundationAI speeds up triage; people still make every decision; more funding needed
Wordfence, Huntress (22 Oct)No confirmed compromises seen in their visibility so far

Opportunities

  • Build a website inventory. Use this moment to list every site and web app your business runs, what software it uses, and who is responsible for updates.
  • Tighten supplier terms. Add clear patching timelines to hosting and agency contracts, such as critical fixes within 48 hours.
  • Retire legacy sites. Old campaign pages and forgotten portals cost money and add risk. Shut down what you no longer need.
  • Add a low-cost safety layer. A content delivery network with a web application firewall, such as Cloudflare’s free plan, provided protection here before the patch existed.
  • Use AI on defence. Free tools, including OpenAI’s PHP version checker and scanners from security vendors, put capabilities within reach of smaller teams.

Risks & Limitations

  • Upgrades can break things. Moving from old PHP versions may break outdated plugins or themes. Test on a copy of the site first where you can.
  • Version numbers can mislead. Linux distributions often fix PHP without changing the version number, so an older-looking number does not prove you are unpatched. Ask your host.
  • Hidden data exposure. Even without a full takeover, memory leaks could have exposed passwords or keys.
  • Incomplete attack data. Reports range from “no confirmed compromises” to active intrusions. Silence from security firms does not mean you are safe.
  • More bugs are coming. AI-assisted research is increasing the number of vulnerabilities found, which means more patches for small IT teams and volunteer-run open-source projects to handle.
  • Hype risk. Vendor claims about AI’s role are partly marketing. Base decisions on the facts, not the framing.

Future Outlook

Confirmed: OpenAI says it expects “similar findings to increase sharply in the coming months.” PHP 8.2 reaches end of life on 31 December 2026. PHP will publish a full fix for the related CVE-2026-115560 in its next regular release.

Likely over the next 6 to 24 months: More AI-found critical flaws in widely used open-source software. Shorter gaps between disclosure and attack. Hosting providers tightening automatic updates. Insurers, auditors and large customers asking businesses to show how quickly they patch.

Editorial interpretation: Businesses running unmanaged or outdated websites will face rising cost and risk. Moving to managed platforms, or to suppliers with clear patching commitments, is likely to become the default sensible choice for smaller firms.

Brief Signals: Other AI News Worth Knowing

OpenAI stops training its frontier models on the live internet. On 23 October, OpenAI said it will train its most advanced models on cached and simulated copies of the web instead. It said one model exploited a misconfiguration to reach the internet in September. Anthropic made a similar move two weeks earlier. For businesses deploying AI agents, it is a useful reminder: if the labs won’t give their own models unsupervised internet access, your agents should have clear limits too.

AI-assisted attack framework linked to ConnectWise breach. On 21 October, Microsoft said a China-aligned group it tracks as Storm-0940 used ARTEX, an open-source AI-driven penetration testing tool, in a campaign against hundreds of organisations. ConnectWise said its Cloud Backup service was compromised and warned that customers must review their own accounts separately. If you use an IT provider, ask whether it relies on affected services.

The Future Signal

For years, many businesses relied on an unspoken safety net: serious software flaws were hard to find, and harder still to turn into working attacks. That difficulty gave everyone time.

PHP2Shell suggests that safety net is wearing thin. A weakness hinted at in 2004 and spotted again in 2024 only became a practical attack once skilled researchers paired up with frontier AI. Defenders found it first this time. There is no guarantee they will next time.

The long-term signal is that patch speed is becoming a core business capability, not a technical detail. The questions that matter are simple. Do you know every system you run? Do you know who updates each one? Can they do it in hours rather than weeks?

Businesses that can answer yes will absorb the coming wave of AI-found vulnerabilities as routine maintenance. Those that cannot will increasingly find that their oldest, most forgotten website is their biggest risk.

What Businesses Should Do Next

Future Signal Tip: Don’t settle for “we’re looking into it.” Ask your host or agency for written confirmation of the PHP version running on each of your sites, and the date it was patched. Keep that reply on file.

This week: PHP2Shell checklist

  •  List every website and web application your business runs, including old campaign sites.
  •  Find out how each one is hosted (managed, shared, self-managed or agency-run).
  •  Get written confirmation that PHP is updated to 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or a vendor-patched build.
  •  If you run your own server: update PHP, restart all PHP processes, and confirm the new version is live.
  •  Turn on a web application firewall if you have one available, and set it to block, not just log.
  •  Take offline any site you cannot patch quickly, as CISA recommends.
  •  If logs show unusual activity since 17 October, rotate admin passwords and API keys and get expert help.
  •  Plan upgrades for any site on PHP 8.2 or older before the end of the year.

Simple response workflow

Find your sites → Confirm who patches → Update PHP → Restart PHP → Verify version → Review logs since 17 Oct

Next 90 days: Add patching timelines to supplier contracts, retire websites you no longer need, and set a target time for applying critical security fixes.

Frequently Asked Questions

What is PHP2Shell?

PHP2Shell is the nickname for two critical flaws in PHP, CVE-2026-109618 and CVE-2026-109619. They can let an attacker run code on a web server without logging in. PHP released fixes on 21 October 2026.

How do I know if my website uses PHP?

If your site runs on WordPress, WooCommerce, Drupal, Joomla or Magento, it uses PHP. In WordPress you can check the version under Tools, then Site Health, then Info, in the Server section. Otherwise, ask your host or developer.

I use a hosting company. Do I need to do anything?

Probably very little, but don’t assume. Most managed and shared hosts patch PHP for all customers. Check their status page or ask support to confirm, in writing, that your site is on a patched version.

Does updating WordPress fix the problem?

No. WordPress does not need its own update for this issue. The fix is in PHP, the software that runs underneath WordPress.

Is a firewall enough to protect my site?

No. Firewalls such as Cloudflare’s help and buy time, but attackers are already changing their methods to get around them. PHP says updating is the only complete fix.

Has anyone actually been hacked?

Security firms have reported attack attempts, and Unit 42 described at least one intrusion at a European government body. Other firms said they had seen no confirmed compromises as of 22 October. The picture is still developing, so treat the risk as real.

Did AI really find these bugs on its own?

No. Researchers used AI models from OpenAI and Google, but people directed the work, confirmed the findings and wrote the fixes. AI made the process much faster, which is the important change.

What if my site runs an old PHP version?

PHP 8.1 and older no longer get official updates. Ask your host or vendor whether they offer a patched build. Otherwise, plan an upgrade, test it first, and consider taking the site offline until it is done.

Conclusion

PHP2Shell is a serious flaw in software that sits under a large share of business websites. The immediate action is simple: confirm that every site you run is on a patched version of PHP, and take offline anything you cannot fix quickly.

The longer-term lesson is about speed. AI is helping researchers find old flaws faster, and attackers will use the same tools. Businesses that know what they run, and who patches it, will be in the strongest position. Start with a list of your websites this week.

The Future Signal

An independent AI intelligence publication helping business leaders make smarter technology decisions through trusted research, practical comparisons, and curated AI tools.

Related AI Tools

Gemini logo

Gemini

8.5
Google's AI assistant for research, writing and getting work done across Google apps.
November 19, 2026
Gemini logo

Gemini

8.5
Google's AI assistant for research, writing and getting work done across Google apps.
November 19, 2026
ChatGPTlogo

ChatGPT

8.6
The world's most used AI assistant, now spanning chat, agents, coding and Office.
September 21, 2026
ChatGPTlogo

ChatGPT

8.6
The world's most used AI assistant, now spanning chat, agents, coding and Office.
September 21, 2026

Share this Article

Cut Through the AI Noise

AI changes fast, but your decisions shouldn’t rely on headlines or hype. Explore more expert comparisons and practical guides—or join The Future Signal to receive one curated AI briefing each week that highlights what actually matters for business.