PHP security warning
Critical PHP security fixes released on 21 October 2026
This is a developing story
In short
- On 21 October 2026, the PHP project published fixes for two critical vulnerabilities that it says can allow unauthenticated remote code execution: someone could run their own code on an affected server without logging in.
- The fixed versions are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. PHP.net says all PHP users are strongly encouraged to update immediately.
- WordPress runs on PHP, so most WordPress websites rely on their hosting provider updating PHP on the server. Updating WordPress itself does not update PHP.
- These vulnerabilities are being actively exploited. On 26 October 2026, the US Cybersecurity and Infrastructure Security Agency (CISA) added both to its list of known exploited vulnerabilities, and security researchers have reported successful attacks. Updating is no longer something to schedule for later.
What happened?
PHP is the programming language that powers WordPress and a large share of the web. On 21 October 2026, PHP.net published a security advisory titled "Critical remote code execution vulnerabilities, update now", alongside new releases for every supported version of PHP.
The two vulnerabilities are:
- CVE-2026-109618 ("RCE via OOM corruption"): PHP's handling of running out of memory can interrupt it while internal request data is only partly set up, and the clean-up that follows can then treat that invalid data as valid.
- CVE-2026-109619 ("RCE via stale global state"): internal information belonging to one request can survive after its memory has been freed, and a later request handled by the same PHP worker may use it.
The PHP project's advisories on GitHub rate both as critical (CVSS v4 score 9.2). CISA's alert refers to the pair as "php2shell".
Who is affected?
According to PHP.net, the risk applies to all PHP installations serving web requests, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. PHP.net considers the risk highest for Apache with mod_php, where it says it has a demonstrated exploit that works before any website code runs.
In practice, that means the question for most business owners isn't "is my website affected?" but "has my hosting provider updated PHP?"
Which versions fix it?
There are two different things to keep apart: which releases contain this specific fix, and which PHP versions are still supported in general. The table shows both.
| PHP branch | Fixed in (upstream) | General support status |
|---|---|---|
| PHP 8.5 | 8.5.12 or later | Currently supported (security fixes until 31 December 2029) |
| PHP 8.4 | 8.4.27 or later | Currently supported (security fixes until 31 December 2028) |
| PHP 8.3 | 8.3.36 or later | Security fixes only (security fixes until 31 December 2027) |
| PHP 8.2 | 8.2.35 or later | Security fixes only (security fixes until 31 December 2026) |
| PHP 8.1 | No upstream release* | End of life since 31 December 2025 |
| PHP 8.0 | No upstream release* | End of life since 26 November 2023 |
| PHP 7.4 | No upstream release* | End of life since 28 November 2022 |
* PHP 8.1 and older no longer receive updates from the PHP project. PHP.net says some Linux distributions and long-term-support vendors provide backported fixes, and, because of the severity, the PHP security team also published minimal source backports for PHP 7.4, 8.0 and 8.1 for people who build PHP themselves. If your site runs one of these versions, ask your host what they've applied, and plan an upgrade.
Note that being on a supported branch isn't enough on its own: a site on PHP 8.3 is only protected against these two vulnerabilities from 8.3.36 onwards (or if the host has applied the fix another way).
What WordPress site owners should do
- Find your PHP version. In WordPress, go to Tools → Site Health → Info → Server. Step-by-step guide.
- Check it. Enter it in our PHP version checker, which compares it with the fixed releases above and PHP's support dates.
- If it's older than the fixed release, ask your host. Many hosts, and Linux distributions such as Ubuntu and Debian, apply security fixes to PHP without changing the main version number. PHP.net says distributions received the patches in advance. So an older-looking number doesn't automatically mean you're unprotected, but your host is the only one who can confirm it.
- Keep everything else updated too. This fix is in PHP itself, so it doesn't replace keeping WordPress, plugins and themes up to date.
A useful question for your host: "Has the PHP on my hosting been updated for CVE-2026-109618 and CVE-2026-109619 (PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or an equivalent vendor patch)?"
If you manage your own server
Update to a fixed release, or install your distribution's updated PHP packages, and restart every PHP worker (PHP-FPM pools, Apache, LiteSpeed and so on). If you run PHP.net's Windows builds, install the rebuilt packages it published on 26 October (8.5.12-1, 8.4.27-1, 8.3.36-1 and 8.2.35-1), which also fix a separate vulnerability in the bundled Brotli library (CVE-2026-111497, which CISA added to its known exploited list on 27 October); the PHP version itself is unchanged. PHP.net lists interim measures for anyone who can't update immediately (for example disabling session.upload_progress.enabled and lowering post_max_size), but stresses that they reduce exposure to specific attack paths and do not make an installation safe. Read the full PHP.net advisory before relying on them. CISA additionally advises patching internet-facing systems first, and monitoring for PHP worker processes launching shells or downloading tools. It says systems that can't be updated straight away, or that run PHP 8.1 or older, should be taken offline until they are.
Also turn off session upload progress, even after updating. On 23 October 2026, PHP.net advised setting session.upload_progress.enabled=0 until its next regular release, to close a further, unlikely remote code execution path (CVE-2026-115560) that the 21 October releases don't fully fix. It only affects applications that change PHP's session serialize handler at runtime, but the setting costs most sites nothing. If you applied it as an interim measure on 21 October, keep it in place.
Is it being exploited?
Yes. On 26 October 2026, CISA added both CVE-2026-109618 and CVE-2026-109619 to its Known Exploited Vulnerabilities catalogue, its list of flaws with evidence of real-world attacks, and revised its alert the same day. It gave US federal agencies until 29 October 2026 to fix them.
Amazon's threat intelligence team reports exploitation attempts beginning on 17 October, four days before the fixes were published, and describes broad exploitation attempts in the wild since. Proof-of-concept exploit code has been published. On 26 October 2026, BleepingComputer reported the first well-evidenced successful remote code execution, against honeypots (servers set up to attract attackers) running Apache with mod_php on PHP 8.4.26, the release just before the fix. That setup is the easiest one to attack, so it doesn't show how reliably other setups can be exploited, but there's no longer any reason to wait. We'll keep this page updated as official sources change.
Host Dada customers
If you host with Host Dada and want to confirm the PHP version and patch status of your hosting, please open a support ticket. If your website is hosted elsewhere and you'd like help understanding your results, you can run our free check and send us the report.
Sources
- PHP.net: Security advisory: Critical remote code execution vulnerabilities, update now (21 October 2026)
- GitHub php-src advisory GHSA-w8hw-w9fx-j79w (CVE-2026-109618): RCE via OOM corruption (21 October 2026)
- GitHub php-src advisory GHSA-6wmf-4rv5-p3rp (CVE-2026-109619): RCE via stale global state (21 October 2026)
- CISA: Critical Vulnerabilities in PHP Require Immediate Patching (revised 26 October 2026) (26 October 2026)
- CISA: Known Exploited Vulnerabilities Catalog (26 October 2026)
- PHP.net: Informational advisory: Session upload progress (23 October 2026)
- PHP.net: Updated PHP Windows builds for Brotli security fix (26 October 2026)
- BleepingComputer: PHP2Shell security flaws now successfully exploited in the wild (26 October 2026)
- Tenable: php2shell (CVE-2026-109618, CVE-2026-109619) frequently asked questions (28 October 2026)
- PHP.net: Supported versions (26 October 2026)
This page is general information for website owners, not professional security advice for your specific systems.
Check your website and PHP version
Free, passive and takes a few seconds. No account needed.
Guides for website owners
- Check your PHP versionIs your PHP version supported? Check it against official data.Read guide
- Find your PHP version in WordPressStep-by-step, with or without dashboard access.Read guide
- WordPress security checkerWhat we can (and can't) see about WordPress sites.Read guide
- How the check worksEvery check explained, plus its limitations.Read guide
- Security headers explainedWhat each header does and how we judge it.Read guide
- Content Security PolicyHow to read a policy and roll one out safely.Read guide
- HSTS explainedWhat a redirect can't do, and how to enable HSTS safely.Read guide
- SSL certificate checkValidity, expiry and what certificate errors mean.Read guide
- X-Powered-By and version leaksWhat your site gives away, and how to remove it.Read guide
- Website hacked? What to checkThe signs, the first hour and a proper clean-up.Read guide