Skip to content
PHP Version Checker
Critical PHP security advisory

PHP2Shell Checker: CVE-2026-109618 and CVE-2026-109619

PHP2Shell is the name used for two critical PHP vulnerabilities patched on 21 October 2026. This page explains which releases are affected, which versions contain the official fix, and how to check whether a public site is exposing a vulnerable PHP version.

Last updated:

Fixed 21 Oct 2026Critical RCEPHP 8.2–8.5 patched

Based on the official php.net advisory. This page contains no exploitation instructions.

Free checker

Check a website for PHP2Shell

Enter a public URL. The checker reads the PHP version a site exposes, compares it with the first official fixed release in its branch, and marks distribution builds it cannot verify.

Try an example:

Free · No sign-up · We never store the URLs you check

The advisory

What is PHP2Shell?

PHP2Shell is the name used for two critical vulnerabilities in the PHP runtime. Both were fixed by the PHP project on 21 October 2026. They matter because PHP is the layer that runs the application: a vulnerable PHP worker can be attacked before WordPress, Laravel, or any other application code runs.

The pre-release notice rated the pair CVSS v4.0 9.2 (Critical). PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35 contain the fixes. Every earlier release in those branches is affected. The official advisory considers mod_php the highest-risk setup, but PHP-FPM, php-cgi, FrankenPHP, and LiteSpeed installations are also in scope.

CVE-2026-109618

Remote code execution via out-of-memory corruption

A PHP runtime flaw that can allow unauthenticated remote code execution in affected configurations. The official advisory has the technical details.

CVE-2026-109619

Remote code execution via stale global state

A PHP runtime flaw that can allow unauthenticated remote code execution in affected configurations. The official advisory has the technical details.

Affected versions

Which PHP versions are affected?

The official fixes cover PHP 8.2 through 8.5. If a site runs an earlier release in one of these branches, the checker marks it vulnerable. PHP 8.1, 8.0, 7.4, and earlier are end of life, and the checker reports them as No supported release. php.net published minimal source patches for 7.4, 8.0, and 8.1, but those patches are not tied to a supported release, and a passive external check cannot tell whether a server has applied them. Confirm the exact build on the server itself.

Swipe horizontally to see all columns.

Affected PHP2Shell versions and first fixed releases
PHP branchAffected releasesFirst fixed releaseBranch support
8.58.5.0–8.5.118.5.12

Active support

Security support until Dec 31, 2029

8.48.4.0–8.4.268.4.27

Active support

Security support until Dec 31, 2028

8.38.3.0–8.3.358.3.36

Security fixes only

Security fixes until Dec 31, 2027

8.28.2.0–8.2.348.2.35

Security fixes only

Security fixes until Dec 31, 2026

PHP 8.1 and older do not receive supported updates. The PHP project published minimal source backports for 7.4, 8.0, 8.1, and some distributions provide patched packages, but the checker cannot detect those patches from outside. The supported path is to upgrade to PHP 8.4 or 8.5. PHP 8.2 still receives security fixes, but its security support ends on 31 December 2026. Support dates come from endoflife.date.

Remediation

What to do now

Updating is the only complete fix. If an immediate update is impossible, the next section summarizes the temporary mitigations from the official advisory. They reduce exposure to specific attack paths but do not make an installation safe.

  1. 1

    Update PHP

    Move to PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35. If you use managed hosting, ask the host to apply the security update or use its PHP version selector.

  2. 2

    Restart every PHP worker

    Restart PHP-FPM, Apache with mod_php, containers, and any other PHP worker. Replacing files on disk without restarting can leave the old, vulnerable binary in memory.

  3. 3

    Verify the web SAPI

    Check PHP_VERSION through the web server, not only with php -v. The CLI build and the FPM/Apache build can be different. The checker's self-check panel lists quick ways to verify the web version.

  4. 4

    Check vendor packages

    On a Linux distribution or LTS vendor, the fix may be backported without changing the version number. Check the vendor's advisory. The checker reports distribution-suffixed versions as cannot determine.

Temporary mitigations

Temporary PHP2Shell mitigations (if you cannot update yet)

Updating PHP is the only complete fix. These measures only reduce exposure to specific attack paths and do not make an installation safe.

Mitigations for CVE-2026-109618 (OOM corruption)

  • Set memory_limit=-1, preferably enforced so applications cannot override it (for example php_admin_value in the PHP-FPM pool or Apache config). Check that no pool, directory, or application setting puts a finite limit back. Note: an underlying allocation failure can still reach the vulnerable path.
  • Set a low post_max_size: 8M if the site does not need file uploads, 32M if it does. Keep upload_max_filesize below post_max_size.
  • Consider enforcing request limits at the web server or proxy (decoded request size, input field count, multipart part count, header count, nesting depth), including requests without a usable Content-Length.
  • Use a container or cgroup memory limit as an availability boundary. Do not use RLIMIT_AS or RLIMIT_DATA instead, because they can trigger the vulnerable allocation failure.

Mitigations for CVE-2026-109619 (stale global state)

  • Set session.upload_progress.enabled=0 in php.ini, the FPM pool, or server config, then restart every PHP worker. Do not rely on ini_set() or .user.ini.
  • On PHP 8.5 only: set fatal_error_backtraces=0 and restart every worker.
  • Remove invalid or deprecated per-request settings that emit diagnostics before initialization. Hiding diagnostics with error_reporting, display_errors, or @ does not help.
  • Fix attacker-reachable fatal errors and execution timeouts (callbacks, upload or import processing, cleanup).

