PHP2Shell: PHP rushes out fixes for two critical server flaws as Node.js patches 10 bugs
- PHP released emergency fixes on 21 October for two critical flaws nicknamed PHP2Shell, which could let an attacker run code on a web server without logging in.
- Details leaked early, so PHP shipped a day ahead of plan. Amazon, Cloudflare and watchTowr report attack attempts; no confirmed break-ins are public.
- The same day, Node.js fixed 10 flaws, including a Brotli decoder bug (CVE-2026-111497). Fixed versions are 26.12.1, 24.22.1 and 22.23.4.
If you run a small shop, a blog or a booking page, there is a good chance it runs on PHP. On 21 October, PHP released emergency fixes for two critical flaws now called PHP2Shell. In the worst case, they could let a stranger run their own code on your web server without logging in.
The timing made it tense. Details leaked online before the planned disclosure, so PHP shipped the fix a day early, on 21 October. Several security firms now report attack attempts, though no successful break-in has been confirmed in public. On the same day, Node.js, another engine behind many websites and apps, shipped its own batch of fixes.
What PHP2Shell is, and which versions fix it
PHP is the language that runs much of the web, including WordPress, Drupal, Joomla and Laravel sites. The two flaws are CVE-2026-109618, a memory problem when the server runs short of memory, and CVE-2026-109619, where old data carries over from one visitor’s request to the next. Both are rated 9.2 out of 10 for severity.
The fixed versions are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. The US cyber agency CISA “strongly urges” organisations to patch now. CERT-EU, the cyber team for EU institutions, says that if you cannot patch, you should take internet-facing apps offline until you can.
There is a catch for older sites. PHP 8.1 and earlier no longer get official releases, though older versions are likely affected too. Linux and long-term-support vendors such as Ubuntu, AlmaLinux and TuxCare are shipping their own fixed packages, often under different version numbers.
Attack attempts, but no confirmed break-ins yet
Amazon says its decoy servers saw a PHP2Shell attempt on 17 October, four days before the fix, and more attempts from several groups on 21 October. It is not clear whether any would have worked. Cloudflare says it is “seeing early attacks emerging” and has added free firewall rules for all customers. watchTowr saw attempts reach its sensors, but none succeeded.
Not everyone sees the same picture. Huntress found no exploitation on its partners’ systems. CISA had not observed exploitation either, and neither flaw was on its list of known-exploited bugs as of Thursday morning, 22 October.
Node.js fixes 10 flaws, including a Brotli bug
Node.js released fixes for versions 26, 24 and 22, numbered 26.12.1, 24.22.1 and 22.23.4. They close 10 flaws: four rated High, three Medium and three Low. The most serious, CVE-2026-111497, sits in the built-in Brotli decoder, which unpacks compressed data. It could allow remote code execution. Two other High-rated bugs let attackers slip past the check that confirms a secure connection reaches the right site. No attacks on these Node.js bugs have been reported. Older, unsupported Node versions do not get these fixes.
If you own a small website, here is what to do
Your visitors have nothing to do. If you run the site, work through these steps:
- Ask your host today whether your PHP is patched for PHP2Shell. Many hosts patch quietly. Automattic says every site it hosts, including WordPress.com, is protected. Hostinger says its non-VPS customers need no action, while VPS customers must update.
- Updating WordPress will not fix this. The WordPress Security Team says no WordPress update is needed. For PHP2Shell, WordPress sites are made safe by updating PHP underneath.
- Check your PHP version in your hosting panel. If it says 8.1 or older, move to a patched 8.2 or newer, after a backup.
- Running your own server? Install your vendor’s PHP security update, then restart the web server and PHP itself (PHP-FPM).
- Using Node.js? Run
node -vand update to a fixed version, then rebuild containers.
Our reading: a serious PHP vulnerability, handled in the open
On balance, this looks like a serious PHP vulnerability that is being handled well. Defenders shared what they saw quickly, from the attempts Amazon logged to the free rules from Cloudflare. That openness is the good news. The harder truth is the long tail of old PHP versions on forgotten servers. In our view, those sites carry the real risk, because no one is watching them. Like a zero-click attack, this kind of flaw needs no mistake from the victim.
The calm path is simple: confirm with your host, update, and keep a backup. Watch whether CISA adds PHP2Shell to its known-exploited list in the coming days, because that would mean the attempts have turned into real break-ins.
Sources (13): every key fact checked against at least two
- PHP: news archive, 21 October 2026 security releases
- CERT-EU: Security advisory 2026-018
- CISA: Critical vulnerabilities in PHP require immediate patching
- Node.js: October 2026 security releases
- WordPress.com: PHP2Shell vulnerabilities
- Hostinger: Protecting customers from PHP2Shell
- Help Net Security: PHP2Shell vulnerabilities patched
- BleepingComputer: PHP ships emergency patches for critical PHP2Shell flaws
- Tenable: PHP2Shell frequently asked questions
- The Hacker News: Someone tried to exploit PHP2Shell
- SecurityWeek: PHP2Shell patches land as first exploitation attempts hit sensors
- Huntress: PHP2Shell leaked critical PHP vulnerabilities
- The Hacker News: Node.js Brotli decoder bug could allow code execution
Related stories
Google's privacy policy now lets connected Gmail and Photos data shape ads
Google's privacy policy update lets Gmail and Photos data shape ads, but only if you connect them to Search. Here's what changed and how to switch it off.
Spotify Family plan QR code check: what the 7-day rule means for your family
Spotify's Family plan QR code check asks some members to scan in person within 7 days, or face a 12-month bar. Who it affects and what to do.
Arc browser is shutting down on 22 December: how to save your data and move on
The Arc browser is shutting down on 22 December 2026. Here are the key dates, how to export your data, and how to move to Dia or another browser.