![PHP's Critical PHP2Shell Vulnerabilities (CVE-2026-109618 / 109619): A Technical Summary for Engineers [Updated Regularly]](/assets/66ec6ddb2c4f391b625d23cb/php-rce-cve-2026-109618-109619-hero.jpeg)
On October 21, 2026 (11:00 PM JST, 2:00 PM UTC), the PHP security team released fixes for two critical vulnerabilities that can lead to unauthenticated remote code execution (RCE) (PHP news). The pair is nicknamed “php2shell.” In Japan, a large number of organizations took services offline as a precaution while the release was only pre-announced (piyolog’s compilation).
This article is for engineers who run PHP. It is built around the official advisories (GHSA-w8hw-w9fx-j79w, GHSA-6wmf-4rv5-p3rp) and separates what is confirmed from what is third-party claim or still unverified. Sources are given next to each statement. It was updated on October 24 with the latest information. Daily updates end with this one, and anything important after this will be added as it happens. On October 28, we added CISA’s listing and the confirmed attack success on honeypots. The information is current as of October 28 JST. Times are in JST (UTC+9) unless noted.
session.upload_progress.enabled=0 (PHP news).versions.json).| CVE-2026-109618 | CVE-2026-109619 | |
|---|---|---|
| Advisory | GHSA-w8hw-w9fx-j79w | GHSA-6wmf-4rv5-p3rp |
| Official title | RCE via OOM corruption | RCE via stale global state |
| Severity | CVSS v4.0 9.2 (Critical) | CVSS v4.0 9.2 (Critical) |
| Vector | AV:N / AC:H / AT:P / PR:N / UI:N | Same |
| Published | October 21, 2026 | October 21, 2026 |
Reading the vector: network attack, no privileges, no user interaction, but high attack complexity and a requirement that certain conditions be present. PHP says exploit portability and reliability depend on the PHP build, extensions, front-end behavior, and allocator layout. That is not “trivially exploitable,” but it has been shown to work against mod_php once the conditions line up (GHSA-w8hw-w9fx-j79w).
When PHP runs out of memory, it leaves the current execution context with longjmp() and aborts the request. In some contexts, however, this escape can happen before request memory is fully initialized. The request memory is then left in an inconsistent state, and the shutdown code reads it or branches on it (GHSA-w8hw-w9fx-j79w).
For triggering memory exhaustion, the advisory points to multipart parsing. A multipart request without a usable Content-Length can pass the initial post_max_size check. There is also no limit on how many headers one part can carry, and each header costs memory to represent inside PHP, so a request within post_max_size can still exhaust a normal memory_limit (GHSA-w8hw-w9fx-j79w).
By SAPI, according to GHSA-w8hw-w9fx-j79w:
| SAPI | What the advisory says |
|---|---|
| Apache mod_php | Calls shutdown unconditionally even if request startup failed. Happens before application code runs. RCE verified |
| PHP-FPM | Exits the child process if startup fails, which prevents exploiting the bad state. OOM can still be reached after a normal startup. A complete FPM exploit has not been demonstrated |
| FrankenPHP | Source analysis shows it also calls shutdown unconditionally, like mod_php. Not verified |
| LSAPI | Similar to FPM. An application-specific exploit seems likely, but is not verified |
The verified RCE targets mod_php in a normal prefork setup with multiple workers, using PHP’s default input and memory limits.
Per-worker global state (errors, sessions, objects, extension state) can fail to be reset at the end of a request and keep pointing at memory that has since been freed. If the next request handled by the same worker uses that stale state before normal initialization, it dereferences freed memory. The advisory lists the impact as unauthenticated heap use-after-free, memory disclosure, and RCE with the web worker’s privileges (GHSA-6wmf-4rv5-p3rp).
The paths GHSA-6wmf-4rv5-p3rp confirms:
fatal_error_backtraces path on PHP 8.5 when that setting is enabled (RCE confirmed on mod_php)session.upload_progress) path. The feature is on by default and does not require session_start() (verified on both mod_php and FPM)auto_detect_line_endings=1, the legacy assert.* settings in PHP 8.3 and later, or an invalid memory_limit) are emitted as diagnostics. Changing error_reporting or using @ does not prevent itThe trigger demonstrated so far is OOM during input processing.
On October 23, PHP published an informational advisory for CVE-2026-115560. PHP describes it as an unlikely RCE path. All of the following must be true for it to occur (PHP news):
session.serialize_handler is set to php_binary or php_serialize in configurationphp at runtime with ini_set() before calling session_start()PHP says applications that never change the serialize handler at runtime can keep the feature enabled. The CVE is being handled in the regular release cycle, and a full advisory is due with the next release. As of October 24, I could not find a CVSS score or other severity rating, within what I was able to check.
In South Korea, KISA published an advisory on this vulnerability on October 24 recommending the same interim measure (session.upload_progress.enabled=0 and a restart of all PHP workers). It says that if you already applied the same setting for PHP2Shell, no further action is needed (etnews, in Korean).
According to GHSA-w8hw-w9fx-j79w, the fix removes longjmp() on OOM. Instead it uses a deferred, softer OOM that fires at the next safe point in the VM. If memory use reaches a second, higher threshold, it terminates immediately with _exit(). PHP’s normal memory-limit behavior is preserved.
The official advisories (GHSA-w8hw-w9fx-j79w, GHSA-6wmf-4rv5-p3rp) list these as affected:
| Branch | Affected | Fixed in |
|---|---|---|
| 8.5 | before 8.5.12 | 8.5.12 |
| 8.4 | before 8.4.27 | 8.4.27 |
| 8.3 | before 8.3.36 | 8.3.36 |
| 8.2 | before 8.2.35 | 8.2.35 |
| 8.1, 8.0, 7.4 | Not in the official affected table. Minimal source backports are provided (PHP’s announcement) | Backport branches (below) |
| 7.3 and earlier | No fix from the PHP project | None |
There are also claims that the bug reaches back to 5.4.0. That comes from the reporting side (Calif), as relayed by Tenable, and has not been confirmed in the official advisory.
To check:
php -v # CLI version (may differ from the version serving the web)
php-fpm -v # PHP-FPM
apachectl -M | grep -i php # is mod_php loaded?
The CLI version and the PHP that serves web requests can be different things. Check the one that handles web traffic, including FPM pools and containers. With Docker, run docker run --rm <image> php -v against the image you actually use.
Distribution packages sometimes pick up the fix without changing the version number. In that case, check the changelog. Adjust package names to your environment.
# Debian / Ubuntu
apt changelog php8.4-cli | grep -i -m1 CVE-2026-109618
# RHEL / Rocky / Alma
rpm -q --changelog php | grep -i -m1 CVE-2026-109618
The vulnerable component is the PHP runtime itself. Updating WordPress or Laravel does nothing if PHP is not on a fixed version. Conversely, once PHP is updated, application-level fixes are not required for this issue.
There are reports (from Wiz and Calif, as relayed by Huntress and Tenable) of unauthenticated RCE demonstrated against WordPress, Drupal, and Joomla. Those are third-party reports that the official advisory does not confirm.
Where the main distributions stand. Debian and Ubuntu were checked on October 24 against the Debian Security Tracker and USN-8948-1. The rest follows piyolog’s compilation (afternoon JST update of October 24). This is moving fast, so always check your own distribution’s advisory:
| Distribution | Status |
|---|---|
| Debian | trixie php8.4 fixed in 8.4.27-1~deb13u1 (DSA-6574-1); bookworm php8.2 fixed in 8.2.35-1~deb12u1 (DLA-4848-1). php8.4 in forky and sid is now fixed too, in 8.4.27-1. php8.2 in sid is shown as unfixed (Debian Security Tracker) |
| Ubuntu | USN-8948-1. 26.10 (php8.5 8.5.9-0ubuntu2.1), 26.04 LTS (php8.5 8.5.4-0ubuntu1.5), 24.04 LTS (php8.3 8.3.6-0ubuntu0.24.04.13) and 22.04 LTS (php8.1 8.1.2-1ubuntu2.28) are fixed (USN-8948-1). 20.04 and 18.04 via Ubuntu Pro; 16.04 and 14.04 via Legacy Support |
| Arch Linux | Fixed in php 8.5.12-1 and php-legacy 8.3.36-1 |
| Gentoo | Fixed in GLSA 202610-02 |
| Alpine Linux | php85, php84 and php83 in edge are fixed |
| Amazon Linux | AL2023 php8.2 to 8.4 are fixed. php8.5 has only CVE-2026-109618 fixed (ALAS2023-2026-3304); the rest was pending as of the morning of October 22. As of October 24, php on AL2 (Core) and php8.1 on AL2023 are marked “no fix planned” |
| AlmaLinux, Rocky Linux, Oracle Linux | Fixed (including rollout in progress) |
| RHEL | RHSB-2026-013. As of October 23, further updates for php on RHEL 8, 9 and 10 were still in progress |
| SUSE | Some versions were still shown as “affected” as of October 24 |
| Remi repository | PHP’s announcement said there was no update as of October 21 and suggested switching to the distribution’s packages or building from source. Remi then published RPMs for 8.2.35, 8.3.36, 8.4.27 and 8.5.12 on October 22 |
For Docker, the docker-library definitions (versions.json) are updated to the four fixed releases (8.5.12, 8.4.27, 8.3.36, 8.2.35); I confirmed this again on October 24, and nothing newer is listed. We have not verified that the images themselves have been published, so pull again and confirm with php -v. According to PHP’s announcement, Windows builds are listed on the official downloads page.
After updating, restart all PHP workers (FPM pools, Apache workers). Reloading configuration alone can leave old workers running.
These are the interim mitigations from PHP’s announcement and the two advisories (GHSA-w8hw-w9fx-j79w, GHSA-6wmf-4rv5-p3rp). None of them makes you safe. Use them to buy time until you can update.
For CVE-2026-109618, set memory_limit to -1 in a way the application cannot override.
# Apache (mod_php)
php_admin_value memory_limit -1
; PHP-FPM pool configuration
php_admin_value[memory_limit] = -1
For CVE-2026-109619, disable session upload progress. Put it somewhere that is applied before request parsing: php.ini, the FPM pool, or the server configuration. ini_set() and .user.ini cannot be relied on. On PHP 8.5, also disable fatal_error_backtraces.
; php.ini
session.upload_progress.enabled = 0
fatal_error_backtraces = 0 ; PHP 8.5 only
; or in the PHP-FPM pool configuration
php_admin_flag[session.upload_progress.enabled] = off
This session.upload_progress.enabled = 0 setting also mitigates CVE-2026-115560, published on October 23. If you have already set it, leave it in place (PHP news). The GHSA-6wmf-4rv5-p3rp advisory also says that, if performance allows, you can consider pm.max_requests=1 for FPM.
After changing these, restart all workers. Also check that no finite memory limit has been put back at the pool, directory, or application level.
Three cautions:
memory_limit = -1 is not a complete mitigation. If an underlying allocation (such as mmap()) fails, the same path can still be reached. It also raises the risk that a single request eats all the server’s memory, so always combine it with the front-end limits belowRLIMIT_AS or RLIMIT_DATA limits (ulimit -v, systemd LimitAS= or LimitDATA=, and so on). PHP’s announcement says that when the limit is hit, mmap() fails and triggers the vulnerable pathPHP’s announcement lists these as measures that reduce risk but do not replace the fix:
post_max_size conservatively (around 8M if you don’t need file uploads, around 32M if you do; keep upload_max_filesize below it)Content-Lengthmax_input_nesting_level, and limit the number of input variables, multipart parts, headers per part, and uploadsCloudflare’s CTO announced WAF rules for known attack paths for all customers, including free plans. Cloudflare itself describes them as a stopgap, and they only apply to traffic that goes through Cloudflare (Tenable, piyolog’s compilation).
According to PHP’s announcement, for people building from source or without an LTS vendor, the PHP security team provides minimal backports for 7.4, 8.0 and 8.1 on these branches:
PHP-7.4-CVE-2026-109618-109619PHP-8.0-CVE-2026-109618-109619PHP-8.1-CVE-2026-109618-109619There is no fix from the PHP project for 7.3 and earlier. You need a vendor LTS (such as Ubuntu Pro) or a move to a supported version. Also note that PHP 8.2 reaches end of life on December 31, 2026, according to PHP’s announcement. This is a good moment to revisit your migration plan.
Updating does not remove a compromise that happened between disclosure and your patch. Huntress recommends watching for signs such as:
php-fpm, php-cgi, httpd, apache2) spawning shells (sh, bash, cmd.exe, powershell.exe), interpreters (python, perl), or download tools (curl, wget, nc, certutil.exe)/dev/tcp/, fsockopen, or mkfifowhoami, id, uname -a, or ipconfigAs of October 21, Huntress listed indicators of compromise (IOCs) as “to be determined” (Huntress). Sophos has since published indicators from attempts it observed. The main ones:
45[.]198[.]224[.]169, with a User-Agent of php2shell-scan/109618 and a request boundary string of B7kQpoc618/nfs on 92[.]118[.]112[.]100. If downloaded, it would be written to /tmp/nfs and run as ./nfs phpSophos says these attempts were blocked and that it has not confirmed any successful compromise. The other indicators (C2 IP addresses, domains, hashes) are on Sophos’s page.
The PHP advisory recommends auditing with log_errors, error_log and error_reporting=E_ALL, while warning that an absence of log entries is not proof of safety.
This one is my own observation: a sudden rise in PHP-FPM log lines saying a worker “exited on signal 11 (SIGSEGV)” may indicate attempts. It is not an official IOC, but it is a useful lead.
If you suspect compromise, preserve logs and isolate the server. Every credential visible to the PHP worker (database passwords, API keys, tokens) will need to be rotated.
Reports on exploitation conflict. Here they are with a confidence level.
| Item | What is reported | Confidence |
|---|---|---|
| Attack attempts | According to Tenable, Amazon saw a first attempt on its honeypot on October 17 (four days before disclosure), with more on October 21, and says the flaws are now “broadly exploited in the wild.” watchTowr says it observed attempts against both vulnerabilities (counts not disclosed). Cloudflare posted that attempts on its network had reached the millions as of its October 22 post (piyolog’s compilation) | Third-party report |
| Botnet activity | Sophos observed attempts to plant Potassium (a Mirai derivative) and analyzed them as blocked. According to SecurityWeek, Hunt.io believes a Mirai-style botnet active since about May 2026 has added these flaws to its spreading methods. Arctic Wolf linked Potassium samples to servers hosting PHP2Shell payloads, but found no evidence that PHP2Shell requests fetched or ran them | Third-party report |
| Scanning activity | CYFIRMA reports that a suspected North Korea-linked actor is probing 216 unpatched hosts from 21 compromised nodes. The scanning is low-volume and paced, and CYFIRMA expects exploitation to be the next step. Defused Cyber reports probes against its honeypots carrying a PHP_SESSION_UPLOAD_PROGRESS marker, which it reads as an attempt to build a list of vulnerable devices (The Hacker News) |
Third-party report |
| Successful compromise | On October 24, Adel Karimi, a researcher at Perplexity, confirmed 35 cases in which an attack succeeded and a shell started, on three honeypot servers (PHP 8.4.26, Apache mod_php, a single Apache worker, 128 MiB memory limit). The traffic came from two groups of addresses (report). This is one setup, and the number of real sites compromised is unknown. What follows are the reports through October 23. As of October 23, there was no solid report of success. Unit 42 retracted its assessment that post-compromise activity at a European government agency involved PHP2Shell exploitation, saying it is “unable to confirm that initial access is associated with the specific PHP2Shell CVEs” (The Hacker News). Sophos retracted, the same day (JST, October 23), its report of “one successful exploitation,” saying the attack was blocked and the payload never arrived. According to SecurityWeek, at an attacker server found by SOCRadar, about 20 sites were fingerprinted and 11 probed in depth, none met the exploit’s requirements, and no shell access was seen (as of October 22). Hunt.io analyzed the same server and found 10 attack rounds against 123 servers, about 57 of which ran PHP, with none exploited. Huntress had not observed exploitation in partner environments as of 4:30 PM US Eastern on October 21 | Confirmed on honeypots; real sites unknown |
| Public bodies | On October 26, CISA added CVE-2026-109618 and 109619 to the KEV catalog. The deadline for US federal agencies is October 29. CVE-2026-115560 is not listed (I checked the CISA KEV data directly on October 28). Before the listing (the data published at 19:30 UTC on October 23), none of the three was listed, and CISA had said it observed no exploitation at the time of its notice. The Netherlands’ NCSC-NL updated that it was aware of one report suggesting possible exploitation abroad, but a successful attack was unconfirmed (October 23, 10:45 PM JST; piyolog’s compilation) | Partly confirmed from a primary source |
| Firewall compromises | According to Dream, the attacker found about 19,000 PAN-OS devices, got version data from about 5,000, and targeted 240 running PAN-OS 12.1 and 12.2 (PHP 8.0.30) in the US, Japan, Taiwan and South Korea. It rooted 24, then compromised a management server through one of them (25 in all). The chain is the PHP2Shell RCE plus the Linux kernel flaw CVE-2026-46300 (Dream calls it “Fragnesia”). On 22 devices it only left a 103-byte web shell and waited. In the US government-related environment, Dream says the attacker moved into the internal network and tried to harvest Active Directory credentials (Dream). JPCERT/CC reports traces of a compromise of “a specific version of a firewall product” and attempts at lateral movement (no product name given; JPCERT/CC, in Japanese). Dream notes that it has no direct evidence that AI wrote the exploit, that it does not name an actor, and that it could not recover the Active Directory results. The PHP2Shell exploit used was custom and not public. In its October 29 Unit 42 update, Palo Alto confirms exploitation of exposed management interfaces and says it independently verified the attacker’s tooling reported by Dream. It also says the affected devices were about 0.02% of its installed base and that it contacted each affected customer individually (Palo Alto’s own account; Unit 42). Palo Alto’s advisory raised the severity to Critical and the urgency to Highest on October 27 and says “Active exploitation has been observed” (Palo Alto’s advisory) | Reporter’s investigation, independently verified by Palo Alto. Hotfixes available (Unit 42, Palo Alto’s advisory) |
| Public PoCs | The PHP Foundation said it did not identify any functional exploits at the time of disclosure. Wiz, on the other hand, reported demonstrating unauthenticated RCE on WordPress, Drupal and Joomla (Tenable, Huntress). According to SecurityWeek, VulnCheck says it has its own exploit for CVE-2026-109618 that reaches code execution through a memory leak on x86-64 with ASLR enabled and error display off (available only to its customers; few of the hundreds of GitHub PoCs actually work). Sansec says public exploits fail on default PHP settings, and has revised down its expectation of mass exploitation | Conflicting |
| Pace of patching | According to Censys, as of October 28, about 73% of the PHP whose version can be seen (about 32.7 million services) reports an unfixed version (Censys; see the recap). Qualys’s analysis shortly after the release follows. According to SecurityWeek, Qualys, using anonymized data from 12,000 customers, found only 199,000 PHP instances updated within 12 hours of disclosure. About 110 million (71%) run PHP 5.4 to 8.1, which are end-of-life and mostly will not get fixes, and about 44 million run supported branches that have fixes but are not updated | Secondary source (Qualys analysis) |
| Additional CVE | CVE-2026-115560: PHP published an informational advisory on October 23; details are due with the next release (PHP news) | Official |
| Affected versions | The official table lists 8.2 to 8.5. “Back to 5.4.0” is Calif’s claim (Tenable) | Official and third-party differ |
| CVSS | Reported as 10.0 when the identifiers leaked, but the official rating is 9.2 (piyolog’s compilation, GHSA-w8hw-w9fx-j79w) | Official value is 9.2 |
Be careful with old information. Articles written right after the leak sometimes still say “no fix is available yet” or “5.x through 8.x are affected,” which no longer matches the official information.
Times are in JST. Unless noted otherwise, the source is piyolog’s compilation. The release of the fixed versions can also be confirmed in PHP news.
| When | What happened |
|---|---|
| 2024 | During an external audit (Quarkslab via OSTIF), the first signs of the OOM problem appear, but no attack path is found and agreement on a fix is hard to reach |
| July 30, 2026 | Calif starts auditing PHP |
| August 11 | Calif, and independently OpenAI, report an RCE with the same root cause |
| August 24 | Wiz reports an additional attack path |
| September 18 | OpenAI reports an additional attack path |
| October 17 | Amazon’s honeypot sees the first attempt (four days before disclosure; Tenable) |
| October 21, around 12:00 AM | The two CVE IDs circulate with the wrong publication time and a wrong CVSS of 10.0 (technical details reportedly did not leak) |
| October 20 (UTC) | PHP pre-announces a critical security release for 2:00 PM UTC on October 21 (11:00 PM JST), a day earlier than originally planned |
| October 21, 3:26 AM | watchTowr posts that RCE details under embargo have leaked |
| October 21, 4:43 PM | Cloudflare’s CTO posts that WAF rules have been rolled out to all customers |
| October 21, 10:34 PM | The two GitHub advisories are published |
| October 21, 11:00 PM | The fixed releases (8.5.12, 8.4.27, 8.3.36, 8.2.35) are published |
| October 22, morning | Sakura Internet, Xserver and others complete server-side PHP updates (see below) |
| October 23, 1:18 AM | Sophos reports scanning and failed attempts, plus one successful exploitation (Sophos) |
| October 23, 6:21 AM | Sophos retracts that report: the attack was blocked and the payload never arrived (Sophos) |
| October 23 (by 12:35 AM on October 24) | PHP publishes an informational advisory for CVE-2026-115560 (PHP news; the time is approximate, taken from Sophos’s log) |
| October 23 | SecurityWeek reports on Mirai-botnet operators joining in and VulnCheck’s ASLR-bypass exploit (SecurityWeek) |
| October 24, 4:30 AM | CISA’s published KEV data (the 19:30 UTC October 23 version) lists none of the three CVEs (CISA KEV) |
| October 24 | KISA publishes its advisory on CVE-2026-115560 (etnews) |
| October 25 | Unit 42 retracts its link between post-compromise activity at a European government agency and PHP2Shell exploitation. Observations from CYFIRMA and Defused Cyber are reported (The Hacker News) |
| October 24 | A Perplexity researcher confirms successful attacks on honeypot servers (35 shells started) (report) |
| October 26 | CISA adds CVE-2026-109618 and 109619 to the KEV catalog (deadline October 29; CISA KEV) |
| October 26 | Dream publishes its report on the chained attack on PAN-OS (updated October 29 to name the product; Dream) |
| October 27 | Palo Alto raises the severity of its advisory to Critical and the urgency to Highest (Palo Alto’s advisory) |
| October 28 | CISA adds the Linux kernel flaw CVE-2026-46300 to KEV (due October 31; the KEV note says it can be chained with CVE-2026-109618 and 109619 to plant PHP web shells and run commands as root; I checked CISA’s KEV data directly) |
| October 29 | JPCERT/CC updates its alert (traces of firewall compromise, Dream’s report; JPCERT/CC, in Japanese) |
| October 29 | Palo Alto updates its Unit 42 brief: exploitation of exposed management interfaces, and confirmation of Dream’s report (Unit 42) |
After the pre-announcement, many organizations in Japan took services offline on the night of October 21 as a precaution. piyolog’s compilation (as of the morning of October 22) counts 211 organizations, and 246 as of noon on October 23: government bodies, municipalities, financial institutions, games, e-commerce, video and streaming, shared-hosting providers, and more. Organizations outside its table also went down, including 24 municipalities in Nagano Prefecture, 26 sites in Mie Prefecture and about 60 JR West sites. Nikkei xTECH also reported the partial shutdown of Sakura Internet’s services and emergency maintenance at Cygames and pixiv.
According to piyolog’s compilation, shared-hosting providers that run PHP responded as follows (as of the afternoon of October 24; always check each provider’s notice):
session.upload_progress is disabled on all versionsOn shared hosting, updating PHP is the provider’s job. But if you have selected an old PHP version, you may be outside the scope of the update. Check which PHP version your control panel uses.
Among public bodies in Japan, IPA and the National Cybersecurity Office urged preparation for the release on October 21 (piyolog’s compilation).
Daily updates end on October 24. These are the points still worth watching, and anything important will be added to this article.
If you need help taking stock of your PHP environments, updating them, or checking for compromise, get in touch below.
We are currently taking free consultations on security. Questions like "Is our site safe?" or "Where should we start checking?" are welcome.
