New PHP security release · 19 November 2026 · update again

PHP2Shell and phpAfterShell check: is my website vulnerable? PHP security updates, October and November 2026.

On 19 November 2026 the PHP project released PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 (and 8.6.0) to fix phpAfterShell (CVE-2026-126714, CVSS 9.2), a critical flaw in PHP's default session handling. The October releases (8.5.12, 8.4.27, 8.3.36, 8.2.35) fixed PHP2Shell but do not contain this fix, so sites patched in October must update again. PHP 8.1 and older got no official release. Enter your domain and we tell you, in plain words, what the PHP version your site discloses means for you.

Free · Nothing to install · One normal page request, no attack traffic. Last updated

What happened

Critical flaws in PHP itself: patched in October, patched again in November.

PHP runs most of the web, including WordPress, WooCommerce, Shopware, Magento and many agency sites. On 21 October 2026 the PHP project released fixes for two critical vulnerabilities. Both allow unauthenticated remote code execution: an attacker can run their own code on the server with a web request, and for Apache with mod_php a demonstrated exploit works before any application code runs.

The fixed versions are PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36. PHP 8.6.0 also includes the fix. PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fixed PHP2Shell in October but are vulnerable to phpAfterShell. Updating WordPress or plugins does not help: the fix is a PHP update on your server.

Latest fix released
19 November 2026 (phpAfterShell); 21 October 2026 (PHP2Shell)
Minimum fixed versions
PHP 8.5.13, 8.4.28, 8.3.37, 8.2.36 (8.6.0 also includes the fix)
Now vulnerable to phpAfterShell
PHP 8.5.12, 8.4.27, 8.3.36, 8.2.35 and older. The October releases fixed PHP2Shell only
Severity
Critical, CVSS v4.0 9.2 each (PHP2Shell: two flaws, phpAfterShell: one)
Impact
Unauthenticated remote code execution (phpAfterShell: code execution when combined with a second weakness, such as a suitable gadget chain in the app)
CVE IDs
CVE-2026-109618, CVE-2026-109619 (PHP2Shell), CVE-2026-126714 (phpAfterShell)
At risk (PHP2Shell)
Any PHP serving web requests: PHP-FPM, Apache mod_php, php-cgi, FrankenPHP, LiteSpeed. Highest risk: mod_php (demonstrated exploit). PHP-FPM: susceptible, no complete exploit shown yet. LiteSpeed (LSAPI): exploits likely but unvalidated. FrankenPHP: likely susceptible
Affected by phpAfterShell
Setups that use PHP's default files session handler (session.save_handler=files). Sessions in Redis or a database are outside this specific flaw
No official release
PHP 8.1 and older (source patches only for 7.4, 8.0, 8.1)
Exploitation (PHP2Shell)
Disputed (23 October 2026): first attempts observed 17 October 2026 (AWS MadPot), a Cloudflare wave at 07:43 UTC on 21 October, still before the fix (via Sansec), exploitation in the wild (watchTowr); Sansec and Germany's BSI see no successful exploitation at scale. No compromised site publicly confirmed
Exploitation (phpAfterShell)
As of 20 November 2026, no attacks reported by the PHP maintainers or the researchers

Sources: the PHP project's security advisories of 21 October 2026 and 19 November 2026 (GHSA-fm2m-fjf5-v3cp for phpAfterShell). Linux distributions and LTS vendors may carry the fixes under a different version number, so the number alone can't prove a server is fixed.

What to do now

Three steps for site owners.

01

Find out your PHP version

Enter your domain above. If the check can't see the version, we'll find it out for you.

02

Update now

You need PHP 8.5.13, 8.4.28, 8.3.37 or 8.2.36 or newer (8.6.0 also works), even if you already updated in October. On a supported branch this is a normal PHP update. We apply it for you, with a backup and a test, within 24 hours of your approval.

03

On PHP 7, 8.0 or 8.1? Upgrade

The PHP project released no update for these versions, only source patches for people who build PHP themselves. The real solution is moving to a supported version, and we do that for you, including a backup and a plugin check.

Not sure where to start? How to check and update your PHP version in cPanel, Plesk or WordPress
Auf Deutsch: PHP-Sicherheitslücke prüfen und beheben
Also running Node.js? Check for Node2Shell (CVE-2026-111497), fixed the same week
Same month: browsers blocked eMudhra certificates. Check your SSL certificate

After the update

PHP is one door. What else is open?

A critical PHP flaw is the kind of risk that sits under a site for months unnoticed. The Zybee Exposure Report checks what your website shows the internet from the outside: outdated software, exposed keys and files, forgotten admin pages and missing protections. Every finding is reviewed by a person, with a clear order of what to fix first.

  • Outdated components like this PHP release, with the evidence
  • Exposed credentials, backups and configuration files
  • Fix instructions for your developer, host or AI coding tool
$249One-time. Delivered in 12–48 hours. Pay by card when you order, 100% satisfaction guarantee.

Questions

The PHP update, answered.

Something else on your mind?

Ask us
What are CVE-2026-109618 and CVE-2026-109619?

Two critical flaws in PHP itself, the language behind most websites, including WordPress and most online shops. Both allow unauthenticated remote code execution: an attacker can run their own code on the server with a web request. CVE-2026-109618 abuses out-of-memory handling, CVE-2026-109619 stale state between requests. The PHP project rates each 9.2 on the CVSS v4.0 scale. Security researchers call them "PHP2Shell".

What is phpAfterShell (CVE-2026-126714)?

