Вернуться к предупреждениям о безопасности

PHP CVE-2026-126714: Critical Session-File RCE — Patch Now

PHP has fixed CVE-2026-126714 — a critical session-file vulnerability that leads to remote code execution — in releases published November 19, 2026: PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13, and the 8.6.0 release. The default files session save handler writes updated session data into the existing file without clearing it first; when a write is interrupted, the file can end up with the start of a new session followed by leftover bytes of the old one, which PHP may later unserialize as objects. Update PHP to a fixed version as a priority.

Critical 9.2 CVSS
PHP

Что это значит по лицензии SharedLicense

Any PHP application using the default files session handler is in scope — on shared hosting that means nearly every site with logins. An attacker able to influence session file contents (for example by controlling values stored in ) gains a path to remote code execution on the web server; the advisory's own severity data is CVSS 4.0 9.2 from the PHP security team.

What happened

PHP releases published November 19, 2026 fix CVE-2026-126714 (GHSA-fm2m-fjf5-v3cp): the default files session save handler writes updated session data into the existing session file without first clearing it. If a write is interrupted, the file can contain the beginning of the new session followed by the end of the old one — and bytes of an ordinary string can later be unserialized as objects, a path that leads to remote code execution.

The PHP security team scored it CVSS 4.0 9.2 (Critical); the flaw classes are CWE-367 (time-of-check to time-of-use race) and CWE-662 (improper synchronization). The same releases also fix CVE-2026-129506 (session IDs validated only up to the first NUL byte).

Who is affected

  • PHP applications using the default files session save handler — the vast majority of sites with logins, forms or carts, including most shared-hosting accounts.
  • Applications on non-default handlers (Redis, Memcached) are not exposed through this path.

How to apply the fix

  • Fixed releases: PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13, and the 8.6.0 release — all published November 19, 2026.
  • cPanel & WHM (EasyApache 4): the fix arrives via an EasyApache release packaging the patched PHP builds — none has been announced yet; watch the cPanel changelog (same delivery path as the October PHP2Shell fixes).
  • Self-managed servers: update from php.net sources or your distro channel, then restart PHP (php-fpm restart).

PHP2Shell context

This is the second PHP-core RCE wave of the quarter: the October 21 “PHP2Shell” fixes (CVE-2026-109618/109619) covered memory corruption in core, and this one covers the session layer. Treat any [email protected] 9.x score as priority patching for hosting stacks.

For SharedLicense customers

Your license is unaffected — this is PHP software. On cPanel, DirectAdmin and Plesk servers alike, the action is the same: get the patched PHP build onto the server through your panelu2019s update channel and restart PHP.

Часто задаваемые вопросы

Which PHP versions fix CVE-2026-126714?
PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13, and 8.6.0 — all released November 19, 2026. Older branches have no upstream fix; move to one of these.
Who is affected?
Every PHP application using the default files session save handler — the PHP default — that accepts session data, which covers most sites with logins or shopping carts.
How do EasyApache (cPanel) servers get the fix?
Through an EasyApache 4 release packaging the patched PHP builds — none has been announced yet; watch the cPanel changelog and update as soon as it ships, the same path as the October PHP2Shell fixes.
Is there a workaround short of upgrading?
Switching a site to a non-file session handler (for example Redis or Memcached) removes the vulnerable code path, but that is an application-level change — upgrading PHP is the real fix.

Проверьте систему на уязвимости

Выберите продукт и операционную систему, чтобы увидеть точные команды исправления.

Проверьте свою систему