If your site runs on PHP, the PHP security update released on October 21, 2026 applies to you. It fixes two critical flaws, nicknamed PHP2Shell, that let an attacker run code on a web server without logging in: CVE-2026-109618 and CVE-2026-109619, each rated 9.2 under CVSS 4.0. Update to PHP 8.2.35, 8.3.36, 8.4.27 or 8.5.12, then restart every PHP worker. Attack attempts are already circulating.

Sites on Apache with mod_php face the highest confirmed risk, and this WordPress blog runs on exactly that. The PHP team gave a day’s notice and shipped at 14:00 UTC, and the official Docker image carried the fix by 15:57 UTC. We rebuilt on it the next morning and made one mistake: recreating the WordPress container on the patched image threw away the old container’s log. The clean log we checked afterward covered only the eight hours since the restart. It says nothing about the hours between the release and our rebuild.

Who needs this PHP security update, and which version to install

Any site on an unpatched PHP needs it, whatever runs on top. WordPress, WooCommerce, Laravel and Drupal sites are no exception, and no WordPress or plugin update changes that.

PHP branchVulnerableInstall this or later
8.28.2.34 and older8.2.35
8.38.3.35 and older8.3.36
8.48.4.26 and older8.4.27
8.58.5.11 and older8.5.12

Stay on your branch. Each one has its own fix, so this is not the week to jump from 8.2 to the newest. PHP 8.1 and older get no official release. The PHP team published minimal source patches for 7.4, 8.0 and 8.1, and some vendors backport fixes, but for most sites on those versions the realistic answer is an upgrade.

Ubuntu, Debian and Red Hat patch PHP while keeping an older version number, which is why Ubuntu 24.04 still reports PHP 8.3.6 after its security updates. On those systems, look up the vendor’s notice for both CVE numbers rather than comparing against the table. FrankenPHP ships PHP inside its own binary, so Laravel apps on Octane with FrankenPHP need a new FrankenPHP build. Appliances and hosted products carry their own PHP too, and the Dutch National Cyber Security Centre keeps a vendor-by-vendor status list for them on GitHub.

On Apache with mod_php, researchers turned both bugs into working code execution. On PHP-FPM, behind Nginx or Apache, code execution is confirmed for CVE-2026-109619 through session upload progress. The memory bug, CVE-2026-109618, is vulnerable there on paper, with no full exploit shown yet. Less is known about the rest. FrankenPHP was not tested but is likely vulnerable to the memory bug, as is LiteSpeed (LSAPI) through application-specific paths, and php.net lists php-cgi as at risk. Step 1 below shows how to tell which one you run.

Our read: mod_php sites should treat this as an emergency, because the memory bug fires before any application code runs. PHP-FPM has a narrower confirmed path, but it works with default settings, so we would not wait for a maintenance window there either. Shared hosting usually runs LiteSpeed or PHP-FPM, which means your host has work to do even if you never log in to a server.

How to check and fix your site, step by step

1. Find the PHP version your website runs

The PHP in your terminal and the PHP serving pages can differ, so check the second one. In WordPress, open Tools, then Site Health, then the Info tab, and look under Server. cPanel and Plesk often show only the branch, like 8.3, so ask your host for the full number.

On your own server:

php -v                                  # command-line PHP
php-fpm8.3 -v                           # PHP-FPM (the name varies: php-fpm, php83-php-fpm)
apachectl -M 2>/dev/null | grep -i php  # prints php_module if Apache runs mod_php

In Docker or Kubernetes, ask the running container, not the Dockerfile:

docker exec <container> php -v
kubectl exec deploy/<app> -- php -v

From outside, you can read the version only if the server announces it:

curl -sI https://example.com | grep -i x-powered-by

A missing header proves nothing. Many servers hide it.

2. Save logs, then back up

Save the PHP and web server logs before anything else. In Docker that means before you recreate the container, which is how we lost ours. Then copy the site files and the database, and note the PHP version and extensions you run now.

3. Install the patched release and restart PHP

