Severity
CVSS v4.0 9.2, remote code without login
Fixed versions
8.5.12, 8.4.27, 8.3.36, 8.2.35
First attempt observed
17 October, 4 days before the patch
ACN alert AL07/261021
Systemic impact critical (78.46)
On 21 October 2026 the PHP project published four fixed releases for two critical vulnerabilities in the interpreter, CVE-2026-109618 and CVE-2026-109619, nicknamed PHP2Shell. Both score 9.2 out of 10 on the CVSS (Common Vulnerability Scoring System) version 4.0 scale and let a remote attacker, with no credentials, execute code on the server or read the process memory. The coverage of these days talks almost only about websites, WordPress first. The missing point is another one: the flaw is in the runtime, and PHP also runs inside firewall GUIs, in captive portals, in NAS (Network Attached Storage) devices, in PBX systems and in ticketing tools. Whoever has inventoried the websites has done half the job.
What happened between 17 and 21 October
The two flaws stem from the same weak point: the way PHP handles fatal errors, out-of-memory conditions in particular, while processing a request. CVE-2026-109618 interrupts PHP while the request’s internal structures are only partly initialised, and the subsequent cleanup treats invalid data as valid. CVE-2026-109619 leaves references to freed memory in the worker’s global state, which a later request served by the same worker reuses before initialisation resets them. The vulnerable code, according to Wiz Research which discovered the flaws on 19 August and reported them on the 24th, has been there since PHP 5.4, that is since 2012.
Coordinated disclosure did not hold. On 17 October Amazon’s honeypots record a first exploitation attempt, from a commercial anonymisation network. On 20 October the technical details leak in public and the PHP project announces an out-of-band release for the next day. On 21 October at 14:00 UTC PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 come out; Cloudflare had already enabled the protections of its WAF (Web Application Firewall) at 03:02 UTC and states it observed attack traffic against its customers. The same afternoon the Italian ACN (National Cybersecurity Agency) publishes alert AL07/261021/CSIRT-ITA with systemic impact “High (65.64)”, raised to “Critical (78.46)” on 23 October after evidence of working proof-of-concept code, CERT-EU advisory 2026-018, and the SANS Internet Storm Center raises its alert level to yellow. As of 25 October no vendor reports confirmed compromises of its products and the two CVEs are not yet in CISA’s KEV catalogue, but several security vendors report ongoing exploitation attempts, concentrated on the session upload progress path, and the ACN has published a set of indicators of compromise.
For PHP 8.1 and earlier the project publishes no fixes: the ACN says so explicitly. The PHP security team has however made minimal source backports available for 7.4, 8.0 and 8.1, and Linux distributions and LTS vendors, notified in advance, are releasing their own packages. One detail for the calendar: PHP 8.2 leaves support on 31 December 2026.
On 23 October the PHP project added an informational advisory on a third flaw, CVE-2026-115560, which concerns only a rare combination: applications that set the session serialize handler to php_binary or php_serialize and switch it to php at runtime with ini_set() before session_start(), with upload progress still enabled. No out-of-band release: the fix will come with the next regular release, and the full advisory with it. The advice is to keep session.upload_progress.enabled=0 until then, even after installing the 21 October patch.
Why updating WordPress is not enough
The malicious request is processed by PHP before the application code runs. That is why updating WordPress, the theme or the plugins changes nothing: the interpreter running the site must be updated, and on shared hosting you have to ask the hosting provider. Wiz demonstrated unauthenticated code execution on the latest official images of WordPress, Drupal and Joomla, but points out that even a “Hello World” page on a vulnerable PHP can be attacked. The highest risk, according to php.net, is on Apache with mod_php, where the attack succeeds with default settings; PHP-FPM, php-cgi, FrankenPHP and LiteSpeed are affected all the same.
There is a second, less quoted effect: CVE-2026-109618 also allows reading the PHP process memory without reaching code execution. Passwords, session tokens, API keys and, according to Sansec, even TLS private keys pass through that memory. Whoever finds out they were exposed does not close the incident with the patch: they have to rotate the secrets.
It is the same conclusion we had reached in the article on WordPress vulnerabilities: the problem is not the single plugin, it is having an interpreter listening on the Internet to serve pages that do not change. A static site, generated at build time and delivered by a CDN, has no PHP, no workers, nothing to update this week. Our site is built that way, and so is the managed hosting we offer on Azure Static Web Apps.
PHP does not run only in websites: firewalls, NAS, PBX, ITSM
Many network appliances and many business applications have a web interface written in PHP. The vendor updates it with the firmware, so the PHP version is not chosen by the company and often nobody knows which one it is. In the days after the patch the vendors’ advisories came in waves; as of 25 October they describe four different situations.
Open-source firewalls. pfSense and OPNsense have their GUI and captive portal in PHP. Both published fixed packages on 21 October: OPNsense with a hotfix for the Community and the Business edition, pfSense with new PHP packages for the supported versions, to be installed from the shell and not from the GUI. The captive portal is the worst case: it is a PHP service designed to answer untrusted clients, in hotels, shops, waiting rooms and guest networks, and it must be restarted after the update. The GUI, by contrast, answers only on the LAN by default: if that is the case, it remains a matter of hygiene, not an emergency.
Commercial firewalls and appliances. Some large vendors have declared the web management interface of their appliances vulnerable and are publishing the fixes branch by branch between 25 and 30 October, with the first ones already available; others have closed most of their review with few vulnerable products, such as collaboration gateways and industrial wireless, and a long list of unaffected products, firewalls and switches included. In both cases the recommendation is the same: management reachable only from trusted internal addresses and, while waiting for the fix, no management port on the Internet.
NAS. The operating systems of some NAS devices use PHP in their web components and applications; on 24 October one very widespread vendor published the fixed firmware for its main operating systems, with builds dated 23 October, while some apps and the video surveillance systems are still being fixed; until the update its guidance remains to take the NAS off the Internet, use the VPN and stop unneeded services. Other NAS platforms do not use PHP in the system, but the installed apps do, such as a file cloud or a CMS: there you update the app, not the firmware.
PBX, ITSM and the rest. Open-source PBX systems have their administration GUI in PHP: recent versions on a supported distribution get the fixed PHP from the distribution’s repositories, old ones run on unsupported PHP branches and stay exposed. The same goes for ticketing systems, wikis, monitoring frontends, webmail and hosting panels: it is not the application that needs updating, it is the PHP underneath, with the distribution’s or vendor’s package; in cloud versions managed by the vendor, the vendor takes care of it.
For every appliance not covered by an advisory there is one question to ask the vendor: does the GUI run PHP, which version, and from where is it reachable?
What to do in your company, in this order
- Inventory of where PHP runs. Sites and portals, including the “forgotten” ones; firewall and router GUIs; captive portals; NAS and video surveillance; PBX; ITSM, wiki, monitoring, webmail; containers and apps installed on the NAS. For each one: the PHP version serving the requests (not the command-line one, which can differ) and from which networks it can be reached.
- Close what is exposed. No management interface and no captive portal directly on the Internet. Remote access goes through a VPN or a Zero Trust access, and the GUI answers only trusted networks and addresses. If a vulnerable service can be neither updated nor protected, the ACN recommends considering taking it offline until the update.
- Update and restart the workers. PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or the distribution or vendor package that backports the fixes. The new binary takes effect only after restarting PHP-FPM or the web server, and the captive portal where there is one. Then verify the version from the web side, not only from the shell.
- Temporary mitigations, only if there is no patch. The settings indicated by php.net reduce exposure to specific paths and do not make an installation safe: memory_limit with no limit enforced by the administrator, a low post_max_size, session.upload_progress.enabled disabled with a worker restart, fatal_error_backtraces disabled on PHP 8.5. Do not use RLIMIT_AS or RLIMIT_DATA, which trigger the very vulnerable path. Since 23 October PHP recommends keeping session.upload_progress.enabled disabled even after the patch, until the next regular release, because of the third flaw CVE-2026-115560.
- Rotate the secrets, if there was exposure. Where a vulnerable service stayed reachable between 17 and 21 October, treat application passwords, session tokens, API keys and certificates held in memory as potentially read, and rotate them.
- Plan the exit from old branches. PHP 7.4, 8.0 and 8.1 will get no official releases; PHP 8.2 leaves support on 31 December 2026. An application stuck on an old branch is a problem to solve in the next two months, not at the next emergency.
What to look for in the logs, even if you have already updated
The ACN alert asks for a retrospective analysis of the logs “regardless of the application of the updates”, and the reason is the timeline: four days of attempts before the patch, which nobody was watching. The window to cover starts at least on 17 October. The signals converge across the ACN, which on 23 October added a set of indicators of compromise to its alert, Wiz, Amazon and the PHP advisories:
- Anomalous multipart POST requests: very long filenames, many headers per part, sizes close to the limit, PHP_SESSION_UPLOAD_PROGRESS field present.
- Recurring out-of-memory errors, repeated HTTP 500 responses, “Maximum execution time exceeded”, unexpected restarts or churn of the PHP workers.
- Anomalous PHPSESSID response cookies, too large or malformed: that is the trace of the memory disclosure.
- On the system: unexpected processes started by the web worker, modified application files, new cron jobs or accounts, unexplained outbound connections.
One warning that comes from the PHP advisories and is worth more than the whole list: the absence of errors in the logs is not proof of safety. Historical logs may have been collected without deprecations, and the failure can happen before PHP writes the message. Whoever has to sign a report should know it before signing. If something does not add up, it is time for incident response, not for another grep.
AI found the flaw: what changes from here on
The flaw had been in PHP’s code since 2004, when Stefan Esser described the first attack on the memory limit; it resurfaced in a 2020 bug report and in the 2024 external audit, funded by Germany’s Sovereign Tech Agency, without anyone managing to prove it could be exploited. In the summer of 2026 three independent teams, all helped by artificial intelligence models, turned it into code execution within a few weeks: Calif from 1 August inside OpenAI’s Patch the Planet programme, OpenAI on its own, Wiz from 19 August, with the reports to PHP between 11 and 24 August. The PHP Foundation says the fix had stalled for months on hard trade-offs and calls it “a structural failure”: without the three reports it would not have become the top priority.
The credit, however, does not go to “AI alone”. Calif’s researcher writes that he used no special models or tools: the model found the pieces, the bypass of the request size limit and the wrong order of two instructions in the code, but the right question came from someone who knew the history of PHP vulnerabilities; once the pattern was understood, he turned it into a reusable “skill” that found the second variant. Wiz says a single researcher did in a week what would have taken a world-class team months. That is the step change, and the numbers confirm it:
- Google Threat Intelligence Group, 30 September: vulnerabilities disclosed per month doubled, from 5,045 in January 2026 to 10,740 in August; 141 were exploited in eight months against 127 in the whole of 2025.
- CISA, 22 September: a projection of 96,000 CVEs in 2026 and submissions to the NVD database up 263%, with artificial intelligence named as the source of the pressure; the CVE Program announces a “Quality Era” to cope with the volume.
- Anthropic, 8 October: over 29,000 candidate vulnerabilities found in six months of scanning open-source software, about 6,000 verified by hand; of 97 critical or high findings across 48 projects, 85 valid, 11 duplicates, only one false.
- PHP Foundation, 21 October: 15 CVEs published since 1 July and over 100 reports discarded as invalid, duplicate or not reproducible; OpenAI expects similar findings to “increase sharply in the coming months”.
The bottleneck has moved. Finding flaws is cheap; verifying them, discarding duplicates and deciding the right fix without breaking compatibility costs as much as before, and people do it. The PHP Foundation puts it bluntly: tools find bugs faster than ever, for defenders and attackers alike, but they cannot choose the fix for a twenty-year-old design decision, and “today there are too few” engineers who know the code in depth. The same goes for those who receive the reports: Anthropic now hands maintainers even unverified reports, because maintainers ask for them, and the false-positive rate on severe findings is low but not zero.
For a company the picture is this: more patches, more often, with less time between the release of a fix and the exploit, because AI speeds up attackers too. Google observes that the growth in exploitation comes mostly from the rapid weaponisation of already known flaws, not from new zero-days, and that 14% of the vulnerabilities exploited in 2026 concern network and security appliances, with exposed management interfaces as the favourite target. At the same time only 0.23% of disclosed vulnerabilities are actually exploited: one in 431. The practical consequences are three: reduce the exposed surfaces first of all, prioritise by real risk and not by the volume of reports, choose architectures with fewer runtimes to update. That is the point of the next section.
The structural point: fewer exposed runtimes, fewer emergencies
PHP2Shell is not the first case and will not be the last: Heartbleed in 2014 and Log4Shell in 2021 had the same shape, a component shared by everyone with a flaw nobody saw. What a company can decide is not whether the next one will come, but how much surface it offers. Three choices that reduce the surface permanently: a static site instead of a CMS with an interpreter, which takes PHP out of the perimeter; a cloud-managed firewall with the GUI never exposed, where administration goes through a controller and not through a port open on the WAN; a Zero Trust access instead of published management ports. Downstream, a periodic vulnerability assessment from the outside tells which interfaces really answer on the Internet, which is often different from what was believed.
Frequently asked questions
The questions we are getting from those who manage websites, firewalls and NAS.
No, if the site is served by PHP. The flaw is in the interpreter, not in the application: Wiz showed that even a “Hello World” page on a vulnerable version can be attacked, because the malicious request is processed before the site’s code runs. What matters is the PHP version serving the requests, not the CMS. If the site is static, that is pages already generated and served by a CDN with no interpreter, there is nothing to update for this vulnerability.
You closed the future window, not the past one. Amazon recorded an exploitation attempt in its honeypots on 17 October, four days before the patch, and the technical details leaked on the 20th. The Italian ACN asks even those who have already updated to run retrospective threat hunting on their logs. If the memory disclosure path was exercised, passwords, tokens and keys may have leaked: in that case they must be rotated. Finally, PHP 8.2 leaves support on 31 December 2026: whoever stopped at 8.2.35 bought little more than two months.
The GUI of both is written in PHP, so yes, if the GUI or the captive portal can be reached from untrusted networks. By default the pfSense GUI answers only on the LAN and the captive portal is off, but the captive portal, when enabled, is by definition exposed to untrusted clients. OPNsense released hotfix 26.7.7 (Community) and 26.4.2p3 (Business) on 21 October; Netgate published the fixed PHP packages for pfSense Plus 26.07 and 26.03.1 and for pfSense CE 2.9.0 and 2.8.1, but on pfSense the update is done from the shell, not from the GUI.
Take it off the Internet. It is the common recommendation of the vendor advisories published on 21 and 22 October: no port forwarding and UPnP on the router, remote access only through a VPN, management ports open only to trusted networks, unneeded PHP services stopped, and a check of the logs for unexpected access. A management GUI exposed to the Internet was a mistake before PHP2Shell too.
The PHP project no longer publishes releases for those branches, and the Italian ACN writes that no official patch will come for PHP 8.1 and earlier. There are however three routes: the packages of Linux distributions and LTS vendors, which received the fixes in advance and in some cases backport them to older versions; the minimal source backports the PHP security team published for 7.4, 8.0 and 8.1, to be compiled yourself; migration to a supported branch, which is the only lasting solution. In the meantime that installation must not be reachable from the Internet.
No, and php.net says so: “there are no complete mitigations, updating is the only safe choice”. The suggested settings reduce exposure to specific paths: memory_limit with no limit enforced by the administrator, a low post_max_size (8M without uploads, 32M with uploads), session.upload_progress.enabled disabled with a restart of every worker, fatal_error_backtraces disabled on PHP 8.5. They are to be applied only while waiting for the fixed package, and without using RLIMIT_AS or RLIMIT_DATA, which trigger the very vulnerable path. Since 23 October PHP recommends leaving session.upload_progress.enabled disabled even after the patch, until the next regular release, because of the third flaw CVE-2026-115560, which concerns a rare configuration.
Yes, and it is already happening: vulnerabilities disclosed per month doubled between January and August 2026 according to Google, CISA projects 96,000 CVEs in 2026 and the PHP Foundation receives far more reports than before. The work does not change, the pace does: the time between patch and exploit shrinks because AI also helps attackers weaponise known flaws. For an SME three things matter: having an inventory of what is exposed and reducing it; applying patches at a regular cadence with priorities based on real risk, given that only 0.23% of disclosed vulnerabilities are exploited; preferring architectures with fewer components to update, such as a static site instead of a CMS with an interpreter.
Sources
- PHP.net, “Security advisory: Critical remote code execution vulnerabilities, update now”, 21 October 2026; advisories GHSA-w8hw-w9fx-j79w (CVE-2026-109618) and GHSA-6wmf-4rv5-p3rp (CVE-2026-109619)
- ACN / CSIRT Italia, alert AL07/261021/CSIRT-ITA “PHP2Shell: sanate vulnerabilità critiche in PHP”, 21 October 2026, version 1.5 of 23 October 2026 (critical systemic impact, working PoCs, indicators of compromise)
- CERT-EU, Security Advisory 2026-018, 21 October 2026
- The PHP Foundation, “Today’s PHP Security Release, and How We’re Strengthening PHP Security”, 21 October 2026
- Calif, “PHP2Shell: A tale of two PHP remote vulnerabilities”, 21 October 2026
- OpenAI, “Patch the Planet: global response coordination as agents uncover critical vulnerabilities”, 21 October 2026
- Anthropic, “An opt-in vulnerability-finding service for open-source software”, 8 October 2026
- Google Threat Intelligence Group, “Vulnerability Discovery and Exploitation Trends in the AI Era”, 30 September 2026
- CISA, “CVE Program: Establishing a Quality Era Framework”, 22 September 2026
- Wiz Research, “PHP2Shell: AI uncovers critical RCE vulnerabilities affecting 70% of the Internet”, 21 October 2026
- SANS Internet Storm Center, diary 33440 “Critical PHP Vulnerability (CVE-2026-109618, CVE-2026-109619)”, 21 October 2026
- Netgate, “Critical PHP Security Update”, message from the pfSense team, 21 October 2026
- OPNsense, announcement “PHP2Shell (CVE-2026-109618 en CVE-2026-109619): OPNsense 26.7.7 / 26.4.2p3”, 21 October 2026
- Palo Alto Networks, Security Advisory CVE-2026-109618, 21 October 2026, updated 25 October 2026 with fixed versions
- Cisco, Security Advisory cisco-sa-php-october26-Jj384Daq, version 1.6, 23 October 2026
- QNAP, Security Advisory QSA-26-18, version 1.1 of 24 October 2026 (fixed firmware), and statement of 22 October 2026
- PHP.net, “Informational advisory: Session upload progress” (CVE-2026-115560), 23 October 2026
- CISA, Known Exploited Vulnerabilities Catalog, version 2026.10.23 (CVEs not listed)
- Sucuri, “Critical PHP Security Update: Two RCE Flaws”, 21 October 2026; SecurityWeek, “PHP2Shell patches land as first exploitation attempts hit sensors”, October 2026
- iXsystems, TrueNAS impact statement “PHP2Shell (CVE-2026-109618, CVE-2026-109619)”
- FreePBX Community Forums, “PHP CVE Patching”, 21–22 October 2026; GLPI Project, php2shell notice, 21 October 2026
- NCSC-NL, php2shell repository, list of software with a PHP dependency
- AWS Security Blog, “Amazon threat intelligence identifies PHP2Shell exploitation prior to public disclosure in MadPot”, 21 October 2026; Cloudflare Blog, 21 October 2026; Sansec, “PHP2Shell”, 21 October 2026