The PHP Vulnerability Is an Ownership Problem

Learn what the PHP vulnerability known as PHP2Shell means for your organization and how to answer the board when it asks whether you are exposed, including what Azure has already patched.

Pär Johansson
Published: 2 Nov 2026

CERT-EU Advisory on Smartphone

On October 21, 2026, the PHP project fixed two flaws that let an attacker run code on a web server without logging in. CERT-EU, the cybersecurity service for the EU institutions, told organizations to patch at once and, where that is not feasible, to consider isolating internet-facing systems from public networks. Patching this critical security issue affecting PHP will take days. The harder part for most security leaders is the first question they get: where do we run PHP at all?

  • Are we exposed if we do not build in PHP? See where PHP runs without anyone choosing it.
  • Did Azure patch this for us? Understand where the platform's job ends.
  • What do we tell the board? Learn the five questions to answer first.

What the PHP Vulnerability Does

Two flaws in PHP itself let an attacker run code on a web server with a single request and no login. The PHP project's security advisory says all PHP installations serving web requests are at risk, and the PHP team rates both CVE-2026-109618 and CVE-2026-109619 at 9.2 out of 10. The PHP team has seen the attack demonstrated on Apache with mod_php, where it fires before any application code runs. A carefully written website on a vulnerable PHP version is exposed all the same. The PHP team names that setup as the riskiest, so ask your web teams first whether any system runs it.

Experts do not agree on how easy the attack is. Red Hat rates the first flaw Important rather than Critical, because a reliable attack needs precise memory manipulation and timing. On Red Hat Enterprise Linux's default PHP setup, it calls remote code execution "difficult in practice". CERT-EU reads the situation more urgently: technical details are public, early proof-of-concept code is circulating, and that raises the likelihood that attackers are already using it. When two credible sources disagree, plan for the worse reading. A patch costs a maintenance window, and guessing wrong costs a server.

The PHP releases published on October 21, 2026, fix both flaws. An update is the only complete fix for them: the release for your branch, or your vendor's patched package.

PHP branch Fixed in
8.5 8.5.12
8.4 8.4.27
8.3 8.3.36
8.2 8.2.35
8.1 and older No official release

PHP 8.2 reaches end of life on December 31, 2026, so a system patched to 8.2.35 still needs an upgrade plan. Versions 8.1 and older get no official release from the PHP project. Its security team did publish minimal source backports for 7.4, 8.0 and 8.1, which only help teams that compile PHP themselves. For any system on 8.1 or older, the owner has to pick a vendor's backported fix or an upgrade, and keep the system offline until one of them is in place.

A third flaw was still open as of November 2, 2026. On October 23, the PHP team named CVE-2026-115560, which it describes as an unlikely route to remote code execution in an unusual configuration. PHP will publish a full advisory with its next regular release. Until then, PHP and CERT-EU advise setting session.upload_progress.enabled=0, and CERT-EU adds that every worker needs a restart. Ask your teams to apply that setting on patched systems too. If you run PHP on Windows, install the builds the PHP project reissued on October 26 as 8.5.12-1, 8.4.27-1, 8.3.36-1 and 8.2.35-1, which fix a separate flaw in the bundled Brotli library, CVE-2026-111497.

Most of Your PHP Was Chosen by Someone Else

Even if nobody in your organization writes PHP, your exposure usually sits in software that brought PHP along. The Dutch National Cyber Security Centre keeps a public list of products with a PHP dependency and marks each one with a status such as under investigation, vulnerable, fixed or not vulnerable. WordPress is on it as vulnerable whenever it runs on an affected PHP version, and the remedy listed is the PHP upgrade. Updating WordPress itself does not fix it.

Marketing and campaign sites. A WordPress site that an agency built three years ago, on a hosting account marketing still pays for, is the classic case. Security never approved it, so security never sees it. This is the same pattern as shadow IT, with a public web address attached.

Vendor products. Help desks, online shops, billing tools and admin consoles often run PHP under the hood. The vendor has to ship the fix, and you need to know that it did. Ask for confirmation in writing, with the version number.

End-of-life runtimes. An internal tool still on PHP 7.4 has no official patch at all. Somebody has to upgrade it or switch it off, and that somebody needs a name.

The NCSC list leaves out applications built in-house and warns that it is incomplete, so read it as a list of questions for your vendors. Endpoint tools such as Microsoft Defender can list installed software, but only on servers someone has onboarded to them.

On Azure, the Platform Patches Only Its Own Images

Azure has patched only part of your PHP. Microsoft fixed the PHP that Azure App Service on Linux provides itself, according to the App Service team's October 21 update. An app is covered if it runs on those built-in PHP images and on a supported PHP version. Apps on the slower Extended release channel get the fix last.

