peekgenticBook a call

News analysis · Security

AI found two critical flaws in PHP. What to check at your company

On Oct. 21, 2026 PHP shipped fixes for two critical flaws (PHP2Shell, CVE-2026-109618 and CVE-2026-109619) that researchers found with AI tools. Attack attempts started within hours, and one was seen before the patch. What it means for a mid-size company's website, portals and vendors, and what to do this week.

By Miguel GutierrezCo-founder, Peekgentic · Dallas
· 4 min read
Preview card reading AI found two critical flaws in PHP. What to check at your company.
Patch windows are now measured in hours.Peekgentic

In brief

PHP, the language behind most websites, released fixes on Oct. 21 for two critical flaws that let an attacker run code on a web server without logging in. Researchers found them with AI tools. Amazon says it saw exploitation before the patch was public and broad attempts after it. Ask whoever runs your website, customer portal and any web-based business software whether they run PHP and have updated to 8.5.12, 8.4.27, 8.3.36 or 8.2.35. If they can't say, assume they haven't.

  • PHP fixed two critical flaws (PHP2Shell) on Oct. 21; both rated 9.2, both allow code to run on a server without logging in.
  • Researchers found them with AI tools; Wiz says every PHP version from the last decade is affected.
  • Amazon saw an exploit attempt before the patch and says to investigate from Oct. 17; Unit 42 counted 22.6 million potentially vulnerable exposed instances.
  • Some early claims were overstated; an attempted exploit isn't a break-in.
  • List your web-facing systems, ask each owner in writing about PHP versions, and patch in days, not weeks.

What happened

On Oct. 21, 2026, the PHP project released PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 to fix two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619. Together they're being called PHP2Shell. Both are rated 9.2 out of 10 under CVSS v4.0. They can let an attacker run code on a web server without logging in.

PHP's advisory says every PHP installation serving web requests is at risk, and the risk is highest for Apache with mod_php, where a request can trigger the attack before any of the site's own code runs. Its advice was blunt: "There are no complete mitigations, updating is the only safe choice." PHP 8.1 and older get no updates from the PHP project, so those sites depend on their Linux vendor or an upgrade.

Security firm Wiz says every PHP version released in the last decade is affected by at least one of the bugs, going back to version 5.4.

Why AI is part of the story

Several teams found pieces of the problem in August, and all of them used AI, Fortune reports. One was Calif, a red-teaming firm working in OpenAI's Patch the Planet effort. Wiz says it used its own tools plus Google and OpenAI models. OpenAI said it ranks among the most serious security problems in years.

The bug wasn't new. According to CBS News, the WSJ reporter who broke the story said it had existed for at least a decade. People suspected something was wrong, but nobody had turned it into a working attack. AI made that step cheaper, for defenders and attackers alike.

How fast attackers moved

  • Before the patch. Amazon Threat Intelligence says it caught an exploit attempt before disclosure, and tells companies to investigate from at least Oct. 17.
  • Hours before the release. The embargo was set to lift at 14:00 UTC on Oct. 21. Amazon saw proof-of-concept exploits around 02:00 UTC that day, and says PHP2Shell is now seeing broad exploitation attempts.
  • After word got out. As reported by Fortune, Cloudflare saw tens of thousands of attempts within 45 minutes, hundreds of thousands within two hours, and millions by that evening.
  • How many servers. Palo Alto Networks' Unit 42 counted over 22.6 million exposed instances that are potentially vulnerable, based on its own scanning.

Amazon's advice to security leaders is the part to remember: for critical flaws in internet-facing systems, measure patch timelines in hours. A 7-day or 30-day patch window assumes a delay that no longer exists.

The time between a patch and an attack is now measured in hours. A 30-day patch window no longer fits.

Where the skeptics have a point

Early coverage ran ahead of the facts. TryHackMe notes that a leak on Hacker News claimed a 10.0 severity score; PHP's own rating was 9.2. It also points out that watchTowr's public FAQ listed no reported exploitation in the wild, and that Reuters reported Australia's cyber agency wasn't aware of active exploitation. As TryHackMe puts it, an attempted exploit isn't the same as a break-in.

The "70% of the internet" headline is also loose. It means PHP's share of websites, not 70% of sites that can actually be hacked. Many hosts patched shared servers quickly. In TidBITS reader comments, site owners said their hosts updated PHP without being asked; one blocked their WordPress site until the fix landed.

