Opens in a new tab

Critical PHP Vulnerabilities (CVE-2026-109618 & CVE-2026-109619): What You Need to Know and Immediate Next Steps

Two critical remote code execution (RCE) vulnerabilities have been discovered recently that affects all application that is running in PHP , giving hackers the ability to gain access to websites by exploiting these flaws. Both are reported to allow remote code execution without authentication on default PHP installs.

Understanding the Vulnerabilities

Based on my understanding of what is currently happening, both vulnerabilities stem from memory-handling issues within the PHP engine when managing errors or execution flows:

  • CVE-2026-109618 (Out-of-Memory Handling): Involves an out-of-memory error management flaw where request memory can be left uninitialized due to improper control flow handling (longjmp()), allowing attackers to trigger conditions leading reliably to RCE.
  • CVE-2026-109619 (Use-After-Free): Involves a fatal error handling flaw where global or request state memory points to regions that have already been freed. Subsequent requests on the same worker can interact with this stale state, opening the door to arbitrary code execution.

Why it is important to update PHP version:

PHP runs over 70% of websites, including popular CMS platforms such as WordPress, Drupal, and Joomla, which is why updating now is essential. Updating the PHP version of your website can be handled in several ways. Most of the time, if the website is hosted via cPanel, the hosting provider will update the PHP version, and all you need to do is wait for them to roll out the latest version.

What safe version of PHP to use after CVE-2026-109618 & CVE-2026-109619:

Here are the latest patched versions you should be using to make sure you are safe from the exploits:

  • If you are using PHP 8.5 it will be 8.5.12

  • If you are using PHP 8.4 it will be 8.4.27

  • If you are using PHP 8.3 it will be 8.3.36

  • If you are using PHP 8.2 it will be 8.2.35

Unfortunately, unsupported versions will not receive updates, so it is highly recommended to reach out to your website host regarding upgrading.

How to update PHP version if you are self hosting:

There are several ways to update, the easier way is to use Putty and connect to your server and run the following commands:

1. Check your current PHP version:

php -v

2. For Ubuntu and Debian:

sudo apt update
sudo apt install –only-upgrade ‘php*’

3. For CentOS, Fedora, Rocky Linux, AlmaLinux:

sudo dnf upgrade ‘php*’

Note: Restart PHP-FPM or your web server after updating so the new version is loaded.

What to do if you can’t update the PHP version of your website

When you have no control over your website hosting most of the time all you need to do is wait for a patch from the provider, there are some alternative to do:

  1. Make sure to create backup of your website, sending it locally will be a good help
  2. Update the PHP version, contact the hosting company right away and ask for a timeline when can they patch the PHP version
  3. If the hosting company is unresponsive, it would be better to transfer to a new hosting with more support or better yet hire a WordPress developer who offers hosting hosting management.

All my WordPress clients are safe

As soon as I learned about the vulnerability, I immediately implemented security measures on my hosting environment by disabling session.upload_progress across all servers as a temporary mitigation, as research identified this feature as a primary attack path.

With the official PHP patches now released, I have updated all servers to the latest secure versions.

I won't mind if you share the article. THANK YOU

Check other blog post