← All posts

PHP2Shell, CVE-2026-109618 and CVE-2026-109619 PHP RCE

Théotime Quéré

Co-founder, CentralCSP ·

Last update:

PHP2Shell is the nickname of CVE-2026-109618 and CVE-2026-109619, two critical flaws in PHP itself that can let an attacker run code on a web server without an account. Details leaked the day before the fix shipped on 21 October 2026, and governments and newsrooms took their sites offline as a precaution. The flaws are now exploited in the wild: CISA added both to its Known Exploited Vulnerabilities catalog on 26 October, and attackers have since used them as the way in for wider intrusions.

PHP then shipped another security release on 19 November, with more critical fixes. So the versions to run today are newer than the October ones. PHP2Shell was also the first of a run of named critical bugs this autumn; our overview of the 2Shell vulnerabilities of 2026 puts them side by side.

The first question most teams have is simple: am I using PHP, and where? If you run more than a handful of sites, the answer is often "somewhere, probably". PHP often arrives through an application (WordPress, Drupal, Magento, Laravel, MediaWiki and many more), so the check below looks for those too.

The short answer, as of 29 November 2026:

  • PHP 8.2 to 8.5: update to 8.2.36, 8.3.37, 8.4.28 or 8.5.13, released 19 November. They contain the PHP2Shell fixes and the November ones. PHP 8.6.0, the new major version released the same day, carries the November fixes too.
  • Already on 8.2.35, 8.3.36, 8.4.27 or 8.5.12: you are protected from PHP2Shell, but not from the November flaws. Update again.
  • PHP 8.1 or older: no official release. Apply your vendor's backported package or the PHP source backport, or isolate the site, and plan the move to a supported branch.
  • Managed hosting (WP Engine, Kinsta, WordPress.com and similar): the host runs and updates PHP, not you. Check its status page to confirm the fixes are applied.

This post explains what PHP2Shell is, what has happened since the leak, how to tell whether your sites run PHP, and what to do now. It covers the what and the why, with no exploitation details.

Latest news on PHP2Shell, as of 29 November 2026

  • Exploitation is confirmed. watchTowr says its honeypots observed exploitation of both CVEs from 21 October (watchTowr). Adel Karimi, detection and response lead at Perplexity, confirmed remote code execution on honeypots running Apache with mod_php and PHP 8.4.26 (BleepingComputer). CISA added both CVEs to its catalog on 26 October and gave US federal agencies until Thursday 29 October to secure their systems.
  • Attacks started before the disclosure. Amazon's MadPot honeypots recorded an attempt against CVE-2026-109618 on 17 October, four days before the release. Amazon says it is unclear how the attacker got the information, and whether the attempt would have worked (Censys summary of the Amazon findings).
  • PHP2Shell is now a way into networks, not only websites. According to Cybersecurity Dive, Check Point reported attackers using PHP2Shell against unpatched Check Point Security Gateways, then CVE-2026-123039 to escalate privileges and plant PHP webshells. A first wave, from 30 October, targeted Israeli organisations and deployed a wiper, destroy_v6, on a VMware ESXi host; a second wave, from 2 November, hit organisations worldwide. Separately, the Israeli firm Dream reported PHP2Shell chained with a Linux kernel flaw, CVE-2026-46300, against Palo Alto Networks PAN-OS firewalls, on about 25 servers. Check Point asks customers to install its November jumbo hotfix, which also includes a PHP2Shell fix, on all management servers and gateways. The lesson for defenders: PHP also runs inside network appliances, so check the vendor advisories for your firewalls and gateways too.
  • A new PHP security release on 19 November. PHP shipped 8.2.36, 8.3.37, 8.4.28 and 8.5.13. Its advance notice rated the highest severity critical, and said the critical issues need a non-default configuration or an uncommon setup: less urgent than PHP2Shell for most sites, but still worth the update. The PHP 8.5.13 changelog lists 18 CVEs, among them several remote code execution flaws in the core and in the session and date extensions, and a request smuggling flaw in PHP-FPM (CVE-2026-129289). It also fixes CVE-2026-115560, the session upload progress issue PHP announced on 23 October.
  • The leak, explained. The PHP Foundation says the coordinated disclosure worked until two days before the target date, when CVE identifiers started circulating. It calls the months-long delay in fixing the bug "a structural failure", and plans to involve its leadership sooner and resolve complex fixes faster.

What is PHP2Shell, CVE-2026-109618 and CVE-2026-109619

