Security alert — 21 October 2026. PHP has released fixes for CVE-2026-109618 (out-of-memory memory corruption) and CVE-2026-109619 (stale request state). Each has a CVSS v4.0 score of 9.2. Under exploitable conditions the flaws may permit unauthenticated remote code execution in PHP web workers, including PHP-FPM, mod_php, CGI, LiteSpeed/LSAPI and similar handlers. PHP security advisory · NCSC alert.
Immediate action: identify every web-facing PHP runtime, install an upstream security release or verified vendor backport, restart/recycle affected workers, and test each application. This guide combines the vulnerability summary, read-only version check and Webuzo, cPanel, DirectAdmin or plain Linux patching instructions in one place. A WordPress update or WAF alone does not patch PHP.
Affected PHP versions and fixes
| PHP branch | First upstream fixed version | Action |
|---|---|---|
| PHP 8.5 | 8.5.12 | Update within 8.5 to at least this version. |
| PHP 8.4 | 8.4.27 | Update within 8.4. |
| PHP 8.3 | 8.3.36 | Update within 8.3. |
| PHP 8.2 | 8.2.35 | Patch now; PHP 8.2 reaches upstream end of life on December 31, 2026. |
| PHP 8.1 or older | No current upstream security releases | Move to supported PHP or get written confirmation of an applicable vendor backport. |
Linux distributions and paid extended-support vendors may publish patched packages with older-looking version numbers. Do not declare a machine safe or unsafe from its version number without checking the vendor security advisory and package revision. Conversely, being on an upstream fixed version is only one part of confirming the active website workers are patched.
Quick PHP2Shell vulnerability check: Webuzo, cPanel, DirectAdmin and Linux
Use this read-only PHP version checker over SSH to identify potentially exposed PHP installations across Webuzo, cPanel/WHM, DirectAdmin, LiteSpeed and standard Linux setups. It looks for common PHP CLI, CGI, LSAPI and PHP-FPM binaries instead of relying on php -v alone. The fixed upstream versions for CVE-2026-109618 and CVE-2026-109619 are PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12.
Review the plain-text Gotekky checker first, then download, verify the published SHA-256 and run:
curl -fsSLo gotekky-php-cve-2026-check.sh https://www.gotekky.com/assets/releases/php2shell/2026-10-22-r7.7-8cc6d3a376c2/gotekky-php-cve-2026-check.sh &&
echo "8cc6d3a376c2e6a1a91ce94d6cb3a8adfa7549cdc39c2bbcd24a0b926e657984 gotekky-php-cve-2026-check.sh" | sha256sum -c - &&
bash -n gotekky-php-cve-2026-check.sh &&
bash gotekky-php-cve-2026-check.sh --self-test &&
bash gotekky-php-cve-2026-check.sh
LiteSpeed and website-use note: The checker retries with -v for PHP binaries that do not respond to -n -v, including some LiteSpeed LSAPI builds. The PROCS column is a live process snapshot; WEBSITE_USE: UNVERIFIED means actual per-domain PHP assignments still need to be checked in the hosting panel. A PHP 5.6.40 result is [X] FAIL against upstream-supported versions, even when no site is confirmed to use it.
Run separately on every relevant server and container. Every detected PHP version has a conclusion you can read without colour: [OK] PASS, [X] FAIL, or [?] REVIEW, followed by a reason and its runtime path. Green, red and yellow ANSI colours are optional. The ASCII markers and complete v
PHP VERSION VERDICT CONCLUSION
8.4.27 [OK] PASS Upstream fix threshold met
8.3.35 [X] FAIL Below upstream fix; review vendor backport
8.1.34 [X] FAIL End-of-life; upgrade or check vendor support
UNKNOWN [?] REVIEW Manual runtime/build verification needed
OVERALL VERSION CONCLUSION: [X] FAIL — review every failed runtimeRSION RESULT INTERPRETATION
8.4.27 PASS Upstream fixed release or newer
8.3.35 FAIL Below upstream fix; confirm vendor backport
8.1.34 FAIL End-of-life upstream; upgrade or confirm vendor backport
Unrecognized REVIEW Manual verification required
- [OK] PASS (green if supported): the visible runtime meets an upstream fixed-version threshold. This does not prove the active web worker or every hosted domain uses that runtime.
- [X] FAIL (red if supported): an older upstream release or unsupported upstream branch requires urgent patching or a documented vendor security backport review. FAIL does not override a verified backport.
- [?] REVIEW (yellow if supported): pre-release, unknown, or unrecognized version; inspect the package/build manually.
Check for possible exploitation in server logs
On October 21, 2026, watchTowr reported active exploitation attempts involving PHP2Shell. Datadog's security research warns that successful exploitation may occur without crashes or obvious access-log signatures. To perform an optional, read-only triage on each server, run:
bash gotekky-php-cve-2026-check.sh --hunt --no-color
The optional --hunt mode now streams all discovered eligible local web/PHP/audit logs, including rotated .gz, .xz, .bz2 and supported .zst/.zip archives, without arbitrary 96-file, age, file-size or line-count limits. It also checks the accessible systemd journal. Run separately on each host; large servers can require substantial disk I/O and elapsed time. Use --hunt-root /absolute/log/directory for additional custom locations, or --hunt-no-journal to exclude the journal. It prints aggregate counts, scanned file/byte totals and coverage gaps only: no client IPs, request paths, raw log lines, tokens or customer records. No data leaves the server, no exploitation is attempted and nothing is modified; Python 3 is required.
Interpretation: INVESTIGATE signals higher-priority anomalies; REVIEW means lower-specificity matches such as POST 5xx responses. Neither proves exploitation. The report also shows LOG_COVERAGE, ARCHIVE_COVERAGE, and COVERAGE CONCLUSION; any omissions require investigation before relying on the sample. NO SELECTED INDICATORS DETECTED never proves a host is clean. Logs that were deleted, never recorded, retained only in Cloudflare/WAF services, or stored in isolated containers remain outside this local scan. Preserve evidence if compromise is suspected and coordinate specialist incident response.
Check vendor package changelogs for backports, domain-to-PHP assignments and running workers. Installing the checker does not apply security fixes. Updating to a fully patched PHP runtime remains necessary even when no indicators are found. For help investigating an affected server, review Gotekky's infrastructure management or recovery services.
Research: watchTowr PHP2Shell threat activity and Datadog PHP2Shell detection analysis.
Choose your platform: patching instructions
Open the instructions for your control panel or Linux distribution. All four complete procedures are embedded directly in this page, so they remain accessible without JavaScript. Check your PHP vendor for an actual fixed build before running update or rebuild commands.
Webuzo — update PHP through Apps → Update Apps
Do not replace PHP executables by hand, patch Webuzo's generated Apache/FPM configuration, or transplant binaries from another server. Webuzo owns its application builds and can regenerate configuration.
- In the Webuzo Admin Panel, go to Apps → Installed Apps and identify every installed PHP release. Note the current version and the domains using it.
- Open Apps → Update Apps. Check whether Webuzo has published an updated PHP build corresponding to the security fix. If an update is available, inspect which PHP branch it upgrades; plan around compatibility and active web traffic.
- Apply the PHP app update through Webuzo. The panel's Settings → Update page controls application-update visibility/settings; an application configured to Do not Auto Upgrade may need explicit manual updating. Webuzo's Webuzo Update and System Update are separate functions: updating the panel or OS does not automatically demonstrate that the PHP app build is patched.
- Go to Apps → MultiPHP Manager and verify each domain still selects an installed, fixed or vendor-confirmed patched PHP release. Check Apps → PHP-FPM Settings as applicable.
- Follow Webuzo's supported post-update service reload/restart mechanism for the web server and PHP workers. Verify after all workers have been replaced and exercise key websites and API endpoints.
- If Webuzo has not released a patched PHP build, open a vendor support request referencing both CVEs. Preserve the old build and configuration until a supported resolution is available; isolate exposed applications as needed. Do not assume
webuzo --system_updatepatches Webuzo-packaged PHP.
Webuzo documentation: Update Apps · MultiPHP Manager · Webuzo update settings. Availability of a particular fixed Webuzo PHP package must be confirmed in your panel/vendor channel; this article is not claiming it was available on every mirror at publication time.
cPanel / WHM — EasyApache 4 and MultiPHP
- Open WHM → Software → MultiPHP Manager and record the PHP package prefix/branch assigned to each production domain, including any
ea-php, CloudLinuxalt-php, or other vendor-managed versions. - Open WHM → Software → EasyApache 4. Use Run System Update (which routes to WHM's System Update), or your supported OS package-management workflow, to bring installed EasyApache PHP packages to the released fixed builds. Inspect the changes before applying.
- Where a domain requires a different supported branch, use EasyApache 4 to install that branch, then MultiPHP Manager to switch only the intended domains after compatibility checks.
- Restart/reload the web workers using cPanel-supported service management and verify package versions plus the actual serving domain. Review extension availability, cron PHP paths and applications before closing the change.
cPanel's documentation also lists this root-initiated update workflow:
/usr/local/cpanel/scripts/upcp
That updates much of cPanel and system software; it is not a targeted proof that fixed EasyApache PHP packages have arrived, and it may update more than PHP. Use only after reviewing the maintenance scope and backups. Third-party PHP distributions require their own vendor updates; EasyApache 4 does not install every vendor's PHP packages.
cPanel documentation: How to Update Your System · EasyApache 4 · Determine domain PHP version.
DirectAdmin — CustomBuild
First check your configured branches and what CustomBuild says is installed/available:
da build versions
Then use DirectAdmin Admin → CustomBuild to inspect pending PHP updates, or, after checking the vendor actually has the fixed PHP source/build, use:
da build php
da build php rebuilds all configured PHP versions and may take time and affect active sites. Newer DirectAdmin releases support da build php 8.4 to rebuild just a configured branch. Do not use either command until you have confirmed the intended source/patch level, a backup and acceptable interruption. If needed, da build update_versions updates available third-party components (potentially broader than PHP), not just PHP.
After building, use DirectAdmin's supported worker reload/restart procedure, check each website's assigned branch and confirm the loaded PHP build. If you must move from an unsupported branch, plan the domain changes and extension compatibility through CustomBuild rather than editing generated files manually.
DirectAdmin documentation: CustomBuild overview · Multiple PHP versions · Single PHP rebuild support.
Linux / containers — Debian, Ubuntu, AlmaLinux, Rocky, RHEL
Determine the source of your PHP packages first. OS repositories, third-party repositories and compiled source builds may have different patch availability and service names. Upstream version strings may not reflect distribution backports.
Debian / Ubuntu packaged PHP
Read-only preflight to inspect available changes:
php -v
apt-cache policy php php8.2-fpm php8.3-fpm php8.4-fpm php8.5-fpm 2>/dev/null
sudo apt-get -s upgrade
After reviewing the simulated upgrade and confirming your configured package source provides a CVE-fixed build, schedule the change:
sudo apt update
sudo apt upgrade
This upgrades more than PHP if other packages are pending; use your normal change-control process. Do not install a random PPA or replace distro packages solely to make the version string look new. Restart the specific installed phpX.Y-fpm service(s) if they did not restart, and reload the relevant web server using documented distro tooling.
RHEL / AlmaLinux / Rocky Linux packaged PHP
Read-only preflight:
php -v
dnf list installed 'php*'
dnf check-update 'php*'
If your configured repository contains corrected packages and the transaction preview is acceptable:
sudo dnf upgrade 'php*'
This example assumes the installed PHP runtime actually comes from normal php* packages. Some systems use module streams, vendor prefixes or alternate runtime collections. Those must be upgraded using their owner/vendor's documented method; dnf upgrade 'php*' alone may miss them. Review the package transaction and PHP vendor changelog before apply.
Compiled PHP from source / containers
For a source-built interpreter, use authenticated PHP source release files and checksums, reproduce the original build configuration and extensions, test in staging and deploy with an atomic/rollback-friendly procedure. Rebuild/replace every relevant FPM/CGI/LSAPI runtime and restart workers. Containers need a rebuilt image with patched PHP and a redeploy; changing host php -v does not update a running container image. Do not present a blind make install or in-place binary copy as a safe emergency command.
Verify after patching
- Confirm the actual web runtime is upstream-fixed or covered by an explicit vendor backport advisory; CLI output alone is insufficient.
- Confirm every PHP-FPM, LiteSpeed/LSAPI, Apache/mod_php, CGI or container worker was restarted/replaced, as relevant.
- Verify key flows: HTTP 200/redirects, logins, checkout, form submission, scheduled jobs, uploads, cache behavior and error rates.
- Review package ownership and installed extensions (ionCube, Redis, Imagick, database drivers) for regressions.
- Review security telemetry for evidence of attempted exploitation or compromise, especially before patch time. A successful update does not remove any already-planted backdoor.
- Document the versions, vendor advisories, rollout, verification and rollback path. If risk remains unacceptable, restrict exposure until resolved.
Common questions about the PHP vulnerabilities
What is the difference between CVE-2026-109618 and CVE-2026-109619?
CVE-2026-109618 involves out-of-memory error handling and partially initialized request data. CVE-2026-109619 involves freed request state being reused by a worker. Both concern PHP itself—not a particular WordPress plugin.
Does php -v prove that my website is patched?
No. It checks your shell's default PHP binary, not necessarily the PHP-FPM, LSAPI, CGI or Apache handler serving each domain. An older-looking version may also contain a distribution backport. Verify the domain mapping, package vendor advisory and worker restart.
Is PHP 8.1 or older safe if supplied by a hosting vendor?
Not from the upstream version number alone. PHP 8.1 and older do not receive standard upstream security releases; ask your distribution or LTS supplier for explicit confirmation of these CVE fixes, or plan migration to a supported PHP branch.
Can a CDN, WAF or WordPress update replace the PHP patch?
No. They can reduce certain risks but do not correct either flaw in the PHP web runtime. Patch at the actual package or build layer.
If the fixed version is not yet available
Upstream PHP lists narrowly scoped measures including constraining accepted request sizes, disabling session.upload_progress.enabled in an early-loaded configuration and restarting workers, plus other scenario-dependent settings. It is explicit that these do not remove all exploit paths. Do not indiscriminately set memory_limit=-1 or alter upload limits across a shared production fleet: resource exhaustion and broken applications are possible. Review the exact PHP advisory and consider isolating exposed systems if the proper patch cannot be installed promptly.
Need help with a production server?
If your team can administer the panel but cannot confidently identify the real web worker or vendor patch status, Gotekky's Infrastructure Management supports scoped server-level review and ongoing operations for approved Linux environments, including supported externally hosted servers. Emergency one-off remediation can be scoped separately; recurring plans do not imply unlimited application repair. If you suspect compromise, see Recovery & Repair rather than treating this as a routine version upgrade.
Start with a free infrastructure requirements discussion. We can help establish whether you need a straightforward patch, a technical assessment or a larger recovery effort.
Related reading: · Managed hosting in Canada.
Published October 21, 2026. Commands are examples for authorized administrators; verify your platform's patch availability and change procedures before using them.
Official source documents
- PHP: 21 October 2026 security release / advisory
- UK NCSC: critical security issue affecting PHP
- Webuzo: Update Apps
- cPanel: EasyApache 4
- DirectAdmin: CustomBuild software updates
Gotekky
Need help deciding what to do next?
Tell us what you are seeing and what outcome you need. We will identify whether a managed service, scoped project or paid technical assessment is the right next step.