Distributions and long-term support vendors had the patches early, so your package manager may already have yours. On Debian or Ubuntu:

sudo apt update
apt list --upgradable 2>/dev/null | grep -i php
sudo apt upgrade

On Red Hat, AlmaLinux or Rocky Linux:

sudo dnf upgrade 'php*'

A third-party PHP repository may lag behind your distribution, so confirm it has published the new build before you trust the update.

With the official Docker images, a tag like php:8.3-fpm picks up the fix only when you pull it again. This is what we ran for this blog, and what the container reported afterward:

docker compose build --pull
docker compose up -d
docker compose exec wordpress php -v
# PHP 8.3.36 (cli) (built: Oct 21 2026 15:57:18) (NTS)

Workers that are already running keep the vulnerable code in memory until they stop, so the restart is part of the fix, not a formality:

sudo systemctl restart php8.3-fpm   # PHP-FPM; check your service name first
sudo systemctl restart apache2      # mod_php on Debian/Ubuntu (httpd on Red Hat)

In Docker and Kubernetes, replace every container or pod. One old replica left behind keeps the hole open. On shared or managed hosting you can’t install PHP yourself, so send your host the message in the next section.

4. Confirm the fix and turn off session upload progress

Repeat step 1 on every server, pool or replica. Then sign in, submit a form, upload a file and, if you sell online, place a test order. It’s worth running composer audit in the same session, but it checks your PHP packages for advisories and says nothing about the runtime.

The PHP team suggests leaving session upload progress off even after patching, since it is hardly used and hardly tested. We switched it off on this blog the same day. In php.ini:

session.upload_progress.enabled = 0

Restart PHP after the edit.

5. Look for attempts and intrusions

An affected version doesn’t mean your site was hacked. It means the door was open, and the logs you saved are where to look for anyone who walked through it. Both attacks lean on memory exhaustion and crashed workers, which leave traces:

grep -c "Allowed memory size of" /var/log/nginx/error.log /var/log/apache2/error.log
grep -E "Segmentation fault|SIGSEGV" /var/log/apache2/error.log /var/log/php8.3-fpm.log

A burst of “Allowed memory size of 134217728 bytes exhausted” errors from one IP address, next to workers dying with signal 11, deserves a close look. Log paths differ by system. Then check for changes nobody on your team made:

wp user list --role=administrator          # WordPress admins you don't recognize
find /var/www -name "*.php" -mtime -3      # PHP files changed in the last 3 days
sudo crontab -l -u www-data                # scheduled jobs added for the web user

Clean results are not proof, and the advisory warns that some failures happen before PHP writes any log line. If you find something real, take the server offline and keep the evidence. Rebuild from a clean source, then change every password and API key it held, such as the database password in wp-config.php or .env.

Can’t update today? Stopgaps, or ask your host

Updating is the only complete fix, the PHP team says. Each of these cuts part of the risk and needs every PHP worker restarted:

  • session.upload_progress.enabled = 0, the step 4 setting, blocks the confirmed session path.
  • fatal_error_backtraces = 0 on PHP 8.5 removes the strongest confirmed trigger.
  • memory_limit = -1, set where applications can’t override it, is the advisory’s main stopgap for CVE-2026-109618 because it removes the predictable cap the attack needs. One heavy request can then eat all the server’s memory, so pair it with request size limits in Nginx or Apache and a container or cgroup memory cap. Avoid RLIMIT_AS and RLIMIT_DATA, which make the bug easier to hit.
  • Refuse upload requests at the web server if the site or API never accepts forms with files. In Nginx:
if ($content_type ~* "multipart/form-data") {
    return 415;
}

WordPress needs these requests for its media library, so this one is for APIs and static-style sites.

  • pm.max_requests = 1 gives every PHP-FPM request a fresh worker, so nothing carries over. Expect a performance cost.

A web application firewall or Cloudflare won’t reliably stop these attacks. The PHP team lists request size limits at the proxy as partial hardening against the memory bug and says they do not replace the update. CVE-2026-109619 can start from a fatal error your own application throws, which a firewall never sees.