They are two vulnerabilities in the PHP interpreter, not in a framework or a plugin. According to the PHP security advisory, both can allow unauthenticated remote code execution (RCE): an attacker who can send a request to a vulnerable PHP server may be able to run code on it with the web worker's privileges, without an account.

  • CVE-2026-109618, "RCE via OOM corruption" (GHSA-w8hw-w9fx-j79w). An out-of-memory error can stop PHP while request data is only partly set up, and the cleanup that follows then works on invalid data.
  • CVE-2026-109619, "RCE via stale global state" (GHSA-6wmf-4rv5-p3rp). Internal state from one request can outlive its memory, and the next request handled by the same worker can use it.
CVEsCVE-2026-109618, CVE-2026-109619
ComponentPHP core (the interpreter itself)
TypeRemote code execution, no authentication required
SeverityCritical, 9.2 under CVSS 4.0, as rated by the PHP security team
NicknamePHP2Shell, used by researchers and the press, not by PHP
At riskEvery PHP installation serving web requests: PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed. PHP rates mod_php highest
AffectedPHP below 8.2.35, 8.3.36, 8.4.27 and 8.5.12
First fixed8.2.35, 8.3.36, 8.4.27 and 8.5.12, released 21 October 2026
Versions to run now8.2.36, 8.3.37, 8.4.28 or 8.5.13, released 19 November 2026
ExploitedYes, in CISA's Known Exploited Vulnerabilities catalog since 26 October 2026

Because the bug sits in PHP and not in application code, no code change in WordPress, Drupal or Laravel closes it. PHP lists a few configuration changes that reduce exposure to specific attack paths, and states that they do not make an installation safe: updating PHP is the only complete fix.

PHP2Shell timeline, from discovery to exploitation

Date (2026)What happened
11 AugustSecurity firm Calif finds the bug class; Wiz and OpenAI find it independently in the following weeks (TechTarget). The release is planned for 22 October.
17 OctoberAmazon's MadPot honeypots record a first exploitation attempt against CVE-2026-109618 (Censys).
20 OctoberFrom about 15:00 UTC, the CVE identifiers spread on online forums, Hacker News and social media (Tenable, PHP Foundation). PHP publishes an advance notice that evening and moves the release up one day, from 22 to 21 October (PHP Foundation). CERT-EU publishes Security Advisory 2026-018.
21 October, morningSites go offline as a precaution (see below). Chainguard publishes fixed container images at 07:41 UTC, before the official release (TechTarget). Cloudflare says it sees early attacks and deploys WAF rules (Tenable), while Huntress (SecurityWeek) and the Dutch NCSC (NOS) report no exploitation at that point.
21 October, 14:00 UTCPHP releases 8.5.12, 8.4.27, 8.3.36 and 8.2.35 with a security advisory. Linux distributions and long-term support vendors had the patches in advance, and an exploit was demonstrated against Apache with mod_php. watchTowr's honeypots observe exploitation of both CVEs the same day.
23 OctoberPHP publishes an informational advisory on CVE-2026-115560, an "unlikely RCE vector" in session upload progress, and suggests session.upload_progress.enabled=0 until the next release.
26 OctoberCISA adds both CVEs to its Known Exploited Vulnerabilities catalog. PHP ships rebuilt Windows packages (8.5.12-1, 8.4.27-1, 8.3.36-1, 8.2.35-1) for a separate Brotli flaw, Brotli2Shell.
30 OctoberFirst wave of attacks chaining PHP2Shell with a Check Point gateway flaw, against Israeli organisations (Cybersecurity Dive).
2 NovemberSecond, worldwide wave of the same campaign.
18 NovemberPHP announces a critical security release for the next day (PHP).
19 NovemberPHP releases 8.5.13, 8.4.28, 8.3.37 and 8.2.36, which fix CVE-2026-115560 and other critical flaws, and PHP 8.6.0 (changelog).

The scale is what worried defenders: public estimates of internet-exposed PHP hosts on release day ranged from 1.3 million (Silas Cutler) to 1.9 million (a Shodan search by Henk Poley), as compiled by Tenable. With wider detection, Censys counted 4,184,559 hosts running PHP on 23 October.

Lights out, the sites that went dark before the patch

Many organisations did not wait for 14:00 UTC. CERT-EU told those unable to patch right away to consider isolating internet-facing applications, and several governments, media groups and platforms switched their sites off as a precaution. Going offline does not mean a site was hacked: it closes the door until the fix is installed.

