Updating WordPress plugins will not fix a vulnerability in PHP itself. The PHP2Shell advisories concern the runtime underneath the application, which is why administrators need to check what is actually serving requests.
The PHP team published two critical fixes
On October 21, 2026, PHP released fixes for CVE-2026-109618 and CVE-2026-109619. The first concerns out-of-memory handling that can leave internal request data invalid. The second concerns stale internal state that can outlive the memory backing it.
The published advisory rates CVE-2026-109618 at 9.2 under CVSS v4.0. The risk includes unauthenticated remote code execution as the web worker's operating-system account, not automatically root.
Application code can be perfectly sensible and still sit on an affected runtime. The PHP team's demonstrated mod_php exploit can trigger before application code begins.
The runtime and configuration affect the attack path
PHP's announcement tells all installations serving web requests to update, naming FPM, mod_php, php-cgi, FrankenPHP and LiteSpeed. It identifies mod_php as the highest demonstrated risk.
The detailed advisory is more specific than saying every setup is exploited identically. It says a complete mod_php exploit was validated. For FPM, startup behavior blocks that particular path, while source analysis supports other susceptibility. Other runtime paths have different validation status.
Sysdig also describes possible information exposure from worker memory. Treat that as a reason to assess secrets if compromise is suspected, not a guarantee that every affected server leaked the same data.
These releases contain the October fixes
The PHP team's fixed releases are 8.2.35, 8.3.36, 8.4.27 and 8.5.12. Use the latest supported maintenance release appropriate to your environment, or a vendor package that explicitly includes the fixes.
PHP 8.6.0 was released after these fixes, on November 19, 2026. A version number is still not a substitute for keeping up with later security updates.
For PHP 8.1 and older, upstream support has ended. The PHP team provided minimal source backports for 7.4, 8.0 and 8.1, but that is not a renewed promise of normal support. Ask your distributor or hosting provider about its patched package, or move to a supported branch.
The command-line version may not be your web version
php -v
php-fpm8.3 -v
The second command is an example binary name, not a portable command guaranteed to exist. Check your installed FPM service, Apache module, container image or hosting control panel. A patched CLI tells you little about an old worker pool still handling traffic.
For shared hosting, ask for the runtime version and package security status explicitly. "We update regularly" is not a version number.
Install the package, then replace the running processes
On Debian or Ubuntu, package updates may start with:
sudo apt update
sudo apt upgrade
On RHEL-family distributions, the corresponding package-manager step may be:
sudo dnf upgrade
Review the proposed changes and your vendor's advisory first. These commands do not guarantee the configured repository contains a fixed PHP build.
Restart the services actually using PHP. For example, an FPM deployment might use:
sudo systemctl restart php8.3-fpm
An Apache mod_php deployment may require:
sudo systemctl restart apache2
Names vary by distribution. Nginx does not execute PHP itself, so restarting it is not automatically required merely because FPM was updated. Confirm that every relevant PHP worker was replaced and that the application still works.
For containers, rebuild or pull a verified fixed image and redeploy it. An unchanged running container does not become patched because a newer image exists in a registry.
Temporary configuration changes are not a complete fix
The PHP team explicitly says updating is the only complete mitigation. If an emergency window prevents it, follow the exact official advisory for your version and deployment, and plan the update rather than treating a workaround as the finished job.
For the OOM path, it describes administratively enforcing memory_limit=-1, together with independent resource boundaries and request limits. Removing PHP's memory limit can create availability problems and does not eliminate all allocation-failure paths. Do not apply it casually to a shared production system.
The guidance also recommends conservative post_max_size values, such as 8M without uploads or 32M where needed, with upload_max_filesize lower, and frontend limits that cover decoded bodies and multipart complexity. It warns against substituting RLIMIT_AS or RLIMIT_DATA.
For confirmed stale-state paths, the announcement specifies session.upload_progress.enabled=0 before request parsing and a worker restart. On PHP 8.5 it also discusses fatal_error_backtraces=0. These block particular paths, not every possible variant. Hiding warnings with display_errors does not repair the underlying state.
An October 23 notice also discussed CVE-2026-115560 under an unusual runtime session-serialization change. Follow the current PHP or distributor guidance rather than assuming an October interim instruction remains the latest state of the issue.
Look for evidence, not a magic indicator
Unexplained worker crashes, OOM events, unexpected child processes, new executable files in upload directories and unusual outbound connections deserve investigation. Some applications legitimately spawn helpers; an odd process alone is not proof of this exploit.
A patch closes a vulnerability. It does not remove access an attacker already established.
If compromise is plausible, follow an incident-response plan: preserve evidence, contain the affected workload, assess credentials and sessions, and rebuild from trusted material where needed. Avoid wiping the useful evidence before the person investigating has seen it.
Related reading: the roadmap that puts this fix in context is in A Web Development Roadmap for 2027, and how one vendor outage becomes everyone's outage is in Airport Ransomware.

Comments
Post a Comment