If a host runs your PHP, ask it. This message can go as it stands:

Hello, PHP has released fixes for CVE-2026-109618 and CVE-2026-109619. Please confirm that the PHP runtime serving my site includes both fixes, either as the patched release for its branch or as a vendor package that backports them. Please also confirm that all PHP workers were restarted afterward. If the update is delayed, please tell me when to expect it and whether session upload progress can be disabled for my account in the meantime.

What went wrong inside PHP

CVE-2026-109618 starts with a limit every request has: a memory cap, the memory_limit setting, 128 MB by default. When a request hit it, older PHP stopped mid-step and jumped straight to cleanup. If it was halfway through setting up a piece of memory at that instant, cleanup later read the half-built data as if it were valid.

An attacker can reach that cap on purpose with what looks like an ordinary file upload. The advisory gives three tricks: one form part carrying thousands of headers, empty file fields that pile up without counting toward max_file_uploads, and a body with no usable length that slips past post_max_size. None of them breaks the size limits you set.

PHP reads an upload body for any address it serves, before your code starts. On mod_php the crash and the bad cleanup both happen before WordPress loads a single file, so the attacker needs no form, no plugin and no account. The researchers’ exploit works with default memory and input limits. The fix stops a request at a safe point instead, and kills the process outright if memory climbs past a second, higher ceiling.

The second bug lives between requests. A PHP worker serves request after request, and a cleanup step clears the records that point into the finished request’s memory. A fatal error, such as running out of memory, hitting the time limit or a failed require, can skip that step. The next request on the same worker then touches freed memory before PHP has finished starting up. That is CVE-2026-109619, and two paths from it to code execution are confirmed. Session upload progress, on by default and active even if your code never calls session_start(), worked against both mod_php and PHP-FPM. The fatal_error_backtraces setting gave the strongest result against mod_php.

Both requests have to land on the same worker. Many workers lower the odds of each attempt, and an attacker can simply send more.

Is CVE-2026-109618 being exploited?

Attackers are trying it. Cloudflare says the flaws leaked before the official release date, and that it saw attack traffic aimed at its customers, with payloads reworked to slip past its new rules. Amazon’s threat intelligence team says its MadPot honeypots, decoy servers that exist to draw attacks, caught PHP2Shell exploitation before the details were public. None of these sources reports a confirmed break-in at a real site. CISA’s Known Exploited Vulnerabilities catalog, version 2026.10.21, lists neither CVE, and that catalog can trail the first attacks by days. Read its silence as nothing proven yet, not as safe.

Last verified October 22, 2026, 16:45 UTC.

Binance founder Changpeng Zhao warned his followers about the two flaws within hours of the release. By the next afternoon his post had passed 1.3 million views.

Post on X by Changpeng Zhao (@cz_binance) warning about PHP flaws CVE-2026-109618 and CVE-2026-109619 and saying exploitation was confirmed in the wild
Changpeng Zhao’s post on X, captured October 22, 2026.

An earlier version of this section was too quick to doubt him. We wrote that we had found no source for “after details leaked early”. Cloudflare’s write-up says exactly that, so we corrected it. “Exploitation was confirmed in the wild” holds for attempts: attack traffic and honeypot hits show working attacks in circulation. It does not show that any particular site was taken over. The PHP advisories use “confirmed” in a narrower sense still, for the mod_php attack the researchers built and ran themselves.

A second viral post counted security fixes from six projects “in a single day”. Five of the six hold up, and NGINX’s five shipped a week earlier. Our October 2026 security releases roundup checks each one against its project’s records and lists what Node.js, Go and GitLab users should install.

None of this is a reason to stop visiting websites. These bugs let an attacker take over a web server, not the computer of someone reading the site. Visitors face risk only later, if a hijacked site starts serving malware or a fake sign-in page. A familiar site that suddenly asks you to log in again or download a file deserves suspicion.

Sources

The commands and the php -v output come from this blog’s own server. Everything else comes from the pages below.