Netherlands. According to NOS, these went offline as a precaution:

  • The National Cyber Security Centre (NCSC), the national cybersecurity agency itself
  • MijnOverheid.nl and the DigiD website, the citizen portal and the government login service
  • The Tweede Kamer, the lower house of parliament
  • The Autoriteit Persoonsgegevens, the data protection authority
  • Notubiz, the meeting platform used by about 100 municipalities
  • ANP, the national news agency, which took its systems offline

NOS also lists RTL Nieuws and the tech site Tweakers among those affected. According to the NOS liveblog, RTL took its website and app offline to carry out an urgent security update, and both RTL and Tweakers were back online once the fix was out.

Belgium. DPG Media suspended several of its Belgian and Dutch sites. Roularta took down the websites of its magazines, including Le Vif and Trends Tendances, and the school platform Smartschool was unreachable. The RTBF adds the official websites of the Flemish Region that run on PHP, taken offline at the request of Minister-President Matthias Diependaele, the Flemish Parliament portal, the federal police websites and the information sites of the FPS Finance.

Finland. Valtori, the state IT provider, took the government's public web services offline as a precaution, according to Reuters.

France. Root-Me, the hacking training platform, replaced its whole site with a maintenance notice. It says the platform is offline as a precaution, after the disclosure of critical PHP vulnerabilities, while the team assesses the impact on its infrastructure and applies the fixes.

Root-Me maintenance page, in French and English, explaining that the platform is temporarily offline after the disclosure of critical PHP vulnerabilities

The YesWeHack login page, the bug bounty platform, showed an "Under maintenance" page the same afternoon. YesWeHack had not stated a reason when we checked, so the link to PHP is ours, not theirs.

The list kept growing through the day. The NOS liveblog adds the Schiphol airport app, the Dutch football federation KNVB and the clubs FC Twente, Fortuna Sittard and Willem II, the Unie van Waterschappen, the province of Groningen, six Dutch hospitals including Haaglanden MC and St. Antonius Ziekenhuis, and in Belgium the AZ Monica hospital and all Flemish government websites. Every one of them had to answer the same question first: where do we run PHP?

Which PHP versions are affected and fixed

Both advisories list the same ranges: every PHP version below the October releases is affected by PHP2Shell, and only the supported branches get an official release. Aim for the "Version to run now" column today, since the 19 November releases add more critical fixes on top.

BranchStatusPHP2Shell fixed inVersion to run nowSecurity support until
8.5Active support8.5.128.5.1331 Dec 2029
8.4Active support8.4.278.4.2831 Dec 2028
8.3Security fixes only8.3.368.3.3731 Dec 2027
8.2Security fixes only8.2.358.2.3631 Dec 2026
8.1 and olderEnd of lifeNo official releaseUpgrade to a supported branchEnded

Source downloads and Windows builds are on the PHP downloads page. Most servers get PHP from a distribution or a container image, so update through your package manager or rebuild on a patched base image.

PHP 8.6.0, the new major version released on 19 November, is supported until 31 December 2030 and its changelog lists the November security fixes. It is a major upgrade, so test your applications before you move.

PHP 8.2 is fixed, but its security support ends on 31 December 2026, a month from now. If you patch an 8.2 server today, plan its move to 8.4 or 8.5 now.

Is PHP 8.1 vulnerable? No official release for 8.1 and older

Yes. The advisories mark every version below the fixed releases as affected, and Sansec says the bugs reach back to PHP 5.4. PHP 8.1 reached end of life on 31 December 2025, so there is no PHP 8.1 release with the fix.

Given the severity, the PHP security team made an exception and published minimal source backports for PHP 7.4, PHP 8.0 and PHP 8.1, for people who build PHP from source or have no long-term support vendor. Some distributions and LTS vendors ship their own backported packages, so check with yours. For PHP 7.3 and older, nothing was published: treat those servers as exposed until they are upgraded. These backports cover the two PHP2Shell CVEs; the flaws fixed on 19 November only have official fixes in the supported branches, which is one more reason to leave 8.1 behind.

Am I using PHP? Check if a website uses PHP

You may run PHP without ever choosing it. Most PHP on the web arrives through an application: a CMS, a shop, a forum, a wiki, an admin tool. If a site is built on one of these, the server runs PHP.

To check one site from the outside, paste its URL into the Technology Checker. It reports PHP directly when the server reveals it, and it reports the applications that imply PHP, such as WordPress or Magento, even when PHP itself stays hidden. When a version can be read, it shows whether that version is end of life and which known CVEs affect it.