All fair. But "probably fine" isn't a status you can act on. You want a yes or no from whoever runs each system.

What this means for a mid-size office

Most 40-400 person companies don't think of themselves as running PHP. Many do without knowing it:

  • The company website. WordPress and most of its plugins run on PHP. Updating WordPress doesn't update PHP on the server.
  • Customer and supplier portals. Order portals, quote request forms, dealer sites and file-sharing pages are often PHP.
  • Older internal web apps. A timesheet tool, a ticketing system or an intranet someone set up years ago, still running on a server in the closet or a cheap VPS.
  • Vendor-hosted software. Some business software runs PHP under the hood. That's the vendor's job to patch, but it's your data.

What to do this week

  1. List your web-facing systems. Website, portals, forms, anything reachable from the internet. Note who runs each one: your IT, a hosting company, an agency or a software vendor.
  2. Ask each owner in writing. Does it run PHP? Which version? Has it been updated to a fixed release? Shared hosting is usually handled by the host. A VPS or your own server is usually on you.
  3. Patch or take it offline. CBS reports the FBI's cyber division told organizations that can't patch right away to take sites offline temporarily. A brochure site can go dark for a day. An unpatched portal with customer data shouldn't stay up.
  4. Check from Oct. 17, not Oct. 21. Ask your IT provider to review web server logs from at least Oct. 17, per Amazon's guidance. Wiz lists warning signs such as repeated server errors after odd upload requests and unusually large session cookies.
  5. Set a real patch clock. Decide who owns critical updates for internet-facing systems and how fast they have to act. Days, not weeks.

The broader lesson is the one from AI finding flaws faster than people can patch them: the tools that find bugs for defenders find them for attackers too. The companies that come through fine are the ones that know what they run and who updates it.

Common questions

What is PHP2Shell?

The name for two critical PHP vulnerabilities, CVE-2026-109618 and CVE-2026-109619, fixed on Oct. 21, 2026. Both are rated 9.2 under CVSS v4.0 and can allow unauthenticated remote code execution on web servers running PHP.

Which PHP versions fix PHP2Shell?

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. PHP 8.1 and older no longer get updates from the PHP project, so those systems need a vendor backport or an upgrade.

Is PHP2Shell being exploited?

Amazon Threat Intelligence says it saw an exploit attempt before disclosure and broad exploitation attempts after it. Others urged caution: TryHackMe noted watchTowr listed no confirmed exploitation in the wild at the time, and an attempt isn't the same as a successful break-in.

Does updating WordPress fix PHP2Shell?

No. WordPress runs on PHP, but updating WordPress or its plugins doesn't change the PHP version on the server. Your host or whoever runs the server has to update PHP itself.

How was PHP2Shell found?

Several research teams found parts of it in August using AI tools, according to Fortune, including Calif through OpenAI's Patch the Planet effort and Wiz using its own tools with Google and OpenAI models.

What should a small or mid-size company do about PHP2Shell?

List every internet-facing system, ask each owner in writing whether it runs PHP and has been updated, patch or temporarily take down anything that can't be updated, and have logs reviewed from at least Oct. 17.

Is my shared hosting website safe?

Many shared hosts patched quickly, but don't assume. Ask your host which PHP version your site runs. If you run your own server or VPS, updating PHP is usually your responsibility.

Sources

  1. PHP.net, Security advisory: Critical remote code execution vulnerabilities, update now (news archive), Oct. 21, 2026
  2. Wiz, PHP2Shell: AI uncovers critical RCE vulnerabilities affecting 70% of the Internet, Oct. 21, 2026
  3. Fortune, AI tools discovered the PHP vulnerability... now the race is on to patch it, Oct. 21, 2026
  4. AWS Security Blog (CJ Moses), Amazon Threat Intelligence identifies PHP2Shell exploitation prior to public disclosure in MadPot, Oct. 21, 2026
  5. Palo Alto Networks Unit 42, CVE-2026-109618 and CVE-2026-109619 threat brief, Oct. 21, 2026
  6. CBS News, PHP2Shell vulnerability: AI security flaw, Oct. 22, 2026
  7. TryHackMe, PHP2Shell update, Oct. 21, 2026
  8. TidBITS, PHP2Shell vulnerabilities put 70% of websites at risk (article and reader comments), Oct. 21, 2026

More from Peekgentic

Published October 23, 2026 · Written by Miguel Gutierrez, Co-Founder, Peekgentic (Dallas, TX). Every statistic links its source.