PHP2Shell Explained: The Critical PHP Vulnerability (CVE-2026-109618 & 109619) and How to Fix It

PHP2Shell is a pair of critical, unauthenticated remote code execution flaws in PHP itself. Since disclosure, attackers have used it to break into firewalls and wipe servers. Here's who's affected, the damage so far, and exactly what to patch.

Rows of web servers in a dark data center, one showing a red warning light

Last updated: November 15, 2026.

What's new: CISA added both flaws to its exploited-vulnerabilities list on October 26. Attackers have since used PHP2Shell to break into Palo Alto Networks and Check Point firewalls, and in some Check Point cases went on to wipe VMware ESXi servers. PHP also disclosed a narrower third flaw, CVE-2026-115560. See the new "What's happened since disclosure" section and the expanded compromise checks.

Most web vulnerabilities live in an application: a plugin, a framework, a forgotten admin panel. PHP2Shell is different. It sits in the PHP engine itself, which means the bug is present on any server that runs PHP to answer web requests, before a single line of your application's code executes.

On October 21, 2026, the PHP project shipped emergency fixes for two flaws, CVE-2026-109618 and CVE-2026-109619, that together go by the name PHP2Shell. Both allow remote code execution without logging in. Exploitation attempts were already being recorded before the patches landed.

Three weeks later, the worst damage hasn't come from ordinary websites. It has come from security appliances (firewalls and VPN gateways) that quietly run PHP in their management portals. Attackers used PHP2Shell to get root on firewalls, plant backdoors, and in a handful of cases destroy the virtual servers behind them.

If you run PHP in production, or own any network appliance with a web interface, this page tells you what's affected, what's been confirmed, and what to do.

PHP2Shell at a glance

Details

CVEs

CVE-2026-109618 and CVE-2026-109619

Severity

CVSS v4.0 9.2 (critical), both flaws

Impact

Unauthenticated remote code execution as the web server's worker account

Affected

PHP 5 onward, on every way PHP serves web requests

Fixed in

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 (released October 21, 2026)

Exploited?

Yes. Confirmed against Palo Alto Networks PAN-OS and Check Point gateways; a wiper was deployed after some Check Point break-ins

On CISA KEV?

Yes, both CVEs added October 26, 2026

Appliances affected

Firewalls, VPNs and gateways that embed PHP, including products from Palo Alto Networks, Check Point, Cisco, Citrix, F5, Fortinet and Siemens (vendor fixes vary)

Bottom line: if a server runs PHP 8.2 or newer, upgrade it today. If it runs PHP 8.1 or older, there is no official fix, so it needs a backport, isolation, or an upgrade. And don't stop at servers you built yourself: check every firewall, VPN and gateway with a web-based management interface against its vendor's PHP2Shell advisory.

What is PHP2Shell?

PHP2Shell is the name given to two critical vulnerabilities in the PHP engine, CVE-2026-109618 and CVE-2026-109619, patched on October 21, 2026. Both let an attacker who can send an HTTP request to a PHP server run their own code on it, with the privileges of the web worker process, without needing an account or a vulnerable application.

According to BleepingComputer, the flaws were found by researchers at Calif, Wiz and OpenAI, and both stem from PHP leaving memory in a corrupted state when a request ends abnormally. That root cause is why the bugs reach so far back in PHP's history: the affected request-handling code has been around for many major versions.

The name has stuck because it describes the outcome. A single crafted request turns a PHP server into a shell for the attacker.

Which PHP versions are affected by PHP2Shell?

Every PHP installation that serves web requests is in scope. According to the PHP project's advisory, as reported by BleepingComputer, that includes PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed.

PHP branch

Status

What to do

8.5

Fixed in 8.5.12

Upgrade to 8.5.12

8.4

Fixed in 8.4.27

Upgrade to 8.4.27

8.3

Fixed in 8.3.36

Upgrade to 8.3.36

8.2

Fixed in 8.2.35

Upgrade to 8.2.35 (8.2 reaches end of life on December 31, 2026)

8.1, 8.0, 7.4

No official release; minimal source backports published

Apply a vendor or distribution backport, or upgrade to a supported branch

7.3 and older, PHP 5

No fix

Upgrade or take the server off the internet

Apache with mod_php carries the highest risk. The PHP team reports a demonstrated exploit for that setup in which an unauthenticated request triggers the attack before any application code runs.