Everything else is your team's job. Microsoft does not patch PHP inside custom containers, PHP versions that have reached end of life, or WordPress on the older Alpine-based images. App Service on Windows needs its own decision: Microsoft plans no security patch for its end-of-life built-in PHP runtimes and advises moving to Linux or bringing your own runtime. PHP that your team installed on its own servers is also yours, and Azure Arc can bring servers outside Azure under the same management. Ask your team for a single list of every PHP app you run on Azure, showing for each one whether Microsoft or your own people apply the patch.

critical-security-issue-affecting-php

Figure 1. Microsoft patches the built-in PHP images. Custom containers, old runtimes and Alpine WordPress images stay with your team.

A web application firewall only buys you days. Firewall rules can block known attack patterns while you patch, but the PHP team states that interim measures do not make an installation safe. Give any rule you add an end date. Microsoft's own upgrade guidance and Azure WAF mitigations for PHP2Shell makes the same point: WAF rules complement the upgrade, they do not replace it.

Patch or Isolate, Then Name an Owner

Every internet-facing PHP system needs one of two decisions: patch it, or take it off the public internet until it is patched. That matches CERT-EU's advice, which adds that isolation should last until the fix is applied and verified. Configuration changes and firewall rules only bridge the time until one of those decisions is carried out. The board will ask a simpler question than your engineers do: are we exposed? Five questions get you to the answer.

  1. Which of our systems run PHP, including those hosted by vendors and agencies?
  2. Which of them can be reached from the internet?
  3. Who owns each one, by name?
  4. Is each one patched, isolated or scheduled, and by what date?
  5. Which vendors have confirmed a fix in writing?

The third question is usually the slow one. In many organizations, the owner of a forgotten website turns out to be whoever approved the hosting invoice, and that person is rarely in the security meeting.

AI has the same gap. Tools and agents that teams sign up for on their own are assets too, often with access to company data and no owner on file. That is how shadow AI gets in. If this alert showed holes in your inventory, I would run the same five questions against your AI tools before a vendor advisory forces you to.

Do you know where shadow AI is running?
The PHP alert tested your inventory. Your AI tools need the same check.
See our AI and agent security approach

Work with Precio Fishbone

Patching closes the PHP vulnerability. Keep the list you built after that, with a named owner on every line, because the next advisory will ask the same five questions. To see how leaders are handling unknown AI tools and agents, read our AI security guide for business leaders and our take on AI risk management for CIOs, talk to our AI services team, or email me at par.johansson@preciofishbone.se.

Frequently Asked Questions

Is the PHP issue fixed?

The two PHP2Shell flaws are fixed in 8.5.12, 8.4.27, 8.3.36, 8.2.35 and later releases. As of November 2, 2026, CVE-2026-115560 was waiting for PHP's next regular release. Until your version includes that fix, set session.upload_progress.enabled=0.

Does the PHP vulnerability affect PHP 8.1?

Yes. PHP 8.1 and older are affected and get no official release from the PHP project. Some Linux distributions and long-term support vendors offer backported fixes. Otherwise, upgrade to a supported, patched release such as 8.3.36, 8.4.27 or 8.5.12.

Does a WAF protect against the PHP vulnerability?

Only for a while. Firewall rules can block known attack patterns, but php.net and CERT-EU both state that only an update fully fixes these flaws. Treat a WAF rule as a bridge to the patch with a set end date.

What is PHP2Shell?

PHP2Shell is the nickname the Dutch NCSC uses for CVE-2026-109618 and CVE-2026-109619 in its public tracking repository. These are the two PHP flaws fixed on October 21, 2026, that can let an attacker run code on a web server without logging in.

Is WordPress affected by the PHP vulnerability?

Yes, whenever it runs on an unpatched PHP version. The flaw sits in PHP itself, so WordPress and plugin updates do not fix it. Upgrading PHP does, and your hosting provider may already have done it for you.

Who found the PHP vulnerability?

Researchers at the security firm Calif found the flaws in an OpenAI-funded audit of PHP's source code, using OpenAI's GPT-5.6 Sol model. Wiz Research worked with the PHP team, Calif and OpenAI on coordination and on verifying the patch.

What is the latest PHP version with the fix?

The first releases with the fix were 8.5.12, 8.4.27, 8.3.36 and 8.2.35, published on October 21, 2026. Later releases on those branches carry it too, so check php.net for the current version.

Pär Johansson

Head of International Business

Pär works with international business at Precio Fishbone, project delivery & digital services, helping turn complexity into progress and strategy into long-term value. With many years of experience in international business, He is known for building strong relationships and turning plans into meaningful progress. Driven by people, trust and sustainable growth.

Menu