PHP officially released an emergency security update on October 21, 2026, fixing CVE-2026-109618 and CVE-2026-109619 two critical security vulnerabilities, both with a CVSS v4.0 score of 9.2. Under specific conditions, attackers may be able to remotely execute code (RCE) without authentication, affecting PHP websites, WordPress, PHP frameworks, and server environments.
The official releases currently include PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35 four security-fix versions, and server administrators are advised to upgrade as soon as possible.
Official announcement:
PHP website:https://www.php.net/
CVE-2026-109618:GHSA-w8hw-w9fx-j79w
CVE-2026-109619:GHSA-6wmf-4rv5-p3rp
Vulnerability Details:
| Vulnerability ID | CVSS Score | Main Issue |
|---|---|---|
| CVE-2026-109618 | 9.2 (Critical) | Abnormal handling of memory state during out-of-memory (OOM) conditions |
| CVE-2026-109619 | 9.2 (Critical) | Use-after-free (UAF) caused by internal state persisting across requests |
CVE-2026-109618 Involves PHP’s out-of-memory handling mechanism. During certain request-processing scenarios, an abnormal exit may cause incompletely initialized memory state to be used incorrectly, potentially resulting in remote code execution.
CVE-2026-109619 Involves internal state management in PHP worker processes. State that is not properly cleared after some requests may be accessed by subsequent requests, causing a use-after-free issue.
Official guidance confirms that PHP runtimes including Apache mod_php, PHP-FPM, php-cgi, LiteSpeed, and FrankenPHP should all be assessed for this vulnerability. A proof of concept has demonstrated that Apache mod_php can be attacked without executing application code; the practical exploitation conditions for PHP-FPM differ.
Please note that this is a PHP runtime vulnerability, not a vulnerability in WordPress core itself. Updating WordPress or its plugins is not a substitute for upgrading PHP.
PHP security fix versions:
| PHP branch | Fixed version | Upgrade recommendation |
|---|---|---|
| PHP 8.5 | 8.5.12 | Upgrade Now |
| PHP 8.4 | 8.4.27 | Upgrade Now |
| PHP 8.3 | 8.3.36 | Upgrade Now |
| PHP 8.2 | 8.2.35 | Upgrade Now, Plan the Subsequent Migration |
| PHP 8.1 and earlier | No regular official maintenance | Upgrade or confirm security backports with your provider |
PHP 8.1 and earlier versions have reached the end of regular official maintenance. Some Linux distributions and long-term support providers offer security backports. Check the relevant software packages to confirm whether the issues have been fixed.
In addition, official security support for PHP 8.2 will end on December 31, 2026. We recommend planning ahead to upgrade to PHP 8.4 or 8.5.
How to upgrade on Debian and aaPanel
Websites running Debian 12, Debian 13, Nginx, PHP-FPM, and aaPanel can follow these steps to check.
1. Check the current PHP version
aaPanel PHP 8.5:
/www/server/php/85/bin/php -v
aaPanel PHP 8.4:
/www/server/php/84/bin/php -v
If multiple PHP versions are installed, check each one separately.
2. Check for updates in aaPanel
Open the aaPanel App Store and check whether security updates for PHP 8.5 and 8.4 are available.
Before upgrading, back up your website files, databases, PHP configuration, and extension details to avoid disrupting existing services.
For PHP installed via Debian packages, update through the relevant distribution or package repository and review the security advisories. Backported patches from the distribution may not change the upstream PHP version number.
3. Restart the PHP-FPM service
aaPanel PHP 8.5:
/etc/init.d/php-fpm-85 restart
aaPanel PHP 8.4:
/etc/init.d/php-fpm-84 restart
After restarting, confirm that the actual PHP version used by website requests has been updated; do not rely solely on the CLI version.
4. Check the WordPress Website
After completing the PHP upgrade, it is recommended to check the following in order:
- Whether the WordPress frontend and backend can be accessed normally
- Article publishing, image uploads, and plugin operation
- MySQL database and Redis cache connections
- WP-Cron scheduled tasks and scheduled publishing
- PHP-FPM logs and Nginx error logs
If the server runs multiple WordPress websites, verify the PHP runtime environment used by each one.
What if you can’t upgrade for now?
PHP has explicitly stated that there is currently no general-purpose configuration that can completely eliminate the risks posed by both vulnerabilities.
For servers that cannot be updated right away, you can evaluate the following temporary mitigation measures.
1. Disable session upload progress tracking
Set the following in the applicable PHP configuration:
session.upload_progress.enabled = 0
Then restart the PHP worker processes. This measure is only effective against some confirmed session-related attack paths.
2. Disable fatal error backtraces in PHP 8.5
You can evaluate setting:
fatal_error_backtraces = 0
This measure only reduces the risk from specific confirmed attack paths in PHP 8.5; it does not fully fix the vulnerability.
3. Strengthen request and resource limits
Set reasonable limits on upload request sizes, the number of form fields, and request complexity, and investigate PHP fatal errors that may be triggered by external requests.
For CVE-2026-109618, the developers also provide specific mitigation guidance involving memory limits. However, changing the PHP memory limit may affect server resource isolation, so assess this carefully based on your deployment environment and the official guidance.
None of these measures can replace security patches. Nginx rate limiting, WAFs, and disabling dangerous functions likewise cannot guarantee that all attack paths will be blocked.
Summary:
The two severe vulnerabilities fixed in this PHP release, each with a CVSS score of 9.2, involve internal memory state management in the PHP runtime and carry a risk of unauthenticated remote code execution.
Whether you run a WordPress site, use a VPS, administer a Dedicated Server, or develop PHP applications, you should check your current PHP version immediately.
We recommend upgrading to PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35 as a priority, then verifying PHP-FPM and your website’s actual operation after the upgrade.






