Technology Checker result for an example site running PHP 8.1.27 (end of life, critical CVE), WordPress, WooCommerce, jQuery, Yoast SEO and nginx
An illustrative result on example data: PHP 8.1.27 is flagged as end of life, with a critical known CVE.
Check a site for free

Two signs give PHP away in a response: an X-Powered-By: PHP/8.1.27 header, and a PHPSESSID cookie. Many sites hide both, which is why the checker also looks for the applications. That header is an information leak in its own right, and a version banner like PHP/8.1 tells an attacker no patch is coming. For the general method of reading a site's stack, see What technology is this website using, and is any of it outdated.

From the inside, on a server you control, check the PHP that serves the site, not only the command-line one, since they can differ:

php -v          # command-line PHP
php-fpm8.3 -v   # PHP-FPM, name depends on your version and distribution
dpkg -l 'php*'  # Debian and Ubuntu packages
rpm -qa 'php*'  # Red Hat, Rocky, Alma packages

Distribution packages with a backported fix keep the old upstream version string, so read the package changelog rather than the version number alone. If you use a hosting control panel, it shows the PHP version the site runs on.

Is WordPress, Drupal or Magento affected? Apps that run on PHP

Yes, when the PHP underneath them is affected. Each of these runs on PHP, so if the checker finds one on your site, the site runs PHP, even when the PHP version itself is hidden. Here are the best known, grouped by category.

CMS and site builders. WordPress, Drupal, Joomla, TYPO3, Craft CMS, Concrete CMS, Contao, MODX, ProcessWire, Grav, Kirby, Statamic, Silverstripe, Backdrop CMS, October CMS, Winter CMS, Pimcore, Ibexa DXP, ExpressionEngine, SPIP, 1C-Bitrix.

E-commerce. Magento, PrestaShop, Shopware, OpenCart, osCommerce, CS-Cart, X-Cart, OXID eShop, Sylius, Thelia, Drupal Commerce, VirtueMart, Craft Commerce. WooCommerce runs on WordPress, so it runs on PHP too.

Frameworks. Laravel, Symfony, CodeIgniter, CakePHP, Yii, Nette, ThinkPHP, Livewire (Laravel), Neos Flow.

Forums, wikis and blogs. MediaWiki, DokuWiki, phpBB, MyBB, vBulletin, XenForo, Invision Community, Flarum, Vanilla Forums, Discuz!, Dotclear.

Business and admin tools. Moodle, Nextcloud, ownCloud, phpMyAdmin, Adminer, Roundcube, osTicket, GLPI, Zabbix, BookStack.

Managed WordPress hosts. WP Engine, Kinsta, WordPress.com and WordPress VIP. A site on these platforms runs PHP, but the host manages the PHP runtime, so check its status page rather than your server. For WordPress core flaws of the year, see WordPress vulnerabilities in 2026.

Am I vulnerable to the PHP RCE?

If a public site runs PHP, it is in scope until you know its PHP version and patch it. The checks, in order:

  1. Find every site that runs PHP. Start from your list of domains and subdomains, check each one as described above, and look for PHP or any technology in the list above. Do not forget staging sites, old marketing microsites, admin panels and the WordPress blog nobody owns anymore.
  2. Read the PHP version. On the server with the commands above, in the hosting panel, or in the checker result when the server exposes it.
  3. Compare it with the "version to run now" column in the table above. For a distribution package, check the vendor advisory instead.

A version at or above the first fixed release of its branch rules PHP2Shell out, and a version at or above the "version to run now" column also covers the November fixes. A version below the first fixed release is exposed until it is patched, whatever application runs on top.

What to do now

Our recommendations, most urgent first:

  1. Take offline any public site you cannot patch today. That means PHP 8.1 and older, unless you apply your vendor's backported package or build from the PHP source backport, and any supported server you cannot update right away. Put the site behind authentication, restrict it to internal IPs, or switch it off until it runs a fixed version, and plan to move end-of-life servers to a supported branch. CERT-EU recommends isolating internet-facing applications from public networks until a fix can be applied.
  2. Patch now. For PHP 8.2 to 8.5, update to 8.2.36, 8.3.37, 8.4.28 or 8.5.13, through your distribution packages, your container base image, or your hosting provider. If you stopped at the October releases, update again. Container images and CI runners count: rebuild them, do not only patch the hosts. Appliances count too: check your firewall and gateway vendors' advisories.
  3. Put a well-configured WAF in front of your PHP applications. Cloudflare deployed rules for the known attack vectors, including on its free plan, and calls them a stopgap (Tenable). A WAF buys time and blocks known payloads, but it does not fix PHP, and it only protects traffic that actually goes through it. Check that your origin servers are not reachable directly.
  4. Monitor your servers for unusual behaviour. Watch for new or modified .php files in web roots, unexpected processes spawned by the PHP or web server user, outbound connections from web servers, new admin accounts in your applications, and spikes in errors. Aikido advises checking for compromise after patching: unusual multipart requests followed by memory-limit errors or repeated HTTP 500 responses, oversized or malformed PHPSESSID cookies, web shells, unexpected files, new admin users, modified PHP files, unexpected child processes and odd outbound connections. If you suspect a compromise, rotate the database credentials and API keys on the affected systems.

