跳至内容

Critical security advisory

PHP2Shell: update PHP now

Two critical flaws in PHP itself, together called PHP2Shell (CVE-2026-109618 and CVE-2026-109619), can let an attacker run code on a web server without logging in. If you run a website or web application on PHP on a server you manage, including a Beriffa cloud server, update PHP now. This is not an incident at Beriffa.

Action requiredberiffa.com, the control panel and Keystone do not use PHPLast updated 24 October 2026

What happened

On 21 October 2026 the PHP project released emergency security updates for two flaws in the PHP engine: CVE-2026-109618 (remote code execution through out-of-memory corruption) and CVE-2026-109619 (remote code execution through stale global state). The PHP project rates both as critical, with a CVSS 4.0 score of 9.2. Researchers demonstrated working attacks against both flaws. The CVE numbers leaked on 20 October, and a few limited details followed before the release. Amazon, Cisco Talos, Cloudflare and Palo Alto Networks Unit 42 now report exploitation attempts in the wild; Amazon saw a first attempt on 17 October. On 23 October the PHP project described a related, less likely attack path (CVE-2026-115560), covered below under "If you cannot update right away".

Who is affected

Every server that runs PHP for websites or web applications on a version older than the fixed releases, whatever runs on top of it: WordPress, Drupal, Joomla, Magento, Laravel or your own code. php.net lists PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed as at risk, with the highest risk for mod_php: there the attack runs before any application code, so a login page or other checks in your site do not stop it. The PHP security team reports that remote code execution without a login has been demonstrated for CVE-2026-109619 on both mod_php and PHP-FPM, and for CVE-2026-109618 on mod_php; for CVE-2026-109618 on PHP-FPM it points to source analysis, while the PHP Foundation reports it confirmed through application code. For FrankenPHP and LiteSpeed the PHP project calls exploitation likely but not yet validated. The flaws are in PHP itself, so updating your CMS or its plugins does not fix them.

What you should do

  1. Update PHP to 8.5.12, 8.4.27, 8.3.36 or 8.2.35 or later, or install your Linux distribution's updated PHP packages, which carry the same fixes under the distribution's own version numbers (Ubuntu: USN-8948-1 and USN-8948-2). PHP 8.2 gets security fixes only until 31 December 2026, so 8.4 or 8.5 is the better target. Ubuntu's fixed packages, for example, still report the old PHP version, so check the package version, not php -v.
  2. Restart PHP afterwards (PHP-FPM, Apache or your web server). The old version keeps running until its processes restart.
  3. PHP 8.1 and older get no official release. The PHP security team published minimal source fixes for 7.4, 8.0 and 8.1, and Linux distributions ship backported packages (Ubuntu: 22.04 in its normal updates, older releases through Ubuntu Pro). The lasting fix is a supported version, preferably 8.4 or 8.5.
  4. Running PHP in Docker? Pull the updated official php images (the 8.5.12, 8.4.27, 8.3.36 or 8.2.35 tags) and redeploy your containers.
  5. If your server may have been attacked before you updated, look back to 17 October 2026: POST requests with PHP_SESSION_UPLOAD_PROGRESS or very large multipart bodies followed by memory-limit errors ("Allowed memory size ... exhausted ... in Unknown on line 0") or HTTP 500 answers, unusually large or malformed PHPSESSID cookies in responses (Set-Cookie), PHP workers that restart often, PHP processes that start shells, and PHP files you did not put there. An attack can also read memory without leaving files behind, so rotate the passwords, keys and tokens such a server uses, and open a support ticket. A successful attack does not necessarily make PHP crash.

If you cannot update right away

The PHP project says there is no complete mitigation: updating is the only safe choice. Its interim measures only reduce exposure on known attack paths and do not make a server safe. For CVE-2026-109619: session.upload_progress.enabled=0 on every version, and also fatal_error_backtraces=0 on PHP 8.5. For CVE-2026-109618: memory_limit=-1 set with php_admin_value, post_max_size of 8M (32M if you need uploads), request-size limits at your proxy, and memory limits through cgroups instead of RLIMIT_AS or RLIMIT_DATA. Set them in php.ini or the PHP-FPM pool configuration, not with ini_set() or .user.ini, and restart every PHP worker. CVE-2026-115560 (23 October) also affects the fixed releases, but only where an application switches session.serialize_handler at runtime; there, keep session.upload_progress.enabled=0 until the next PHP release.

Beriffa's own services

beriffa.com and the control panel run on Cloudflare Workers, and BERIFFA Keystone is built on .NET; none of them uses PHP. Your Beriffa account and data are not affected. PHP on a cloud server is installed and managed by you, so Beriffa cannot update it for you.

Timeline

17 Oct 2026
Amazon observes a first exploitation attempt in its honeypot network, before the release.
20 Oct 2026
The CVE numbers leak, the PHP security team announces a critical security release, and a mistakenly published video reveals a few limited details.
21 Oct 2026
PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 are released with fixes for both flaws, and Linux distributions start shipping updated packages. Beriffa publishes this advisory.
23 Oct 2026
php.net describes a further, less likely attack path (CVE-2026-115560) that the 21 October releases do not fix.
24 Oct 2026
Beriffa updates this advisory with the reports of attacks in the wild, php.net's interim measures and the 23 October advisory. We will update it again if the PHP project publishes further fixes.

Official sources

Need help?

Open a support ticket in the control panel and we will help you check your server.