The scale of the older-version problem is large. Security firm Mallory counted about 884,000 internet-facing hosts on October 20, 2026 whose HTTP banners reported PHP 8.1 or older, roughly 59% of the 1.5 million hosts that advertised any PHP version, according to The Hacker News. Those are banner counts, not confirmed vulnerable systems, but they show how many servers sit on branches PHP no longer patches.

Is PHP2Shell being exploited in the wild?

Yes. CISA added both CVEs to its Known Exploited Vulnerabilities catalog on October 26, 2026, and the most serious confirmed attacks have hit firewalls and VPN gateways rather than ordinary websites (details in the next section).

The first week looked like this, and some of it predates the public disclosure:

  • Before disclosure: Amazon's threat intelligence team said its MadPot honeypot network recorded a PHP2Shell exploitation attempt on October 17, 2026, four days before the flaws were published, according to Help Net Security.
  • During the patch window: Cloudflare reported early attacks against both flaws before the fixes shipped, according to BleepingComputer.
  • After the patches: Aikido said on October 21 that in-the-wild exploitation had been reported, and Patchstack said it had confirmed multiple active exploitation incidents, according to SOCRadar.

The disclosure itself was messy. On October 20, a post on Hacker News claimed two critical PHP flaws would be disclosed later that week. The PHP project published its own notice that evening and moved the release to 14:00 UTC on October 21. When a fix's timing is driven by a leak, attackers are reading the same posts defenders are, so the safe assumption is that scanning began the moment the patches went public.

Not every early claim held up. Sophos and Palo Alto Networks' Unit 42 both reported exploitation between October 22 and 24, then walked those reports back to scanning and failed attempts, according to OpenVPN's tracking of the incident. On October 24, VulnCheck confirmed working code execution against PHP 8.2 and 8.3.

Pro tip: hunt for signs of compromise from October 17 onward, not from the day you patched. The honeypot data shows attempts started before anyone outside the embargo knew about the flaws.

What's happened since disclosure

Firewalls and VPN gateways became the main target

Many network security products run PHP inside their management web interface, often an older build the customer can't upgrade themselves. That made them ideal PHP2Shell targets: internet-facing, privileged, and patched only when the vendor ships a hotfix.

Palo Alto Networks PAN-OS. By October 28, Palo Alto Networks had confirmed active exploitation of PHP2Shell against internet-exposed PAN-OS management interfaces, covering PA-Series and VM-Series firewalls and Panorama, according to Field Effect. Only the management web interface and XML API are affected; traffic passing through the firewall and GlobalProtect are not. Palo Alto said about 0.02% of its installed base was impacted and contacted those customers individually, according to Cyber Security News.

Researchers at Dream documented what the damage looked like. A suspected China-nexus actor found exposed management interfaces with the FOFA search engine, chained PHP2Shell with a Linux kernel flaw called Fragnesia (CVE-2026-46300) to go from the restricted nobody account to root, and compromised 25 firewalls and management servers in the US, Japan, Taiwan and South Korea, three of them in a US government-affiliated environment. From there the actor planted web shells, opened reverse SSH tunnels, pulled an LDAP service account password, sprayed passwords and mapped Active Directory. CISA added Fragnesia to its exploited-vulnerabilities catalog on October 28.

Check Point gateways: the destructive attacks. Check Point says attackers exploited PHP2Shell in the Mobile Access portal of unpatched Security Gateways between October 30 and November 4, 2026, starting about a week after its hotfix shipped on October 23. They then used a Check Point zero-day, CVE-2026-123039 (a privilege escalation flaw in the Gaia operating system, CVSS 7.8), to get root and dig in.

According to Check Point Research and BleepingComputer, the attack chain went:

  1. PHP2Shell through the Mobile Access portal for initial access.
  2. CVE-2026-123039 for root.
  3. PHP web shells, plus a passive backdoor called TSGA (disguised as a Check Point process named CPconfigdaemon) that could steal configurations, survive backups and tamper with firewall logs.
  4. Lateral movement to VMware ESXi hosts over SSH, found with the open-source gogo scanner.
  5. A wiper called destroy_v6 that deleted files on the ESXi hosts, overwriting them with zeros first, and left a politically themed note named DREAM_ANNEXATION.txt with no ransom demand.

