Important! Critical PHP vulnerabilities: update the version on your server
Updates
Two critical vulnerabilities (CVSS 4.0 score of 9.2/10) have been discovered in the PHP interpreter kernel, with identifiers CVE-2026-109618 and CVE-2026-109619. They are collectively known as PHP2Shell.
Exploiting these vulnerabilities can lead to remote code execution (RCE), unauthorized access to information, system disruption, and the use of your server in cyberattacks.
All PHP versions prior to 8.2.35, 8.3.36, 8.4.27, and 8.5.12 are vulnerable. This includes websites, applications, and popular PHP-based CMS platforms such as WordPress, Drupal, OpenCart, and 1C-Bitrix, as well as frameworks like Laravel. Since the PHP interpreter itself is vulnerable, updating any of the listed applications will not resolve the issue.
Information has emerged regarding the first attempts to exploit the vulnerability. The exploit has been demonstrated in action on web servers running WordPress, MediaWiki, phpBB, Magento, Joomla, Laravel, Symfony, Drupal, and WHMCS.
The PHP developers have published configuration parameters that reduce the risks of specific exploitation scenarios. However, upgrading is the only solution to close the vulnerability.
What to do
- Update your PHP version. The vulnerability has been fixed in builds 8.2.35, 8.3.36, 8.4.27, and 8.5.12. The defects cannot be addressed through application-level code—resolving them requires updating PHP on the server. Mitigations only protect against certain attack vectors.
- Restart your services: PHP-FPM or the web server, queue workers, and Apache with mod_php, to ensure no old code remains in memory.
- Check the installed version using the commands php -v and php-fpm-<VERSION> -v.
- Check the system for signs of compromise. After updating, ensure no unauthorized files are present, review event logs, and change passwords, keys, and tokens if necessary.
If it is impossible to take the necessary measures, isolate the server and restrict access to it from the internet.
The Selectel Team.
← Back