How to Protect Your WordPress Site From the October 2026 PHP Vulnerabilities
Ask whoever controls your hosting to move your live site to a patched PHP release (8.5.12, 8.4.27, 8.3.36, or 8.2.35, or later), then check that this is the version actually serving your site. Updating WordPress, your theme, or your plugins won’t fix it, because the flaws are in PHP itself and not in WordPress.
If your website brings in calls, consultation requests, or booked jobs, this is the week to find out who actually runs your server. Many firm owners and contractors have never needed to know. Now you do.
Key Takeaways
- Both new PHP flaws are rated 9.2 out of 10, and an attacker doesn’t need to log in to use either one.
- The fixes are in PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35, released on October 21, 2026.
- WordPress.org says no WordPress update is needed or planned for these issues.
- PHP 8.2 gets security fixes only until December 31, 2026, so a patched 8.2 site needs another move soon.
- SocioSquares patched every client website it manages within 4 hours of the PHP release.
How do I protect my WordPress website from the new critical PHP vulnerabilities?
Have whoever controls your hosting move the live site to PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35, or later. Then confirm that this version is the one actually serving your site. A WordPress, theme, or plugin update does not fix this.
In practice, that’s three jobs. Find out who controls PHP for your site. Get a written yes from them. Then check the live version yourself. The rest of this guide covers each step.
What happened on October 21, 2026?
The PHP project released emergency fixes for two flaws in PHP, the programming language WordPress runs on. According to the PHP security advisory, the flaws are tracked as CVE-2026-109618 and CVE-2026-109619. Both can let an attacker run their own code on your server without logging in. PHP’s advance notice rated each one 9.2 out of 10.
In plain terms, one flaw lets PHP clean up memory that was never properly set up when a request runs out of memory. The other lets leftover data from one request be used by the next request on the same PHP worker. In both cases, a carefully crafted request can then take control of the server. PHP says the risk applies to “all PHP installations serving web requests.” PHP considers the risk highest for Apache with mod_php, where it demonstrated an attack that runs “before any application code runs”, which means before WordPress even starts.
That’s why WordPress.org’s notice says these vulnerabilities are “not specific to WordPress and affect any server that hosts a PHP application,” and that “No WordPress update is required or planned.”
Who controls PHP on your site, and what should you ask for?
Whoever runs the server controls PHP, and that’s usually not you. Use this table to work out who to contact.
| Your setup | Who controls PHP | What to ask for or do |
|---|---|---|
| Shared hosting | Your hosting company | Send the question below. If your control panel lets you choose a PHP version, pick a supported one only after the host confirms it’s patched. |
| Managed WordPress hosting | Your hosting company | Ask for written confirmation that your site runs on a patched PHP build and that PHP has been restarted. |
| Agency-managed site | Your agency, working with the host | Ask the agency to confirm the live PHP version for each site it runs for you, including staging copies. |
| VPS or dedicated server | Whoever administers the server: you, your developer, or the host on a managed plan | Install the updated PHP packages, restart PHP and the web server, then check the live version. |
| Containers | Whoever builds and deploys the image | Rebuild the image on patched PHP and redeploy. Containers still running the old image stay exposed. |
If you are not sure which row fits you, check who sends your hosting invoice. Start there.
The exact question to send your host
Copy this word for word:
“Is the PHP service serving my site patched for CVE-2026-109618 and CVE-2026-109619, and has PHP been restarted?”
The restart matters. PHP keeps running worker processes in memory, and new code only takes effect once those processes restart. Ask for the answer in writing. PHP notes that Linux distributions and support vendors received the patches in advance. Some hosts apply fixes through those vendor packages, so a written yes tells you more than a version number alone.
How to check which PHP version your live site uses
In your WordPress dashboard, go to Tools > Site Health > Info > Server. The PHP version listed there is the one running your website. WordPress.org points site owners to this same screen, and many hosts show it in their control panel too.
If your developer runs php -v on the server and gets a different number, they’re not imagining it. A server can have several PHP versions installed. The command-line tool your developer types into isn’t always the one the web server uses for your site. Even when the right package is installed, the website keeps running the old code until the PHP service restarts. So Site Health is the check that counts, because it reports what your visitors’ requests actually run on.
The next deadline: PHP 8.2 ends December 31, 2026
If your site was patched on 8.2.35, you’re covered for now, but not for long. PHP’s supported versions page lists December 31, 2026 as the end of security support for 8.2. After that date, 8.2 gets no more fixes. Plan a move to 8.3 or later now, while you have time to test.
Versions older than 8.2 no longer get releases from the PHP project. Some vendors add the fixes to older packages, but unless your host confirms that in writing, treat a site on 8.1 or older as the most urgent case on this page.
How SocioSquares patched every site it manages within 4 hours
SocioSquares, a digital marketing agency for law firms and home service businesses founded in 2011, patched every client website it manages within 4 hours of the PHP release. Those sites sit with many different hosting companies, so the team had to work through each provider in turn. It worked in five steps:
1. Picked up the advance notice. The PHP security team announced the release ahead of time, so the team listed every managed site and its host before the fixes shipped.
2. Hardened sites before patches reached every host. Not every host could roll out patched PHP right away. Where it was possible, the team put interim protections in place while waiting.
3. Got written confirmation from each host. Every host received the same question about both CVEs and the PHP restart, and the team kept each written answer.
4. Checked staging and older environments. Test copies and older setups run PHP too, so the team checked them as well.
5. Verified the live PHP version on every site. A host’s “done” wasn’t the finish line. The team checked Site Health on each site.
“[Approved quote from the team lead goes here.]”
[Name], [Role], SocioSquares
The SocioSquares Patch Confirmation Checklist
Use this with your own host or agency:
☐ I know who controls PHP for my site (host, agency, developer, or me).
☐ I’ve asked whether interim protections are in place while the patch rolls out.
☐ I have a written yes to: “Is the PHP service serving my site patched for CVE-2026-109618 and CVE-2026-109619, and has PHP been restarted?”
☐ Staging, test, and older copies of my site are patched or switched off.
☐ Site Health shows 8.5.12, 8.4.27, 8.3.36, or 8.2.35 or later, or my host has confirmed in writing that its PHP package includes both fixes.
☐ Logs from before the release through the patch have been kept.
☐ If I’m on PHP 8.2, a move to 8.3 or later is scheduled before December 31, 2026.
Do backups and firewalls protect you?
They help, but they don’t replace the patch. A web application firewall (WAF) can block known attack patterns, and WordPress.org notes that hosts may be adding firewall rules. No firewall blocks every exploit, though. PHP’s own release notes say: “There are no complete mitigations; updating is the only safe choice.”
| Measure | What it does | Is it enough on its own? |
|---|---|---|
| Updating to a patched PHP release | Removes both flaws | Yes. PHP calls updating “the only safe choice” |
| Turning off session upload progress | Reduces exposure to one attack path for CVE-2026-109619 | No. PHP says interim measures “do not make an installation safe” |
| Tightening memory and upload limits | Reduces exposure to one attack path for CVE-2026-109618 | No |
| Web application firewall rules | Blocks known attack patterns | No. No firewall blocks every exploit |
| Off-host, tested backups | Lets you restore if something goes wrong | No. A backup doesn’t close the hole |
Backups stored away from your host, and tested so you know they restore, give you a way back if something goes wrong. But a backup restores files. It does not close the hole.
Keep your logs. Ask your host or developer to keep web server, PHP, and firewall logs from 48 hours before the October 21 release until the moment your site was patched. Hosts often delete old logs on a schedule, so ask now. If patching was delayed, have someone qualified review those logs for unusual activity.
Should compatibility testing delay the patch?
No. Moving within your current branch, for example from 8.3.35 to 8.3.36, is a security point release, and that’s the step to take first. Save full compatibility testing for the bigger jump, such as 8.2 to 8.3, and do it on a staging copy after the exposed live site is patched.
When is going offline worth discussing?
Talk to your host about restricting access or taking the site offline if it can not be patched soon. This applies most of all if you manage your own hosting and run a PHP version older than 8.2. WordPress.org advises those site owners to consider taking the server offline while they prepare to upgrade, and quotes the UK National Cyber Security Centre:
“Where immediate remediation is not feasible, organisations should consider taking the system offline until it can be fully mitigated.”
A WordPress maintenance-mode plugin isn’t the same thing. PHP shows that one attack path runs before WordPress loads, so any restriction has to happen at the server or host level.
What if your site may already be compromised?
Patching closes the hole. It doesn’t remove an attacker who’s already inside. The NCSC advises checking any system that couldn’t be updated quickly for signs of compromise and backdoors. If you see warning signs, such as unknown admin accounts, changed files or strange traffic, bring in a qualified incident response provider. SocioSquares isn’t an incident response firm.
Frequently Asked Questions
Who keeps my WordPress site patched if I don’t manage the server?
Usually your hosting company, or your agency if it runs hosting for you. They control PHP, so ask them the question above and get the answer in writing.
Will updating WordPress or my plugins fix this?
No. The flaws are in PHP, and WordPress.org says no WordPress update is required or planned for these issues.
Which PHP versions are safe?
PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, or later releases in those branches. Some Linux and long-term-support vendors add the same fixes to packages with older version numbers, so a written confirmation from your host counts too.
How do I check my PHP version without a developer?
Open Tools > Site Health > Info > Server in your WordPress dashboard. That shows the version actually serving your site.
Is my site affected if it isn’t built on WordPress?
Yes, if it runs on PHP. These flaws affect any server hosting a PHP application, whatever the platform.
Do I need to do anything after my host says it’s patched?
Yes. Check Site Health yourself, make sure staging copies are covered, and plan a move off PHP 8.2 before December 31, 2026, if that’s what you are on.
What to Do Next
A website that brings in cases and jobs is worth one email today. Find out who controls your PHP, send them the question above, and check Site Health once they reply. If you’d like website care from a team that already works with many hosts, talk to SocioSquares.
ChatGPT