The first wave, from October 30, targeted Israeli organizations. A broader, opportunistic wave on November 2 hit organizations in several countries, and Check Point says that second wave didn't include destructive activity. Check Point said "a couple of dozen" unpatched systems were compromised in the incidents it observed. CISA added CVE-2026-123039 to its catalog on November 13, with a federal deadline of November 16.

Attribution is murky. The backdoor overlaps with a toolkit ESET linked in June 2026 to a China-nexus group, but Check Point says it can't attribute the campaign with confidence and considers a false flag possible, given the wiper and the Israel focus.

Other vendors. Singapore's Cyber Security Agency warned on November 3 that products from Cisco, Citrix (NetScaler ADC and Gateway), F5 (BIG-IP APM and the Configuration utility), Fortinet (FortiSOAR) and Siemens (RUGGEDCOM APE1808) were also vulnerable, and said its list wasn't exhaustive. Cisco said it wasn't aware of malicious use against its own products. The Netherlands' NCSC tracks vendor status in a public list; as of October 28 it covered 757 products, of which 144 were fixed, 218 vulnerable and 354 still under investigation.

The damage so far

Where

What happened

Damage

How it was fixed

Palo Alto PAN-OS and Panorama

Exploitation of exposed management interfaces, confirmed by Oct 28

Root on at least 25 devices in one documented campaign; web shells, SSH tunnels, stolen LDAP credentials, AD reconnaissance

PAN-OS hotfixes (for example 12.2.4-h1, 12.1.10-h3, 11.2.16-h1, 11.1.16-h4, 10.2.18-h13); management access restricted to trusted IPs

Check Point Security Gateways

Mobile Access portal exploited Oct 30 to Nov 4, chained with zero-day CVE-2026-123039

About two dozen gateways compromised; TSGA backdoor; ESXi hosts wiped at some victims

Hotfix available Oct 23; November Jumbo Hotfix covers both flaws

Cisco Expressway and Duo Access Gateway

Vulnerable; no malicious use reported by Cisco

None reported

Expressway 15.5.21; Duo Access Gateway 3.2.0

Ordinary PHP web servers

Mass scanning and some confirmed attempts

No public reports of large-scale compromise that we found as of Nov 15

PHP 8.5.12, 8.4.27, 8.3.36, 8.2.35

Sources: Field Effect, Cyber Security News, Check Point, BleepingComputer, OpenVPN.

Why websites got off lighter than expected (so far)

Exploiting PHP2Shell turns out to be fiddly. Security firm Intruder, which built a working chain against PAN-OS, called the exploit "very flaky and prone to failing": it depends on the exact memory layout of a specific PHP build and configuration, and even a routine health check hitting the server mid-attack could break it. One successful run took 25 requests and about 2.3 GB of traffic to execute a single command.

That favors attackers who can study one identical build across thousands of targets, which is exactly what a firewall model gives them. It doesn't make ordinary servers safe: VulnCheck confirmed working exploits on PHP 8.2 and 8.3, and Unit 42 estimated more than 22.6 million PHP instances worldwide were potentially exposed. Patch anyway.

A third flaw: CVE-2026-115560

On October 23, PHP published an informational advisory for CVE-2026-115560, another code execution flaw in the same session upload progress code. It only affects applications that set session.serialize_handler to php_binary or php_serialize, switch it back to php at runtime with ini_set() before session_start(), and leave session upload progress on. PHP called that setup "unlikely in practice" and said it would fix it in a regular release, not an emergency one. As of November 15 no fix had shipped, so the mitigation is the same setting as before: session.upload_progress.enabled=0.

How do the two PHP2Shell vulnerabilities work?

You don't need the internals to fix this, but they explain why some mitigations help and others don't.

CVE-2026-109618: out-of-memory corruption

CVE-2026-109618 is triggered while PHP parses form data from a POST request. An attacker sends a body with an oversized form field name that pushes PHP past its memory limit mid-parse. The out-of-memory error interrupts PHP while internal request data is only partly set up, and the cleanup code then treats that half-built data as valid. That corruption can be steered into code execution.

Because this variant relies on large requests, request-size limits and rate limiting on large POSTs make it harder to pull off. They don't make it impossible.

CVE-2026-109619: stale state in upload progress tracking

CVE-2026-109619 lives in PHP's session upload progress feature, which can run on any POST endpoint before your application code is reached. Stale global state leads to a heap use-after-free, which gives the attacker memory disclosure and, ultimately, code execution.

