Critical PHP update (21 Oct 2026) First fixed upstream releases: 8.6.0, 8.5.13, 8.4.28, 8.3.37, 8.2.36. What to do now New (23 Oct): CVE-2026-115560

Questions

Frequently asked questions

Page last updated: Data verified:

Contents

Basics#

What is PHP2Shell?

The name the researchers gave to two critical vulnerabilities in the PHP core, CVE-2026-109618 and CVE-2026-109619, announced on 21 October 2026. Under certain conditions they allow unauthenticated remote code execution. See what PHP2Shell is.

Am I affected?

Most likely, if you have any PHP serving web requests that has not been upgraded since 21 October 2026. Exposure depends on the version, the configuration and the specific vulnerability. Check every PHP runtime, including those of custom applications, against the version table.

Does it only affect WordPress, Drupal or Joomla?

No. The vulnerability is in the PHP runtime. WordPress, Drupal and Joomla were used in the public demonstrations, but according to the researchers a vulnerable application is not required. It also affects custom applications, frameworks, webmail, admin tools and devices with embedded PHP.

Does the attacker need an account on the site?

No. Both advisories describe an unauthenticated attack (PR:N). There are, however, other preconditions (e.g. worker reuse, triggering memory exhaustion) and the attack complexity is rated high.

What information could be leaked?

With code execution, anything accessible to the PHP user: configuration files, database passwords, API keys, customer data. With memory disclosure, the contents of the process memory, which may include cookies, tokens and passwords from other users’ requests.

Why is it called PHP2Shell?

The name was given by the researchers and describes the worst-case scenario: going from a PHP request to a “shell”, i.e. command-line access to the server.

Fixing#

What is the fix?

Upgrade to PHP 8.5.13, 8.4.28, 8.3.37, 8.2.36 or later (the 19 November 2026 releases, which also fix CVE-2026-115560; PHP2Shell was already fixed in 8.5.12, 8.4.27, 8.3.36, 8.2.35), or to a patched package from your vendor, and restart all PHP processes. See the immediate actions.

I updated WordPress and its plugins. Is that enough?

No. WordPress is the application; PHP2Shell affects the server’s PHP runtime. PHP itself must be updated. See the guide for site owners.

My server shows 8.4.26. Am I vulnerable?

Not necessarily. On CloudLinux EasyApache 4, the patched package is ea-php84 8.4.26-2. Distributions and panels often backport fixes without changing the number. Check the full package name and its changelog for the CVEs. See backports.

php -v over SSH shows a patched version. Am I OK?

Not necessarily. php -v shows the CLI, which is often a different binary from the one serving your pages (FPM, lsphp, mod_php, a different version per site). Check via the web and make sure a restart took place.

Do I need to restart after upgrading?

Yes. Processes started before the upgrade keep running the old code from memory: Apache with mod_php, PHP-FPM, lsphp (in detached mode it is not restarted together with LiteSpeed), queue workers, Octane, containers.

What about PHP 7.4, 8.0 or 8.1?

There is no patched upstream release. The PHP project only provided minimal source backports for 7.4, 8.0 and 8.1. Some vendors (e.g. cPanel, CloudLinux, Ubuntu, Plesk) have patched packages. If you do not have a confirmed patched package, upgrade to a newer branch.

Is PHP 8.2 a safe choice?

8.2.36 contains the fixes, but the 8.2 branch stops receiving security fixes on 31 December 2026. Plan a move to 8.3 or later.

Do I need to change PHP branch to get the fix?

No, if your branch is supported (8.2–8.5). The latest release of the same branch is enough. A branch change is needed for unsupported versions without a patched vendor package.

What is CVE-2026-115560 and does it affect me?

A separate session upload progress vulnerability, announced on 23 October 2026 and fixed on 19 November 2026 (8.5.13, 8.4.28, 8.3.37, 8.2.36). Advisory GHSA-658j-r8rw-q6mx rates it Critical (CVSS v4 9.2): a serializer mismatch can, with suitable gadgets in the application, lead to code execution. The fix disables session upload progress by default. Until you upgrade, keep session.upload_progress.enabled=0. See the details.

Mitigations#

Can a WAF, CDN or provider rule protect me?

It can reduce exposure to known tools and patterns, but it does not fix the vulnerability. For example, CloudLinux reported that on 21 October no Imunify360 rule blocked the out-of-memory path of CVE-2026-109618. Upgrading remains necessary.

Should I set memory_limit = -1?

Only as a temporary measure if you cannot upgrade, and only with a memory limit at operating-system level (cgroup/container). Without a limit, a single request can exhaust the server’s memory. The PHP project notes that it does not fully cover even CVE-2026-109618. See the temporary mitigations.

Is it enough to hide the PHP version (expose_php = Off)?

No. Hiding it only makes identification harder for third parties. A server with a hidden version can be just as vulnerable.

Does disabling display_errors help?

Not for PHP2Shell. The PHP project explicitly notes that suppressing diagnostics with error_reporting, display_errors or @ does not help. It is, however, good practice in production for other reasons.

Compromise#

Can I tell whether someone has exploited it?

Partly. There are indicators (unusual multipart requests, memory errors, worker crashes, new files, unknown processes), but none of them proves an attack on its own, and their absence does not prove nothing happened. Memory disclosure may leave no traces. See possible compromise.

Is it already being exploited?

Yes. In the sources we checked (2 November 2026) there are documented attempts against honeypots since 17 October 2026, public proofs of concept and successful code execution against honeypots (24 October). On 26 October CISA added both CVEs to its KEV catalog of known exploited vulnerabilities, without disclosing details. The Unit 42 report (23 October) of a compromise at a government entity in Europe was retracted on 25 October. On 26 October Dream described a PHP2Shell and Fragnesia chain that gave root on 25 servers (mostly firewalls), including systems of a US government-affiliated organisation, and on 28 October Palo Alto Networks reported active exploitation targeting exposed PAN-OS management interfaces. On 28 October CISA also added the Linux kernel flaw Fragnesia (CVE-2026-46300) to KEV, noting that it is chained with PHP2Shell, and on 29 October Unit 42 said it had independently verified the attacker’s tooling and the results Dream described, tying the campaign to exposed PAN-OS management interfaces. See the exploitation status and the news.

Should I change passwords and keys?

It depends on the exposure. If the server was vulnerable and exposed after 17 October, consider rotating the most critical secrets. If there are indicators of successful exploitation, treat everything that was accessible to PHP as exposed.

Tools#

Does the domain check tell me the site is secure?

No. It only sees the version the server declares in its headers, which is often missing, can be misleading and does not reveal backports. It does not test for the vulnerability. The definitive answer comes from the server administrator.

Does the local version check send my data anywhere?

No. It runs entirely in your browser. See the privacy notice.

General#

How was artificial intelligence used in the research?

According to the publications, the research teams (Calif, Wiz, OpenAI Codex Security) used AI tools for discovery and analysis. OpenAI states that Calif found a vulnerability using one of its models as part of the Patch the Planet programme. Details are in the original publications.

Is php2shell.gr an official site?

No. It is an independent Greek information initiative by Webora, with no connection to the PHP project or the researchers. See about.