Venture Engineering and Technology Services Limited logoVETSL
Security Advisory

PHP2Shell: the patch is easy, the inventory is the hard part

Venture Engineering and Technology Services Limited4 min read

Last reviewed 2 November 2026.

A rack-mounted network firewall appliance with status LEDs and patch leads
Edge appliances and web platforms often run software nobody deliberately chose.

Disclosures unfolded on 20–21 October 2026. On 21 October, the PHP project published fixed releases for two critical vulnerabilities in the interpreter, referred to collectively as PHP2Shell: CVE-2026-109618 and CVE-2026-109619. Both allow unauthenticated remote code execution, meaning an attacker can run commands on an affected system without logging in first. CISA published its alert on 21 October, updated it on 23 October, and revised it again on 26 October to note that both CVEs had been added to its Known Exploited Vulnerabilities (KEV) Catalog. A KEV listing means exploitation in the wild has been confirmed, not merely predicted.

What is affected

CISA and the PHP project say every PHP installation serving web requests is affected. Their advisories name Apache with mod_php, which PHP considers the highest-risk setup, as well as PHP-FPM, php-cgi, FrankenPHP and LiteSpeed.

The PHP project lists PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 as fixed releases. PHP 8.1 and earlier are out of support and do not receive ordinary security updates from the project. The PHP team did publish limited source backports for PHP 7.4, 8.0 and 8.1; some distributions and long-term support vendors may also provide their own backported packages. Confirm the exact status with the vendor responsible for the system. CISA advises taking PHP-based systems offline if they cannot be updated or continue to run unsupported PHP 8.1 or earlier.

You cannot patch a system you cannot find.

What CISA asked organisations to do

CISA's published actions are practical and direct:

  • Identify and inventory systems running any version of PHP across the organisation.
  • Apply the patch immediately, prioritising internet-facing systems.
  • Take PHP-based systems offline if they cannot be updated, or if they continue to run unsupported PHP 8.1 or earlier.
  • Use a web application firewall as temporary protection until systems are updated or patched.
  • Review the official PHP security advisory for patching guidance.
  • Monitor for suspicious activity, including PHP worker processes launching shells or downloading tools.

Why ‘we don't use PHP’ is usually wrong

CISA notes that PHP is often a component of other software, so its presence may not be directly observable. In a small business, that could mean a website built years ago by a developer who has since moved on, a management console on a network appliance, a NAS or camera interface, a helpdesk tool, an invoicing system or a monitoring dashboard. PHP frequently arrives as part of something else rather than as a deliberate choice.

The exposure figures do not come from organisations' own inventories. Palo Alto Networks reported that its Cortex Xpanse telemetry identified more than 22.6 million potentially exposed instances at the time of publication. That gap between what is installed and what is known to be installed is the actual risk.

The uncomfortable part: you cannot patch what you cannot find

The first job is to turn unknown systems into named responsibilities. Start with a short list and close the gaps one at a time:

  • Ask the web developer what stack the site runs on and get the PHP version in writing.
  • Check appliance administration interfaces for firmware version and whether PHP is involved.
  • List every internet-facing system and name the person responsible for updating it.
  • Decide in advance who is called when a critical patch lands; advisories do not arrive at convenient times.

A note on firewalls and false comfort

CISA says a web application firewall may provide some protection until systems are updated or patched. It is a legitimate interim mitigation and can buy time while an update is arranged. It is not a substitute for patching, and it does not remove the need to know what you are running.

What happened next, and why it matters

On 29 October, Unit 42 reported active exploitation against internet-exposed PAN-OS management interfaces. Dream Research had reported a campaign chaining PHP2Shell with a Linux kernel privilege-escalation vulnerability to gain root access; Unit 42 said it independently verified the same attacker's tooling and the reported results. The reported escalation from public disclosure on 20–21 October to active exploitation by 29 October happened within nine days. This is the tempo businesses have to plan for, and why inventory speed matters more than waiting for a perfect patch plan.

If you need a second pair of eyes on the internet-facing systems your organisation depends on, VETSL can help review the inventory and identify the questions to take to each supplier.

Sources

Summarised from published advisories. Always confirm details against the original sources.

Start a conversation

Have a question about your own site or systems?

Talk with VETSL about equipment, networks, electronic security, communications or technical support for your organisation.

Request a Quote