The exploit request for this one is small, around 450 bytes according to an analysis by Abstract Security. Size limits do nothing against CVE-2026-109619, which is why the upload progress setting matters so much (see the mitigations below).

How to fix PHP2Shell

Patching is the only complete fix. PHP core developer Gina Peter Banyard said as much in comments reported by BleepingComputer, and the PHP advisories describe every workaround as partial.

  1. Inventory every PHP runtime you operate. Include containers, base images, shared hosting, internal tools and appliances that bundle PHP. Run php -v on hosts and check image tags in your registries.
  2. Upgrade supported branches to 8.5.12, 8.4.27, 8.3.36 or 8.2.35. Linux distributions and long-term support vendors received the fixes before the public release, so check your distribution's security tracker for the matching package version.
  3. Rebuild and redeploy container images. Updating a host package doesn't touch PHP inside an image. Pull a patched base image, rebuild, and redeploy.
  4. Restart every PHP worker. PHP-FPM pools, Apache, LiteSpeed and FrankenPHP processes keep running old code until they restart.
  5. Deal with PHP 8.1 and older. Use your vendor's backport if one exists, upgrade to a supported branch, or remove the server from public reach until you can.
  6. Ask your hosting provider for its patch status if you're on shared or managed hosting. You can't patch their PHP for them.
  7. Check your appliances. Go through every firewall, VPN, load balancer and gateway with a web management interface and look up its vendor's PHP2Shell advisory. You can't upgrade the PHP inside an appliance yourself; you need the vendor's hotfix. Until it's installed, take the management interface off the internet and allow only trusted admin addresses.
  8. Verify. Searchlight Cyber released php2shell-scanner, an open-source tool that tests whether a host is exposed, according to Help Net Security. Run it, or an equivalent check, against your internet-facing hosts after patching.

Temporary PHP2Shell mitigations if you can't patch today

These buy time. None of them fully closes either flaw, according to the PHP project.

For CVE-2026-109618 (out-of-memory corruption):

  • Set memory_limit=-1 in a way applications can't override, such as php_admin_value in the PHP-FPM pool or the Apache configuration.
  • Lower post_max_size: 8M for applications that don't take file uploads, 32M if they do.
  • Put a container or cgroup memory limit around PHP workers, ideally one that kills only the affected worker.

For CVE-2026-109619 (upload progress):

  • Disable session upload progress, then restart every worker.
  • On PHP 8.5 only, set fatal_error_backtraces=0 and restart. This blocks one confirmed exploitation path, not all of them.
  • Remove invalid or deprecated per-request settings that emit warnings early in a request. Hiding errors with display_errors or the @ operator does not help.

A minimal php.ini change set looks like this:

; Partial PHP2Shell mitigations. Patch as soon as possible.
memory_limit = -1
post_max_size = 8M
session.upload_progress.enabled = 0

On the web application firewall side, Abstract Security suggests blocking form field names of 1,000 bytes or more, blocking a PHPSESSID field sent in a form body, and blocking PHP open tags or serialized-object syntax in multipart filenames. Run new rules in log-only mode first so you don't break legitimate uploads.

How to check whether a server was compromised

If a server was exposed between October 17 and the moment you patched, look for these signals:

  • PHP fatal errors containing "tried to allocate" together with in Unknown on line 0, which suggests allocation failed outside normal script execution.
  • Bursts of large POST requests (around 1 MB or more) from a single source to PHP endpoints.
  • Hundreds of large POSTs from one IP followed by AH00052 entries in Apache error logs.
  • PHP-FPM, Apache or nginx worker processes spawning sh -c with commands like id, curl, wget or nc.
  • New files in /tmp, /dev/shm or /var/tmp, unfamiliar PHP files in web roots, new cron jobs or new authorized_keys entries.
  • Purge your session save path after patching. Poisoned session files can still be included until they expire.

On firewalls and gateways, Check Point and Field Effect add these signs:

  • PHP session files containing upload_progress_pwn.
  • A process or binary named CPconfigdaemon that isn't a genuine Check Point component.
  • Files with "scanner" or "wiper" in the name under /tmp.
  • Unexplained gaps in firewall traffic logs, especially after a logging daemon crash.
  • SSH connections from the gateway to internal hosts, especially VMware ESXi servers.
  • New web shells, reverse SSH tunnels, or unusual use of LDAP service accounts.
  • Scanning from 130.94.19.204 and 130.94.19.168, the reconnaissance addresses Check Point published.

