PHP2Shell fixes are available: PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12 contain the patches. If you run a PHP website, confirm that its hosting environment has installed a fixed release or a vendor-confirmed backport. PHP’s October 21 security announcement identifies updating as the complete remedy.
PHP2Shell refers to two PHP-core vulnerabilities, CVE-2026-109618 and CVE-2026-109619, that can allow attackers to run code without logging in. Updating WordPress, a theme or a plugin alone does not replace the PHP runtime fix. Automattic’s explanation separates those responsibilities.
Which PHP versions contain the fix?
These are the first patched upstream releases in each supported branch, listed in the PHP security advisory:
| PHP branch | First fixed release |
|---|---|
| 8.2 | 8.2.35 |
| 8.3 | 8.3.36 |
| 8.4 | 8.4.27 |
| 8.5 | 8.5.12 |
Earlier releases in those branches need the security update unless your package vendor has supplied a backport.
The patches were released on October 21, 2026, after the scheduled release was brought forward from October 22 at 14:00 UTC to October 21 at 14:00 UTC. PHP Foundation release account
What should you do on managed hosting?
Automattic says sites hosted on WordPress.com, WordPress VIP, WP Cloud, Pressable and Tumblr are already protected, with no action required from those customers. That assurance applies to the services named in its October 21 notice, not every website using WordPress.
For another host, ask support to confirm:
- Which PHP version or patched package serves your specific website?
- Have fixes for both CVE numbers been applied?
- Have the affected running services been restarted, and is any action required in your hosting panel?
In WordPress, Tools → Site Health → Info → Server shows the PHP version and server details. The WordPress documentation describes this as an information screen; it does not install updates. Give the displayed version to your host if you need help checking a backported package.
What if you maintain the server yourself?
Install the patched runtime through your distribution, hosting platform or PHP’s official releases. Apply it to every affected web-serving instance, then restart the relevant Apache, PHP-FPM or other long-running PHP workers. The researchers’ upgrade guidance specifically requires updating the runtime and restarting workers.
Verify the runtime serving browser requests, not just the result of php -v in a terminal. PHP documents the command-line interface as a separate execution interface; a successful CLI check alone does not establish what your website runs.
After the change, check normal page loading, sign-in, forms and uploads. Record any new errors for your administrator. Our error-code guide explains what to capture when reporting a failure.
What about PHP 8.1 or older?
PHP 8.1 and earlier no longer receive regular PHP-project releases. For this incident, the project has nevertheless provided minimal source backports for PHP 7.4, 8.0 and 8.1. Some distributions and long-term-support vendors also supply patched packages. PHP’s current update guidance
A source patch is not an installed update. Ask your vendor whether your exact package contains both fixes; otherwise arrange a move to a supported runtime.
Can a settings change replace patching?
No. The out-of-memory advisory and stale-state advisory both describe incomplete configuration mitigations. Disabling one feature does not close every affected path.
If an update is temporarily unavailable, have your host or administrator follow the official guidance for your deployment. Avoid copying blanket memory or upload settings from an unrelated server: the researchers warn that these measures can affect functionality and availability.
Official sources
- PHP release announcement and update guidance
- CVE-2026-109618 advisory and CVE-2026-109619 advisory
- PHP Foundation’s release timeline
- Automattic’s hosting notice
FAQ
Does PHP-FPM need an update too?
Yes. The PHP stale-state advisory confirms an affected PHP-FPM path involving application execution. Using FPM instead of Apache’s mod_php is not a reason to skip the patch.
Is a website outage proof it was attacked?
No. An outage alone does not identify its cause. Check the site’s status notice or contact its operator. Our website outage checklist helps distinguish a local access problem from a service interruption.