A critical flaw in PHP that the PHP project fixed on 19 November 2026 (CVSS v4.0 9.2 according to the PHP maintainers, advisory GHSA-fm2m-fjf5-v3cp). It sits in PHP's default file session handler and is reached through the unauthenticated upload-progress field, the same entry point as PHP2Shell. If PHP is cut off in the middle of writing a session file, the file can end up with the start of the new session and the end of the old one. When PHP reads it later, it can produce an object chosen by the attacker, and combined with a second weakness, such as a suitable gadget chain in the app, that can lead to code execution. The October update did not close this flaw. The researchers who found it (depthfirst) call it phpAfterShell.

When were the PHP security updates released?

The latest one on Thursday, 19 November 2026 (phpAfterShell). The earlier PHP2Shell update came on Wednesday, 21 October 2026. Details had leaked the day before, and security firms expect attackers to scan for unpatched sites right away, so update today.

Which PHP versions fix the flaws?

To cover both PHP2Shell and phpAfterShell you need PHP 8.5.13, 8.4.28, 8.3.37 or 8.2.36, or newer. PHP 8.6.0 also includes the fix. The October releases 8.5.12, 8.4.27, 8.3.36 and 8.2.35 are now vulnerable to phpAfterShell. PHP 8.1, 8.0, 7.x and 5.x got no official release; the PHP project published source patches for 7.4, 8.0 and 8.1, and some Linux distributions and LTS vendors backport the fix. Note that PHP 8.2 reaches end of life on 31 December 2026.

Is PHP2Shell already being exploited?

It is disputed, as of 23 October 2026. watchTowr and Amazon report attacks; Amazon saw the first attempt on 17 October, four days before the fix. Sansec says the public exploits do not work against a default PHP installation, and Germany's BSI knows of no successful exploitation at scale. VulnCheck says it has a working exploit, for its customers only. No compromised site has been publicly confirmed. Update anyway: a working exploit exists and could become public at any time.

Is phpAfterShell already being exploited?

As of 20 November 2026, neither the PHP maintainers nor the researchers who found it (depthfirst) report attacks using phpAfterShell. The researchers published a harmless proof of concept; the code execution chain they built used a second bug whose details they are holding back for coordinated disclosure. Update anyway: the flaw is now public and attackers can study the fix.

Which servers are at risk?

According to the PHP project, all PHP installations serving web requests, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. The risk is highest for mod_php, where a demonstrated exploit works before any application code runs. The PHP project's advisory says PHP-FPM is susceptible but no complete exploit has been shown, application-specific exploits for LiteSpeed (LSAPI) are likely but unvalidated, and FrankenPHP is likely susceptible. None of this makes them safe: update all of them.

My site runs on WordPress. Does updating WordPress help?

No. The flaws are in PHP itself, the language WordPress runs on, not in WordPress. What counts is the PHP version on your server, and your hosting provider controls that.

I'm on shared hosting. What can I do?

Shared hosting is fine: we work with your existing hosting account and move your site to the newest supported PHP version it runs on, with a backup and a plugin check. You don't need to change hosts. The first assessment is free.

The check says it can't tell. Am I affected?

Not necessarily. It means your server hides its PHP version or reports a distribution package, so we can't judge from outside. We'll find out for you and apply the update if it is missing. The first assessment is free.

Is there a way to protect myself until I can update?

Only partly. The PHP project lists settings that block specific attack paths, but says plainly that they do not make an installation safe. Against CVE-2026-109618, set memory_limit=-1 in a way applications cannot override (php_admin_value in the FPM pool or Apache configuration) and set a low post_max_size (8M, or 32M if you need file uploads); note that memory_limit=-1 removes the memory cap, so watch your server's memory. Against CVE-2026-109619, set session.upload_progress.enabled=0 in php.ini or the server or pool configuration and restart every worker; ini_set() and FPM .user.ini do not work for this. On PHP 8.5, also set fatal_error_backtraces=0. Against phpAfterShell (CVE-2026-126714), the same session.upload_progress.enabled=0 setting closes the upload path, and so does storing sessions in Redis or a database, but the PHP maintainers say switching it off is not a full fix: apps that put attacker-controlled data into sessions in other ways stay affected. Updating is the only complete fix.

What is CVE-2026-115560?

A third, separate PHP flaw, announced by the PHP project on 23 October 2026. It is an unlikely remote code execution path through session upload progress and needs an unusual combination: an application that switches session.serialize_handler to php at runtime with ini_set() before session_start(), with session upload progress still enabled. The PHP project is fixing it in the regular release cycle and will publish a full advisory with the next release. Until then it suggests session.upload_progress.enabled=0, the same setting listed for CVE-2026-109619.

The check shows an old version, but my host says it is patched. Who is right?

Possibly your host. Linux distributions and hosting panels often backport the fix without changing the version number, and a check from outside reads only the version your server reports, so it cannot tell. Ask your host to confirm that the fixes for CVE-2026-109618, CVE-2026-109619 and CVE-2026-126714 are installed, or look for the CVE numbers in the package changelog. After any update, PHP-FPM or Apache must be restarted, or running workers keep the old code.

Is this check safe for my site?

Yes. We request your start page once, exactly like a visitor's browser, and read the server headers and the WordPress version the page names. We send nothing that tests the flaw. Repeat checks within ten minutes reuse the first result, so they don't hit your site again. We keep the domain, the result and a pseudonymized form of your IP address for 90 days to prevent abuse, then delete them automatically.

Sources