Critical PHP Vulnerability: How to Patch CVE-2026-109618

php-vulnerability-CVE-2026-109618

Update, 22 October 2026: The UK’s National Cyber Security Centre (NCSC) has issued an alert urging organisations to act now on two critical security flaws affecting PHP. Fixed versions are available. Here’s what happened, who’s affected, and exactly what to update to.

What has happened?

The PHP project has released a security update fixing two critical flaws that could let an attacker run code on a web server running PHP, without logging in. They are tracked as CVE-2026-109618 and CVE-2026-109619, and the NCSC published its alert on 21 October 2026.

  • CVE-2026-109618 (remote code execution via out-of-memory corruption): if a request hits PHP’s memory limit at exactly the wrong moment, PHP can be left with partly set-up internal data and later treat it as valid, corrupting memory.
  • CVE-2026-109619 (remote code execution via stale state): a fatal error at the wrong point can leave internal state pointing at memory from a previous request. A later request handled by the same worker can then use that freed memory.

The PHP project rates both as critical (CVSS v4.0 score of 9.2). Its highest concern is servers running PHP through Apache’s mod_php, where an unauthenticated request can trigger the first flaw before any application code runs. Remote code execution has also been confirmed on PHP-FPM through application-level code paths, so this is not just a mod_php problem.

Which version should you be on?

The fixes shipped on 21 October 2026. Update to the release for your PHP branch, or newer:

If you run…Update to…
PHP 8.5.x8.5.12 or later
PHP 8.4.x8.4.27 or later
PHP 8.3.x8.3.36 or later
PHP 8.2.x8.2.35 or later
PHP 8.1, 8.0, 7.4 or olderThese branches are no longer supported. Upgrade to a supported branch above.

Using a Linux distribution’s packages? Many distributions backport security fixes without changing the headline PHP version number, so a package may look older than the table above and still be patched. Check your distribution’s or vendor’s security advisory for the fixed package version rather than relying on the version string alone. If you run cPanel or CloudLinux, see the commands below.

Stuck on an old branch? The PHP security team has also published minimal source backports for PHP 7.4, 8.0 and 8.1 for people who build PHP from source and don’t have a long-term-support vendor. These are a stopgap. Upgrading to a supported branch is the proper fix.

Who is affected?

According to the NCSC, any version of PHP is affected, so this isn’t limited to old releases. Anyone running PHP should update to a fixed version.

PHP also sits underneath a huge amount of software, including WordPress, Joomla, Magento, Laravel apps, forums, and many other products. If your site or application runs on PHP, this applies to you.

What are we doing about it?

We’ve completed security updates across our hosting infrastructure to address the recently disclosed critical PHP vulnerabilities (CVE-2026-109618 and CVE-2026-109619).

Once CloudLinux released its official security patches, our team promptly updated our hosting servers, including those running older PHP versions.

What should you do?

  1. Find out which PHP version you’re running. In your hosting control panel, check the PHP version selected for each site. On a server you manage yourself, run php -v, but note that the command-line version can differ from the one your web server uses, so check the web-facing version too.
  2. Update to a fixed version. Use the table above. If you run cPanel or CloudLinux, use the commands in the next section. Test on staging first where you can, but don’t let testing turn into a long delay.
  3. Restart PHP after updating. Reload or restart PHP-FPM or Apache so running processes pick up the patched code.
  4. Apply the PHP team’s temporary mitigations if you can’t update yet. They are published in the PHP security advisories. Treat them as a short-term stopgap, not a replacement for updating.
  5. Consider taking exposed systems offline. If you can neither update nor apply the mitigations quickly, the NCSC advises considering taking the system offline until it is fixed.
  6. Check for signs of compromise. If a system stayed exposed for any length of time, look for evidence of compromise, including backdoors an attacker may have left behind. If you find any, change passwords and API keys. If you’re not confident doing this yourself, bring in a professional incident response provider.
  7. Watch for bundled PHP. Some appliances and services ship with their own copy of PHP. Keep an eye on vendor updates for those too. The Dutch NCSC has published a list of software products with a PHP dependency that may be affected.

Fix commands for cPanel and CloudLinux servers

These commands are for administrators of VPS and dedicated servers. Run them as root. If you’re on shared hosting, your provider handles this for you.

1. Update PHP

cPanel (EasyApache 4 PHP):

yum update 'ea-php*'

CloudLinux (alt-php):

yum update 'alt-php*'

2. Restart PHP

After updating, restart PHP so the patched version is actually loaded:

/scripts/restartsrv_apache_php_fpm && /scripts/restartsrv_httpd

LiteSpeed users: also restart the detached PHP processes.

3. Check that PHP is patched

These commands check each installed PHP package’s changelog for the two CVE numbers. A package that has the fix will print the matching changelog line. A package without it will print NOT fixed yet.

cPanel EasyApache 4:

for p in $(rpm -qa 'ea-php*-php-common' | sort); do
  echo "== $p"
  rpm -q --changelog "$p" | grep -iE 'CVE-2026-10961[89]' || echo "   NOT fixed yet"
done

CloudLinux alt-php:

for p in $(rpm -qa 'alt-php*-common' | sort); do
  echo "== $p"
  rpm -q --changelog "$p" | grep -iE 'CVE-2026-10961[89]' || echo "   NOT fixed yet"
done

If a branch still shows NOT fixed yet after you’ve updated, the fixed package may not have reached your repository yet. Run the update again later, or check your vendor’s advisory.

Why this one matters

Remote code execution without authentication is about as serious as web vulnerabilities get. It requires no stolen password and no tricking of a user. Details of these flaws have circulated since before the fix was released, and proof-of-concept exploit code has started to appear, so the safest assumption is that the window to patch is short.

Further reading


Need a hand updating PHP or checking your site? Contact our support team and we’ll help you get sorted.

Scroll to Top