Example configuration

Apply these settings in php.ini, the PHP-FPM pool, or the server configuration, then restart every PHP worker.

; php.ini
memory_limit = -1
post_max_size = 8M
upload_max_filesize = 6M
session.upload_progress.enabled = 0

; PHP 8.5 only
fatal_error_backtraces = 0

; PHP-FPM pool: php_admin_value cannot be overridden by the application
php_admin_value[memory_limit] = -1
php_admin_value[post_max_size] = 8M
php_admin_value[upload_max_filesize] = 6M
php_admin_value[session.upload_progress.enabled] = 0

Source: official PHP security advisory.

How it works

How this checker judges PHP2Shell exposure

The checker reads the public X-Powered-By and Server headers, extracts a PHP version when one is present, and compares it with the first fixed release for that branch. It also recognises PHPSESSID cookies and WordPress generator tags, which can show that PHP is in use even when the version is hidden.

If the version is below the fixed release, the result is vulnerable. If it is at or above, the result is patched. If the site hides the version or uses a distribution suffix, the result is cannot determine.

This is a passive check. The checker sends ordinary HEAD and GET requests to public pages, just like a browser or a crawler. It does not send POST requests, try to log in, or probe for vulnerabilities.

What the checker cannot see

  • A PHP version hidden by expose_php or a CDN.
  • A distribution backport that did not change the version string.
  • Whether the web SAPI or the CLI binary is the updated one.
  • Whether PHP-FPM or Apache workers were restarted after the update.
How to check PHP version

Does this affect WordPress?

Yes, if WordPress runs on an affected PHP version. PHP2Shell is a PHP runtime vulnerability, not a WordPress plugin or theme issue. Updating WordPress, a security plugin, or a web application firewall does not replace the PHP fix. Update the PHP binary and restart the PHP workers.

On shared hosting, open the host's PHP version selector and choose a patched release. Then verify the front-end PHP version with the checker or WordPress Site Health. A host that offers only an end-of-life branch is a reason to move to a supported plan.

FAQ

PHP2Shell questions

Short answers for site owners and hosting teams. The official advisory remains the authoritative source.

What is PHP2Shell?
PHP2Shell is the name used for two critical PHP runtime vulnerabilities, CVE-2026-109618 and CVE-2026-109619. Both can allow unauthenticated remote code execution in affected configurations. PHP released official fixes on 21 October 2026.
Which PHP versions are fixed?
PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35 contain the official fixes. Every earlier release in those branches is affected. The official advisory considers the risk highest for Apache with mod_php, but PHP-FPM, php-cgi, FrankenPHP, and LiteSpeed installations also need the update.
Is PHP 8.1 patched?
PHP 8.1 and older are end of life and do not receive supported releases. The PHP project published minimal source backports for PHP 7.4, 8.0, and 8.1, and some Linux distributions provide patched packages, but those are not supported releases. The supported path is an upgrade to PHP 8.4 or 8.5. PHP 8.2 still receives security fixes, but its security support ends on 31 December 2026, so it is only a temporary stop.
Does updating WordPress fix PHP2Shell?
No. This is a vulnerability in PHP itself, not in WordPress, a plugin, or a theme. The PHP binary on the server must be updated, and the PHP-FPM, Apache, or container workers must be restarted so the new binary is loaded.
Do I need to restart PHP-FPM after updating?
Yes. Restart PHP-FPM, Apache with mod_php, containers, and every other PHP worker after installing the update. Replacing files on disk is not enough: a worker that keeps running can continue to run the old, vulnerable binary in memory.
Is my hosting provider handling PHP2Shell?
Shared hosting providers usually apply PHP updates for you, but the update may not reach every plan or worker immediately. Verify the actual front-end PHP version with this checker or WordPress Site Health. If the site still runs an affected version, contact the host or use the control panel's PHP version selector to switch to a patched release.
Why does the checker say cannot determine?
The site may hide its PHP version, or the version string may include a distribution suffix. A Linux distribution can backport the fix without changing the version number, so a passive checker cannot be certain. The result panel explains how to check the server directly.
Does a patched PHP version make a site completely safe?
No. It only shows that the official PHP2Shell fixes appear to be present. Other PHP, application, plugin, theme, and configuration issues can still exist. Treat the result as one signal, not a security audit.
Is there a workaround for PHP2Shell?
Updating PHP is the only complete fix. The official advisory lists temporary measures such as setting memory_limit=-1, lowering post_max_size, and setting session.upload_progress.enabled=0, followed by a restart of every PHP worker. These measures reduce exposure to specific attack paths but do not make an installation safe. See the temporary mitigations section on this page.
Is it safe to check a website?
Yes. The checker only reads public response headers and public HTML. It does not send POST requests, try to log in, probe for vulnerabilities, or store the URLs you submit. Only check sites you own or are authorized to assess.

Official references

This page summarizes the official advisory for site owners. It does not contain exploitation instructions and is not a security audit. A patched PHP version does not by itself prove that a site is secure.

Check another site

The checker is free and does not require an account.

Back to the PHP version checker