On 21 October 2026 the PHP team released four security versions to fix two critical vulnerabilities. Both can let someone with no account or password run code on your server. If your site, store or system runs on PHP (Laravel, WordPress and WooCommerce do), this concerns you.
What was fixed
- CVE-2026-109618. When PHP runs out of memory at a specific moment, it leaves internal request data half initialized, and the cleanup that follows treats it as valid.
- CVE-2026-109619. Part of a request’s internal state survives after its memory has been freed, and the next request handled by the same process can use it.
According to the official advisory, both are rated 9.2 out of 10 on CVSS v4.0. The highest risk is Apache with mod_php, where there is a demonstrated exploit that triggers before your application code runs. PHP-FPM, php-cgi, FrankenPHP and LiteSpeed are also affected.
Which version to update to
| If you use | Update to |
|---|---|
| PHP 8.5 | 8.5.12 |
| PHP 8.4 | 8.4.27 |
| PHP 8.3 | 8.3.36 |
| PHP 8.2 | 8.2.35 |
PHP 8.1 and older no longer receive updates from the project. If you are on one of those, ask your provider whether it has its own patch, or move to a supported version. Also, PHP 8.2 reaches end of life on 31 December 2026, so it is worth planning the jump now.
How to update depending on where your site is
- Your own server (VPS, CloudPanel, etc.): update the PHP package with your distribution’s package manager and restart PHP-FPM or Apache. Confirm the version with
php -vand also from aphpinfo()on the site, because the console PHP can be different from the one serving the web. - Shared hosting or cPanel: open the PHP version selector and choose the latest in your branch, or write to your provider and ask for it.
- Docker: change the image tag to the fixed version, rebuild and redeploy. Restarting the container is not enough if the image is still the old one.
If you cannot update today
Only the update solves the problem completely. Meanwhile, the PHP advisory suggests measures that reduce exposure without making the server safe:
- Set a low
post_max_size(8M if you do not receive files, 32M if you do) and limit request size at the web server. - Disable
session.upload_progress.enabledand restart all workers. - On PHP 8.5, set
fatal_error_backtraces=0. - For the first flaw, the advisory recommends
memory_limit=-1applied at server level so the application cannot change it, together with container limits.
The details and caveats of each measure are in the official PHP advisory.
My checklist for today
- Find out which PHP version each site or system you manage runs.
- Update those on 8.2 to 8.5 in the branch that applies to you, starting with the ones that get public traffic.
- Restart PHP and check that the new version is the one serving the web.
- Check that the site and the contact form still work.
If you do not know which version you have or have nobody to make the change, see how I take projects to production or tell me about your project.