On 21 October 2026 the PHP team released fixes in versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35. They close two critical vulnerabilities: CVE-2026-109618 ("RCE via OOM corruption") and CVE-2026-109619 ("RCE via stale global state"). Both allow remote code execution without logging in. According to the PHP announcement there are no complete mitigations, and updating is the only complete fix. Both flaws are rated CVSS 4.0 9.2 out of 10, which is "critical".
If your website runs on WordPress, WooCommerce, PrestaShop, Laravel or any other PHP system, this applies to you. Below I explain what the flaws affect, why waiting is risky, and how to update PHP with as little risk to your shop as possible.
What happened
These are two flaws in the PHP engine itself, not in a single plugin or theme:
- CVE-2026-109618, "RCE via OOM corruption". When PHP runs out of memory while handling a request, some internal data is left only partly initialised. Request cleanup then treats it as valid. An attacker can trigger this with a crafted request, for example a form submission. Advisory: GHSA-w8hw-w9fx-j79w.
- CVE-2026-109619, "RCE via stale global state". State belonging to one request can survive after its memory has been freed. A later request handled by the same worker may use it. Besides server takeover, this can leak data from memory. Advisory: GHSA-6wmf-4rv5-p3rp.
Both advisories score the flaws CVSS 4.0 9.2 with the vector AV:N/AC:H/AT:P/PR:N/UI:N: network attack, no privileges, no user interaction. They were published on 21 October 2026.
Who is affected
According to the PHP team: all PHP installations serving web requests. That includes PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. The risk is highest for mod_php. The PHP announcement describes a demonstrated exploit in which a single unauthenticated request can start the attack before any application code runs.
That means up-to-date plugins, strong passwords and a WordPress security plugin do not protect you. The problem sits one level lower, in the engine that runs the whole site.
Affected branches are those below the fixed release. Per the GHSA affected-version ranges, every release before 8.2.35, 8.3.36, 8.4.27 and 8.5.12 is affected.
| PHP branch | Affected versions | Fixed version | Status as of 27 Oct 2026 |
|---|---|---|---|
| 8.5 | before 8.5.12 | 8.5.12 | Supported; security fixes until 31 Dec 2029 |
| 8.4 | before 8.4.27 | 8.4.27 | Supported; security fixes until 31 Dec 2028 |
| 8.3 | before 8.3.36 | 8.3.36 | Security fixes only, until 31 Dec 2027 |
| 8.2 | before 8.2.35 | 8.2.35 | Security fixes only, until 31 Dec 2026 |
| 8.1 and older | no fixed release from PHP | none | EOL: 8.1 from 31 Dec 2025, 8.0 from 26 Nov 2023, 7.4 from 28 Nov 2022 |
Table sources: php.net/supported-versions, php.net/eol and the GHSA advisories above.
PHP 8.1 and older will not get a fixed release from the PHP project. Those versions are end-of-life. Some Linux distributions and LTS vendors ship their own patches. If your host does not, the only way out is moving to a supported version.
Why you should not wait
I know how this looks from a business owner's side: the site works, customers are buying, it'll be fine. With this vulnerability that attitude is risky, for three reasons.
1. The patch shows what changed. Once a fix is published, anyone can compare the old and new source code. The GHSA reports describe the specific attack paths, which makes analysis easier.
2. No login is required. The attacker does not need your admin password or a customer account. All it takes is a server that answers requests from the internet, and every website does.
3. The consequences can be severe. Remote code execution means full server takeover. An attacker can deface the site, inject a script that skims card details, send spam from your domain or download your customer database. If personal data is breached, GDPR requires notifying the supervisory authority "without undue delay and, where feasible, not later than 72 hours after having become aware of it" (Article 33(1), text on gdpr-info.eu). I covered the clean-up process in what to do when your website is hacked.
The PHP project's GHSA-w8hw-w9fx-j79w advisory states:
"Updating to a PHP release containing the patch to this vulnerability is the only complete mitigation."
The scale: many sites still run outdated PHP
According to W3Techs (as of 27 October 2026), 65.6% of websites using PHP run version 8. The rest run version 7 (26.6%), version 5 (7.7%) and version 4 (0.1%). That means about 34% of PHP sites run branches with no security support (w3techs.com). W3Techs does not break down 8.0 and 8.1 separately.
If your site is in that group, a minor bump will not do. You need to move to a supported branch, and it pays to pick one that will last. Check the support dates in the table above when planning a migration.
Step 1: Check which PHP version you use
The simplest ways:
- Hosting control panel. In cPanel, Plesk, DirectAdmin and most hosting panels, the PHP version is shown in the domain settings.
- WordPress. Dashboard → Tools → Site Health → Info → Server.
- Server with SSH access.
php -vshows the command-line version. Your site may use a different one through PHP-FPM, so also checksystemctl statusfor the php-fpm service.
A note for Debian, Ubuntu and RHEL servers. Distributions often backport fixes into an older package version without changing the number. A server may report, say, PHP 8.3.6 and still be patched. In that case check the package changelog and look for CVE-2026-109618 and CVE-2026-109619:
- Debian/Ubuntu:
apt changelog php8.3-fpm | head -50 - RHEL/AlmaLinux/Rocky:
rpm -q --changelog php | head -50
Step 2: Prepare before you change anything
Urgency is no excuse for skipping care:
- Take a full backup of site files and the database, separately. On a VPS, a snapshot of the whole machine is best.
- Record the current state: PHP version and module list (
php -m), so you can confirm nothing went missing afterwards. - If you are changing branch (for example from 7.4 or 8.1 to 8.3+), test on a copy of the site first. Check that plugins, theme and modules support the new version.
- Updating within the same branch (for example 8.4.26 → 8.4.27) carries little compatibility risk.
Step 3: Update PHP
Shared hosting
On shared hosting you usually cannot update PHP yourself; the hosting company does it. You have two jobs:
- Ask your host whether they have deployed 8.5.12 / 8.4.27 / 8.3.36 / 8.2.35 or the fixes for CVE-2026-109618 and CVE-2026-109619. Ask for written confirmation.
- If you are on PHP 8.1 or older, switch the domain to a supported version in your panel. In cPanel that is MultiPHP Manager; in Plesk, the domain's PHP Settings. In other panels look for a "PHP version" option in the domain settings or ask support.
VPS or dedicated server with Debian / Ubuntu
- Refresh the package list:
sudo apt update - See what can be upgraded:
apt list --upgradable | grep php - Install updates:
sudo apt full-upgrade, or just the PHP packages, e.g.sudo apt install --only-upgrade php8.3-fpm php8.3-cli - Restart PHP-FPM:
sudo systemctl restart php8.3-fpm(change the number to your version) - For Apache with mod_php:
sudo apache2ctl -t, thensudo systemctl restart apache2
If you use Ondřej Surý's repository, a popular source of newer PHP versions on Debian and Ubuntu, the update works the same way.
Server with RHEL, AlmaLinux or Rocky Linux
- List available security fixes:
sudo dnf updateinfo list --security - Update PHP within the enabled stream:
sudo dnf update "php*" - Restart the service:
sudo systemctl restart php-fpmorsudo systemctl restart httpd
If you use the Remi repository, the update also goes through dnf update.
Docker
Pull the new image and rebuild the container: docker pull php:8.4-fpm, then docker build --pull -t my-app . and redeploy. If your Dockerfile pins an exact version (for example php:8.4.26-fpm), bump it to the patched release.
Step 4: Check everything works
php -vand the version your site sees (for example in WordPress Site Health) show the fixed version, or a package whose changelog lists the CVE fixes.- The module list matches the one you saved before the update.
- The site, login, cart, payments and contact forms work.
- No new errors in the PHP-FPM and web server logs:
journalctl -u php8.3-fpm -n 50
Cannot update today? Reduce the risk
The PHP project lists settings that reduce the risk but do not remove it. Treat them as a stopgap for a few hours, not a replacement for the update. Most need access to server configuration, so on shared hosting you usually cannot apply them.
session.upload_progress.enabled=0in php.ini or the FPM pool config, then restart every worker. Setting it withini_set()or.user.iniis not enough, according to the PHP project. Its 23 October 2026 notice recommends this value until the next bugfix release, to fully protect against an unlikely RCE vector tied to sessions.- A low
post_max_size: 8M for sites without file uploads, 32M if uploads are needed. memory_limit=-1enforced at server configuration level. The PHP advisory recommends it as the primary setting, but states it is not a complete mitigation.- Do not use
RLIMIT_ASorRLIMIT_DATA. The GHSA-w8hw-w9fx-j79w advisory warns they can trigger the vulnerable allocation-failure path. - On PHP 8.5, set
fatal_error_backtraces=0and restart every worker. Per GHSA-6wmf-4rv5-p3rp, this removes one producer of the confirmed RCE case, but does not cover other state families.
If the update fails or the server already shows signs of compromise, emergency website support is the fastest route. Sites that need patching on a schedule are covered by website maintenance.
Sources
- Official PHP team announcement, 21 Oct 2026: fixed versions, mod_php risk, "no complete mitigations" statement, 23 Oct 2026 notice on
session.upload_progress. - GHSA-w8hw-w9fx-j79w (CVE-2026-109618): affected ranges, patched versions, CVSS 4.0 9.2, workarounds.
- GHSA-6wmf-4rv5-p3rp (CVE-2026-109619): affected ranges, patched versions, CVSS 4.0 9.2, workarounds.
- php.net/supported-versions and php.net/eol: support and end-of-life dates.
- W3Techs: PHP version usage: as of 27 Oct 2026.
- GDPR Article 33, gdpr-info.eu: 72-hour notification rule.
Checked on 27 October 2026. Reports of attacks in the wild come from third parties and are not confirmed in the official announcement.
Need help updating your server?
If you are not sure which PHP version your site runs, whether your host has deployed the fix, or you do not want to risk doing the update yourself, I can update your server for you. I will check your PHP version, take a backup, run the update and make sure your site, shop and forms work as before. If your site is on an unsupported version, I will plan a safe move to a newer one.
Need help with PHP? I can run the update and check the site afterwards. If the server already looks suspicious, start with emergency website support. If you want updates like this handled on a schedule, look at website maintenance.
Get in touch or call +48 791 509 560.
Frequently asked questions
Is my PHP version affected?
Branches 8.2 before 8.2.35, 8.3 before 8.3.36, 8.4 before 8.4.27 and 8.5 before 8.5.12 are affected. Branches 8.1 and older no longer receive fixed releases from the PHP project. Linux distributions can backport fixes without changing the version number, so check the package changelog too.
How do I check my site's PHP version?
Run php -v on the server over SSH. In WordPress, go to Tools → Site Health → Info → Server. The site may use a different version from the command line, so also check php-fpm and the domain's PHP setting in your hosting panel.
Does shared hosting update PHP automatically?
Not necessarily. On shared hosting the hosting company usually updates PHP, and how fast it rolls out patches depends on the provider. Ask your host whether they have deployed 8.5.12, 8.4.27, 8.3.36 or 8.2.35, and ask for confirmation in writing.
Is WordPress affected if my plugins are up to date?
Yes, if the site runs an affected PHP version. The flaws sit in the PHP engine that handles every request, so up-to-date plugins, a theme update or a strong password do not protect you. The PHP team says all PHP installations serving web requests are affected.
What if I cannot update PHP right away?
Set session.upload_progress.enabled=0 in php.ini or the FPM pool config and restart all workers. Set memory_limit=-1 and a low post_max_size. These steps reduce risk, but the PHP project says they are not a complete mitigation. Treat them as a stopgap, not a replacement for the update.
Do I need to leave PHP 8.2 right away?
Not immediately, but plan for it. Security support for PHP 8.2 ends on 31 December 2026. For a larger migration, target 8.4 or 8.5, which receive security fixes until 2028 and 2029.