Patching does not remove an attacker who's already in. Web shells, backdoors, tunnels and stolen credentials all survive the hotfix. If an appliance was exposed before you patched, hunt for these signs, rotate the admin and LDAP credentials it held, and check Active Directory for new accounts or password spraying.

Any one of these is worth an incident ticket. A worker process spawning a shell is worth waking someone up.

Does PHP2Shell affect WordPress, Drupal and Laravel sites?

PHP2Shell affects WordPress, Drupal, Joomla, Laravel and every other PHP application, because the flaws are in the PHP runtime rather than in the application. Updating WordPress or a plugin does not fix it. What matters is the PHP version the server runs, so the fix is a PHP upgrade, made by you or by your host.

That has a practical consequence for agencies and freelancers. If you manage client sites on shared hosting, the action item is a ticket to each host asking which PHP build they're running and when it was patched.

What PHP2Shell means for security teams

PHP2Shell is a good test of fundamentals that look boring until a month like this one. Can you list every PHP runtime you own within an hour, including the ones baked into container images? Can you rebuild and redeploy those images the same day? Do your logs capture enough to hunt back to October 17?

Teams that answered "yes" quickly did so because of people in a handful of roles:

If you're hiring for any of these, or looking for your next role in one, browse open positions on ThreatHire.

PHP2Shell FAQ

What is CVE-2026-109618?

CVE-2026-109618 is a critical PHP vulnerability, rated CVSS v4.0 9.2, in which an oversized form field name drives PHP into an out-of-memory condition while parsing POST data. The resulting memory corruption can be used for unauthenticated remote code execution. It is fixed in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35.

What is CVE-2026-109619?

CVE-2026-109619 is the second PHP2Shell flaw, also rated CVSS v4.0 9.2. Stale global state in PHP's session upload progress handling causes a heap use-after-free that leads to memory disclosure and remote code execution. The exploit request is small, so request-size limits don't stop it.

Is PHP 8.1 affected by PHP2Shell, and will it be patched?

PHP 8.1 is affected, and the PHP project no longer ships fixes for it. Minimal source backports have been published for PHP 7.4, 8.0 and 8.1, and some Linux distributions and long-term support vendors ship their own patched builds. Otherwise, upgrade to PHP 8.2.35 or newer.

Does disabling session.upload_progress fix PHP2Shell?

No. Disabling session upload progress reduces exposure to CVE-2026-109619 but does not address CVE-2026-109618, and the PHP project describes it as a partial mitigation even for the flaw it targets. Upgrading PHP is the only complete fix.

Is PHP2Shell on the CISA Known Exploited Vulnerabilities list?

Yes. CISA added CVE-2026-109618 and CVE-2026-109619 to its Known Exploited Vulnerabilities catalog on October 26, 2026, with an October 29 remediation deadline for US federal agencies. It had already issued an alert on October 21 urging immediate patching. CISA later added two flaws attackers chained with PHP2Shell: Fragnesia (CVE-2026-46300) on October 28 and Check Point's CVE-2026-123039 on November 13.

Which firewalls and appliances are affected by PHP2Shell?

Exploitation has been confirmed against Palo Alto Networks PAN-OS and Panorama management interfaces and Check Point Security Gateways with the Mobile Access portal enabled. Singapore's Cyber Security Agency also listed vulnerable products from Cisco, Citrix, F5, Fortinet and Siemens. Each vendor ships its own fix, so check the vendor's advisory rather than the PHP version.

Is there a third PHP2Shell vulnerability?

PHP disclosed CVE-2026-115560 on October 23, 2026. It is a narrower code execution flaw in session upload progress that only affects applications which switch session.serialize_handler back to php at runtime. As of November 15 there was no patch; the mitigation is session.upload_progress.enabled=0.

Sources

about the author

The ThreatHire Editorial Team tracks the cybersecurity job market daily, aggregating security roles from Greenhouse, Lever, and 200+ company career pages. The team combines this real-time hiring data with independent research to report on compensation, in-demand skills, certifications, and hiring trends across security engineering, AppSec, cloud security, incident response, threat intelligence, GRC, and more.