Keep an inventory before the next one

October's question, "do we run PHP, and which version?", comes back with every critical CVE, and PHP asked it again a month later with the 19 November release. It was WordPress and Next.js earlier this year, then PHP, then a string of other named bugs, from Brotli2Shell the same day to Java4Shell and NGINX2Root (all listed in the 2Shell overview). The applications on top of PHP have their own flaws too, such as the exploited Drupal installer flaw of November. A one-off check only tells you about one URL, on one day.

A client-side script inventory does not detect a server RCE like PHP2Shell: what helps is a list of where you run PHP and which version, kept up to date, with the 2Shell list for the fixed versions of each named bug.

FAQ

What is PHP2Shell?

PHP2Shell is the nickname researchers and the press gave to CVE-2026-109618 and CVE-2026-109619, the two critical PHP remote code execution flaws fixed on 21 October 2026, a day after their identifiers leaked. It is not an official PHP name.

Is PHP 8.1 affected?

Yes, and there is no official 8.1 release with the fix: see Is PHP 8.1 vulnerable? No official release for 8.1 and older.

Which PHP version should I run now?

As of 29 November 2026: 8.2.36, 8.3.37, 8.4.28 or 8.5.13, released on 19 November. They include the October PHP2Shell fixes and the November security fixes. PHP 8.6.0 is the new major version, released the same day.

Is PHP 8.2 fixed?

Yes, PHP2Shell is fixed from PHP 8.2.35, and the version to run is now 8.2.36. Its security support ends on 31 December 2026, so plan the move to 8.4 or 8.5.

Does disabling session.upload_progress protect against PHP2Shell?

Only partly. PHP lists session.upload_progress.enabled=0 among the measures that reduce exposure if you cannot update right away: it blocks the confirmed paths for CVE-2026-109619 but not other variants, and does nothing for CVE-2026-109618. PHP states that only an update is a complete solution. On 23 October, PHP also advised that setting as a stopgap for a separate and unlikely RCE path, CVE-2026-115560, in applications that switch session.serialize_handler at runtime. That flaw is fixed in the 19 November releases, so once you run them the setting is no longer needed for it.

Is PHP2Shell being exploited in the wild?

Yes. On 21 October, reports differed: Cloudflare said it was seeing early attacks, while Huntress and the Dutch NCSC reported no confirmed exploitation at that point. Since then, watchTowr's honeypots observed exploitation of both CVEs from 21 October, Perplexity's honeypots recorded successful remote code execution, and CISA added both CVEs to its Known Exploited Vulnerabilities catalog on 26 October. Attackers have also used PHP2Shell as the entry point into Check Point gateways, from 30 October, and into Palo Alto Networks firewalls, according to Check Point and the Israeli firm Dream. Treat any unpatched, internet-facing PHP server as a target, and check patched ones for signs of compromise.

Is WordPress affected by PHP2Shell?

A WordPress site is exposed when the PHP version on its server is affected. WordPress.org says no WordPress update is required or planned, because the flaws are in PHP. To see the PHP version a site runs, go to Tools, Site Health, Info, Server in the WordPress admin. On managed WordPress hosting, the host manages PHP, so check its status page.

Does updating Drupal, Magento or Laravel fix it?

No. The flaws are in PHP itself, so updating the application does not change the PHP interpreter running it. You need to update PHP.

How do I know if a website uses PHP?

Look for an X-Powered-By: PHP header or a PHPSESSID cookie, and for the PHP applications (WordPress, Magento, MediaWiki and others) that imply PHP when those are hidden; the check above walks through it. On your own server, run php -v.

Is my site vulnerable if it is behind Cloudflare?

It is less exposed to the known attack vectors, because Cloudflare deployed WAF rules for them, but it is still vulnerable. WAF rules cover known payloads only, and an attacker who reaches the origin server directly bypasses them. Patch PHP anyway.

Sources