News · 27 October 2026
PHP critical RCE advisory (21 October): what to do
On 21 October 2026 the PHP project released 8.5.12, 8.4.27, 8.3.36 and 8.2.35 to fix two critical remote code execution flaws, announced the day before. The advisory is on php.net.
The two flaws.
- CVE-2026-109618: an out-of-memory condition interrupts PHP while request data is only partly set up, and the cleanup later treats it as valid.
- CVE-2026-109619: state belonging to one request can outlive its freed memory and be used by a later request on the same worker.
PHP says every installation that serves web requests is at risk, whether it uses PHP-FPM, Apache mod_php, php-cgi, FrankenPHP or LiteSpeed. The risk is highest for mod_php, where PHP reports a demonstrated exploit in which an unauthenticated request triggers the attack before any application code runs. PHP 8.1 and older receive no updates from the project; it only offers minimal backports for source builds.
What to do.
- Update PHP to one of the versions above. On shared hosting, find out from your provider when it is done, and check the version in your control panel or with
php -v. Restart the PHP workers. - Until then, the advisory lists mitigations that reduce exposure but do not make the server safe:
memory_limit=-1set at server level so applications cannot override it, limits on request size, andsession.upload_progress.enabled=0with a restart of all workers. Set these in the server configuration, not withini_set()or.user.ini, which do not count here. - If you are on 8.1 or older, this is the reason to move. Plan the upgrade, test the plugins and modules on the new version first, and keep the old one available for a quick return.
- On 23 October PHP published an informational note about the second flaw's session upload path, advising
session.upload_progress.enabled=0until the next regular release. It says the issue needs an unusual combination of configuration and application code, but the setting is cheap to check.
A PHP update on a live shop is routine work done carefully: copy first, test on a staging copy, switch, watch the logs.
Sources: