Critical PHP Bug: The Fix Is Out, Here's What to Do
Updated October 21, 2026 at 5:15 pm. I originally wrote this in the morning, before the fix was released. The fix has since come out, so I have updated the text.
On the morning of October 21, 2026, I found out about two serious security bugs in PHP, labelled CVE-2026-109618 and CVE-2026-109619. PHP is the technology behind a huge share of the websites on the internet, including WordPress and a lot of online shops. Details of the bugs leaked the day before. The official fix was released on the afternoon of October 21, 2026.
What is going on
Both bugs (CVE-2026-109618 and CVE-2026-109619) are rated critical (9.2 out of 10). An attacker can exploit them remotely, without logging in, with a single request to a website, and take control of the server the website runs on. According to security firms, working attack tools are already circulating, so mass attempts against websites that are not yet fixed are expected.
What is the fix
The real fix is a new PHP version. PHP officially released it for these lines:
- PHP 8.5: version 8.5.12
- PHP 8.4: version 8.4.27
- PHP 8.3: version 8.3.36
- PHP 8.2: version 8.2.35
On shared hosting that is usually one click in the administration, or the hosting company does it for you. If you do not know which version you have, ask your website admin or hosting support.
Older PHP versions. No official fix was released for PHP 8.1 and older. Unofficial fixes from third parties exist, but relying on them is not ideal. If your website runs on such a version, plan on moving to a newer PHP version, or to different hosting.
A temporary safeguard until the fix reaches you
One of the bugs (CVE-2026-109619) is connected to a feature that shows the progress of a file upload on a website (technically session.upload_progress). Most websites do not use it, so switching it off usually breaks nothing. Your website admin or hosting support can set this up, and you may only need to send them that name.
The other bug (CVE-2026-109618) is connected to requests to a website that are too large. Limiting the size of what a website will accept helps. If your website does not need file uploads, the admin can also temporarily block requests that upload files.
These steps only reduce the room for an attack. According to the official information, they do not make a website safe and they do not replace updating PHP. Treat them as a stopgap until your hosting rolls out the fixed version.
What I did
- I switched off a feature my websites do not need. That is the safeguard described above. It breaks nothing and can be reversed at any time.
- I blocked file uploads from the public side of my sites where I do not need them. I checked that such a request is stopped before it reaches PHP, and that ordinary forms keep working.
- I checked that the changes really took effect. Entering them is not enough. In a few places they did not work at first, even though it looked like they did, and only the check showed that they had to be done differently.
- I deleted a helper page that listed the server's settings. Pages like that are easily forgotten on a website while you are testing settings, and they tell an attacker exactly what is running on the server.
- I asked my hosting for the fixed version and I am waiting for it. Until then, only the safeguards above apply, and they guarantee nothing.
- I wrote a short summary for people who have a website but are not technical. It tells them what to check without making them learn technical terms. I hope this article does the same.
I used Claude to sort out what is safe to do right away and what is still guesswork. It helps to have someone to check facts with at 5:30 in the morning and start acting right away.
What everyone with a website should do
- Ask whoever looks after your website. Write to the agency, developer or friend and ask whether they know about CVE-2026-109618 and CVE-2026-109619 and are dealing with them. It is the fastest step and often all that is needed.
- Check your hosting. If you manage the site yourself, find out in the hosting administration which PHP version you use. If a fixed version (8.5.12, 8.4.27, 8.3.36 or 8.2.35) is available, switch to it. If not, ask hosting support when they will roll out the fix.
- Delete old and unused websites. Forgotten test copies are the most common way in for an attacker. So are helper pages that print the server's settings.
- Keep a current backup of the website. If anything goes wrong, you want something to go back to.
- Check your passwords. The website administration deserves a long, unique password, ideally with two-factor login.
How to tell something is wrong
If your website suddenly behaves oddly, for example it does not open, sends out spam, or shows pages or links you did not put there, contact your hosting or website admin as soon as possible.
No need to panic
This is a normal part of running a website and it is solved with a few steps, as long as they are done quickly. What matters is that someone knows about it, checks it in the next few days and rolls out the fix.
Sources
Official information:
- PHP: release announcement for the fixes (October 21, 2026)
- PHP: security information
- Security advisory GHSA-w8hw-w9fx-j79w (CVE-2026-109618)
- Security advisory GHSA-6wmf-4rv5-p3rp (CVE-2026-109619)
Unofficial reports I worked from before the fix was released: