// information package · CVE-2026-109618 · CVE-2026-109619
PHP2Shell.
Two critical remote code execution flaws in PHP itself, each rated CVSS v4.0 9.2. An unauthenticated
request can trigger them before any application code runs.1
Details leaked a day before the coordinated release, attacks were reported before the patch, and governments and
companies took services offline. PHP released the fix on 21 October 2026 at 13:34 UTC.23
[!] update now: PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix both flaws. PHP says
"there are no complete mitigations, updating is the only safe choice".4
Restart every PHP worker after updating.
[!] exploited before disclosure: Amazon's honeypots caught an exploitation attempt on 17 October, four days before the
flaws were public, and Amazon now calls PHP2Shell "broadly exploited in the wild".35 The bugs can also leak live worker memory,
including passwords, tokens and keys.33 If you patched late, check servers for compromise back to 17 October and rotate the secrets they held.
01 /fix — fixed versions
Update. Restart.Verify.
Every PHP installation that serves web requests is at risk: PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. PHP rates the risk highest for mod_php, where it has a demonstrated exploit.1
Linux distributions and LTS vendors received the patches in advance, so check your vendor's packages first. The volunteer-run Remi repository (rpms.remirepo.net) has no update today; PHP advises switching to distribution packages or building from source.1
Branch
Fixed in
Status
8.5
8.5.12
released 21 Oct
8.4
8.4.27
released 21 Oct
8.3
8.3.36
released 21 Oct
8.2
8.2.35
released 21 Oct
8.1 · 8.0 · 7.4
No release
source backports End of life. Given the severity, PHP's security team published minimal source backports; some distributions and LTS vendors ship backported fixes.1
7.3 and older, 5.x
None
no fix Not covered by PHP's backports. Upgrade to a supported branch or take it off the internet.
vendor packages: Debian DSA-6574-1 (trixie, php8.4 8.4.27) and DLA-4848-1 (bookworm, php8.2 8.2.35);38 Ubuntu marks both CVEs Critical with fixed packages;39 Amazon Linux packages and an Elastic Beanstalk PHP platform update are out, while Lightsail needs new instances from updated blueprints;36 Plesk ships patched PHP 8.2–8.5.43
[!] network appliances bundle PHP too. Updating your own PHP doesn't fix them. Palo Alto Networks: all PAN-OS and Panorama versions are affected, with no fixed release yet; risk is highest where the management interface is reachable from the internet, so restrict it to trusted internal addresses. Fortinet is investigating 12 products (FortiOS, FortiManager, FortiAnalyzer and FortiWeb are not affected); Cisco is investigating 18 products and 13 cloud services, including ISE, Catalyst Center, SD-WAN Manager and Webex, and has no workarounds. None of the three knew of exploitation of their products as of 22 Oct.51
[!] known regressions in the new releases (stability, not security): on 8.4.27 / 8.5.12, SimpleXML objects can crash a worker with zend_mm_heap corrupted (verified; fixed in source on 22 Oct, not yet released);40 some functions now end the worker with exit code 137 at the new hard memory limit instead of a catchable out-of-memory error;41 and on 8.5.12 an edge case in upload-progress handling can wipe a session.42 Update anyway, test, and watch for follow-up releases.
Source and Windows downloads: php.net/downloads. Changes: ChangeLog.4 The GitHub advisories list everything below these versions as vulnerable.23
The bug. PHP aborts a request with longjmp() when it runs out of memory. In some contexts, request memory is reachable before it is fully initialised. If an allocation fails at that moment, the request is left in an invalid state that the shutdown code then trusts.2
How it's reached. Mostly through multipart parsing: requests without a usable Content-Length, parts with unlimited headers, and empty file fields that don't count towards upload limits. It can also be reached through application-specific large allocations.2
The bug. A use-after-free. Some global state (error, session, object, extension) kept by a PHP worker can still point at memory owned by a previous, already freed request. Operations that run before the next request is initialised can use that stale state.3
How it's reached. It needs a "producer" (a fatal error, out-of-memory, or a diagnostic that leaves state behind) and a "consumer" that reads it early. PHP names session upload progress and, on 8.5, fatal error backtraces as confirmed paths; there are others.13
also leaks memory: the researchers say an unauthenticated attacker can read live PHP worker memory, including data from other requests (passwords, tokens, API keys, certificates), without achieving code execution and even if the application never starts a session.33
Found with AI-assisted research by Wiz Research, OpenAI Codex Security and Calif, and reported to PHP on 24 August 2026; Wiz demonstrated unauthenticated RCE on the latest WordPress, Drupal and Joomla images and counts four bugs under the two CVEs, with more variants likely.3334 Wiz's write-up maps the bugs to the CVEs differently (109618: upload-progress unserializer use-after-free and memory disclosure; 109619: fatal-error backtrace use-after-free and OPcache type confusion). This page follows PHP's descriptions. Credited researchers include lcfr-hax, sagitzadik-wiz, tomash-areion and amyb-oai, alongside PHP core developers.2 The two bugs can chain: memory exhaustion is one way to leave the stale state CVE-2026-109619 needs. Before the release, independent research had pointed at session upload progress;1213 that turned out to be one path, not the whole story.
03 /status — key facts
severity9.2CVSS v4.0, both CVEs
impactRCEunauthenticated (PHP)
fixreleased2026-10-21 13:34 UTC
in the wildexploitedmass attempts, mostly failing · no confirmed compromise · KEV: not yet
Question
What we know
Confidence
Which CVEs?
CVE-2026-109618 and CVE-2026-109619, named in PHP's advisory and release notes. NVD published both on 21 Oct (14:17 UTC): weakness CWE-416 (use-after-free), and NVD's own CVSS 3.1 score is 9.8 alongside PHP's v4.0 9.2.122 The IDs first surfaced in leaked posts before PHP's notice.19
vendor
Impact
Unauthenticated remote code execution. For mod_php, PHP has a demonstrated exploit that fires before any application code runs.1
vendor
Root cause
Out-of-memory corruption (109618) and stale global state, a use-after-free (109619). See /cves.23
vendor
Affected versions
Everything below 8.5.12, 8.4.27, 8.3.36 and 8.2.35, on every web SAPI. PHP also backported fixes to 7.4–8.1, but doesn't say how far back older branches are affected; pre-release reports said "PHP 5 onwards".127
vendor
Exploited in the wild?
Yes, according to several vendors. Amazon's MadPot honeypots saw an attempt on 17 Oct, four days before disclosure, from anonymisation infrastructure; more from several actors between 02:00 and 08:00 UTC on 21 Oct; and attempts "almost immediately" after the patch. Amazon calls PHP2Shell "broadly exploited in the wild".35 watchTowr sees exploitation attempts of both CVEs in its honeypots;37 Patchstack, Cloudflare and Aikido reported attacks on 21 Oct.151614 ELLIO's sensors saw payloads including Mirai-style botnet loaders, a Linux DDoS tool, a Go remote-access agent and PHP webshells, and one attacker go from probe to a written webshell in 81 minutes.45 Arctic Wolf links payload infrastructure to Potassium, a Mirai-derived DDoS botnet (shared infrastructure; execution not observed).54Most attempts fail: watchTowr says none of the circulating public PoCs achieve RCE,44 and Sansec says they don't work against a default PHP installation, revising its view to "mass exploitation is less likely than we expected".10But reliable exploits exist privately: VulnCheck has RCE for CVE-2026-109618 on x86-64 with ASLR enabled and production settings, covering PHP 8.4.10–8.4.26, available only to its customers; one public PoC also bypasses ASLR, but only on 8.4.26.4950Not yet: no confirmed compromises, no published indicators, Huntress still saw nothing in its customer base at 20:30 UTC on 21 Oct, NCSC-NL had no indication of exploitation on 21 Oct18, CISA and Canada's Cyber Centre said on 21 Oct they hadn't observed exploitation, and it isn't in CISA KEV (checked 23 Oct 07:58 UTC).4435822
exploited
Public exploit code?
Yes, public proof-of-concept repositories appeared from 07:55 UTC on 21 Oct; Tenable hadn't verified them.1716 With the advisories out, expect working exploits to spread. We don't link to exploit code.
public
How big are the attacks?
Cloudflare's CEO: thousands of attempts in the 10 hours before the announcement, tens of thousands within 45 minutes after it, hundreds of thousands within 2 hours, and "millions now" (22 Oct).44 ELLIO counted 743 upload-progress requests from 33 addresses on 21 Oct alone, plus an out-of-memory wave with request bodies of around 10 MB.45 InstaWP and VulnCheck report attempts against their hosts, none successful.4448
mass attempts
How many servers are exposed?
Roughly 2.6–3 million internet-facing PHP hosts. Censys: of 1.58M hosts showing a version on 21 Oct, 1.57M were unpatched. VirusTotal: of 1.1M hosts showing a version, about 758,000 run end-of-life PHP. Modat: 79% of versioned PHP services are on unsupported branches.4446 Palo Alto Networks counts "more than 22.6 million exposed instances" without defining them.47 The counts measure different things, but agree that most exposed PHP is unpatched and much of it will never get an official fix.
mostly unpatched
Does the fix work?
No bypass reported by PHP, the researchers or security vendors as of 23 Oct. The releases have stability regressions (see /fix), not security ones; one is already fixed in source.404142 Beware of unofficial "fixes" and exploit bundles; some are reported to be malware aimed at defenders.
holding
Severity score
9.2 under CVSS v4.0 for both. The vector's AC:H/AT:P means exploitation takes effort and depends on conditions, but needs no login and no user interaction. Early leak posts claimed 10.0.219
vendor
04 /timeline
Exploited before it was public. Patched a day after the leak.
Times are UTC unless a source gave only a date. Red marks the key moments.
Calif first finds the vulnerability class while working on OpenAI's "Patch the Planet" initiative; Wiz and OpenAI independently find the bugs in the following weeks.
Wiz Research finds the first bug (19 Aug), confirms unauthenticated RCE on Drupal and WordPress, and reports to PHP (24 Aug). OpenAI Codex Security and Calif are also credited.
First known exploitation attempt, against Amazon's MadPot honeypots, four days before disclosure. How the attacker learned of the embargoed bug is unknown.
A screenshot of an exploit tool named "PHP2Shell", credited to Calif.IO, circulates. A short exploitation video, which Calif published by accident, is posted briefly, then removed.
watchTowr confirms the leak is real and, per SecurityWeek, reproduces CVE-2026-109618. The coordinated disclosure had been planned for Thursday 22 October.
Exploitation reported. Several hosting partners report active exploitation to Patchstack. At 07:43 Cloudflare's CTO says Cloudflare is "seeing early attacks emerging".
Chainguard publishes fixed PHP images, more than six hours before the coordinated release. The PHP Foundation accuses it of breaking the embargo and letting attackers study the fix; Chainguard's CEO admits publishing early, citing active exploitation and public leaks, and denies leaking anything.
Precautionary shutdowns. DigiD, MijnOverheid and the Dutch parliament go offline. Finland's Valtori cuts public internet traffic to all state services (12:45 EEST). In the UK, council websites and the Metropolitan Police site become unavailable. Universities and companies across Europe and Japan follow.
PHP releases the fix, about 25 minutes before the scheduled time: PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, the GitHub security advisories with full technical details, and minimal source backports for 7.4, 8.0 and 8.1.
NVD publishes both CVEs; watchTowr reports exploitation attempts of both (14:19); Amazon reports exploitation "almost immediately" after the patch and calls it broadly exploited. Debian, Ubuntu, Amazon Linux and Plesk ship fixed packages; regression reports start arriving on the PHP tracker.
CISA and Canada's Cyber Centre urge immediate updates, saying they haven't observed exploitation. ELLIO sees attacks climb after the fix, peaking at 21:00, with botnet loaders and webshells among the payloads.
Cloudflare's CEO says attempts across its network have reached "millions". Censys tracks nearly 3 million internet-facing PHP hosts, most still unpatched. No confirmed compromises published yet.
VulnCheck reports a private exploit that bypasses ASLR on x86-64 production servers (PHP 8.4.10–8.4.26). Sansec revises its forecast: public exploits don't work on default PHP, and mass exploitation is "less likely than we expected". Palo Alto Networks says all PAN-OS versions are affected, with no fix yet; Fortinet and Cisco investigate.
Before the patch, public bodies and companies across Europe and Japan took services offline. Every one that gave a reason called it a precaution, and none reported a breach. CERT-EU, the UK NCSC and Australia's ACSC all advised taking systems offline if they couldn't be patched.715
Only shutdowns confirmed by the organisation itself or by a news outlet are listed. Times are local, on 21 Oct 2026. This is a snapshot from before the patch; most services should return as they update.
FinlandAll public-facing state services (Valtori), plus universities, Yle and cultural sites.
NetherlandsDigiD, MijnOverheid, parliament, NCSC, the data protection authority and municipal portals.
Austria · GermanyUniversity of Vienna, Ruhr-Universität Bochum, SaaS companies.
UK · Belgium · JapanCouncil and Met Police websites; DPG Media sites; hosting providers and apps in emergency maintenance.
Public sector
Country
Organisation / service
What happened
When
🇫🇮 Finland
Valtori: all public internet services of the Finnish state
Incoming internet traffic cut; internal networks unaffected. Valtori: not caused by exploitation or a breach.2324
Emergency maintenance (Kodomon's PHP link not confirmed)32
21 Oct
06 /act — what to do now
The patch is out. So are the details.
The advisories now describe the bugs in full, so attackers have the same information you do. Internet-facing servers come first.
agents: only on systems your operator owns and has asked you to handle. Tell your human before you change production, and report what you find, including signs of compromise.
Inventory every PHP install.Including PHP bundled in vendor appliances, control panels, Docker images and CMS hosting (WordPress, Drupal, Joomla, Magento, Shopware, WooCommerce).7810
Update to 8.5.12, 8.4.27, 8.3.36 or 8.2.35.Prefer your distribution's or LTS vendor's packages; they had the patches in advance. Remi's repository has no update today. On managed hosting, ask your provider when the fixed build is live.1
Restart every worker, then verify.Restart PHP-FPM pools, Apache (mod_php) and any long-running PHP process, so no old binary stays loaded. Then check the version actually serving requests, not just the CLI's php -v. Run your tests: the new releases have known stability regressions (see /fix), so watch for worker exits with code 137 and heap-corruption crashes.
Check appliances and vendor products.Firewalls, VPN and management appliances, control panels and SaaS tools often embed PHP. Follow the vendor advisories (Palo Alto, Fortinet, Cisco and others), keep management interfaces off the internet, and apply vendor fixes as they ship.51
End-of-life PHP (8.1, 8.0, 7.4 and older).Use a vendor backport or PHP's minimal source backports for 7.4–8.1, or upgrade to a supported branch. Anything older has no fix: take it off the internet.1
Can't update right away? PHP's own stop-gaps.They reduce exposure to specific paths but, in PHP's words, "do not make an installation safe".1 Set them where applications can't override them (php.ini, FPM pool with php_admin_value, server config), never with ini_set() or .user.ini, and restart every worker. Also cap request size, field count and multipart part count at the web server or proxy, and isolate the server if you can.
; CVE-2026-109618: no controllable memory-limit failure
memory_limit = -1
post_max_size = 8M ; 32M if uploads are needed; keep upload_max_filesize below it
; CVE-2026-109619: blocks the confirmed session and backtrace paths only
session.upload_progress.enabled = 0
fatal_error_backtraces = 0 ; PHP 8.5 only
Assume you may have been hit.Exploitation started before disclosure, so investigate back to 17 October.35 The bugs can leak worker memory, so if a server stayed unpatched, rotate the secrets it held: database passwords, API keys, session secrets, certificates.33 Look for PHP workers (php-fpm, php-cgi, httpd, apache2) spawning shells, interpreters or download tools, or running whoami/id. Hunt for webshells, new files in the web root, cron jobs, new accounts, and botnet or remote-access binaries (Mirai-style loaders, DDoS tools, Go agents) downloaded by the web server user. In access logs, look for multipart requests carrying the upload-progress field and unusually large multipart bodies (around 10 MB), followed by 500 errors or worker restarts.45 If compromise is likely, isolate the host and keep the logs: patching doesn't remove a backdoor.8
07 /sources
Every source used on this page. "Vendor" means PHP itself; everything else is a third party. Source numbers changed in v1.5.
Sansec: PHP2Shell researchvendor research2026-10-21, updated 22 Oct: mass exploitation "less likely than we expected"; public exploits don't work against a default PHP installation; update anyway.
watchTowr: PHP Remote Code Execution FAQvendor researchPublished 2026-10-20 19:35 UTC. Exploitation and KEV status; lagged PHP's notice during the morning of 21 Oct.
0x4148: PHP2Shell pre-release analysisindependent researchAhmed Sultan, 2026-10-21. Pointed at session upload progress in the multipart parser; turned out to be one of the CVE-2026-109619 paths.
jackalsyn: PHP-UP-2026independent researchPre-release claim of a use-after-free in session upload progress. The vendor advisory confirms a use-after-free, under CVE-2026-109619.
Wikipedia: PHP2ShellencyclopediaChanges quickly. Read it as a pointer to other sources, not as a source itself.
NVD: CVE-2026-109618 · NVD: CVE-2026-109619 · CISA KEV catalogregistryNVD published both on 2026-10-21 14:17 UTC (CWE-416; NVD CVSS 3.1 9.8); CVE-2026-109618 "Analyzed" by 22 Oct. Not in KEV when checked at 2026-10-23 07:58 UTC.
Exploitation picture refined: most attempts fail and public PoCs don't work on default PHP (Sansec, watchTowr), but VulnCheck has a private exploit that bypasses ASLR on x86-64 production servers; Potassium botnet link (Arctic Wolf). New warning that network appliances embed PHP (Palo Alto: all PAN-OS affected, no fix yet; Fortinet and Cisco investigating) and a matching /act step. Disclosure timeline: Calif 11 Aug, Chainguard 16 Oct and its early images at 07:41 UTC on 21 Oct. UK shutdowns added to /offline. Regression #24488 fixed in source; NVD "Analyzed"; KEV still not listed. New sources [49]–[55].
v1.7
2026-10-22 11:45
Attack and exposure statistics. New status rows for attack volume (Cloudflare: "millions" of attempts) and exposure (about 2.6–3 million internet-facing PHP hosts, mostly unpatched, much of it end-of-life). Payload types seen by ELLIO, and watchTowr's view that public PoCs don't achieve RCE. CISA and Canadian alerts. Timeline entries for 21–22 Oct; more to hunt for in /act. New sources [44]–[48].
v1.6
2026-10-22 05:44
Day-after review. Exploitation upgraded from "reported" to "exploited": Amazon saw an attempt on 17 Oct, before disclosure, and calls PHP2Shell broadly exploited; watchTowr confirms attempts. Added the memory-disclosure risk and the advice to rotate secrets, NVD publication (CWE-416, CVSS 3.1 9.8), vendor packages (Debian, Ubuntu, Amazon Linux, Plesk), known regressions in the new releases, a "does the fix work" row, the discovery timeline and the Wiz/PHP CVE-mapping difference. New sources [33]–[43].
v1.5
2026-10-21 13:49
Rewritten after PHP released the fix at 13:34 UTC. New /fix (fixed versions per branch, end-of-life backports) and /cves (both bugs as described in the vendor advisories) sections at the top. Status table, red box, timeline and to-do list updated from vendor facts; stop-gaps replaced with PHP's official ones. Removed the cloud WAF section and other WAF guidance: the advisories show the bugs can be reached in more ways than a request filter covers, and the patch makes them unnecessary. Removed pre-release guesswork that the advisory superseded. Source list cut to 32 and renumbered.
v1.4
2026-10-21 12:52
Added the /offline section listing confirmed precautionary shutdowns by public bodies (Finland, Netherlands, Austria, Germany) and companies (Netherlands, Belgium, Germany, Japan), a timeline entry and a pointer in the red box. Fixed source numbering.
v1.3
2026-10-21 11:50
Added a cloud WAF section: Cloudflare's managed rules, nothing yet from AWS or Azure, and draft custom rules for AWS WAF, Azure Application Gateway and Azure Front Door. Removed in v1.5.
v1.2
2026-10-21 11:41
Exploitation reported in the wild before the patch (Patchstack, Cloudflare, Aikido). Added a public-PoC row. Correction: the CVE IDs came from the leak, not PHP's notice. Stop-gap settings downgraded to "reported as insufficient".
v1.1
2026-10-21 09:50
Fact check against the sources: exact times for CERT-EU and Ars Technica, attribution of watchTowr's reproduction claim, Aikido added.
v1.0
2026-10-21 09:15
First version, written before the fix shipped: timeline from the leak to the scheduled release, key facts with confidence levels, interim mitigations and 14 sources.
Next update: when CISA KEV lists the CVEs, compromises or indicators are published, or PHP ships follow-up releases for the regressions.