PHP’s default session handler stores each session in a file, and when it saved a session it wrote the new data over the old file without truncating it first. If the write was interrupted part-way, the file was left holding the start of the new session followed by the tail of the old one, and when that was read back, bytes that had been inside an ordinary string could be parsed as serialized objects: object injection, and remote code execution wherever the application has a gadget chain. The attacker needs to influence what goes into the session, which session upload progress or any large user-controlled string provides, and to interrupt a write at the right point, which in threaded builds a memory-limit failure in another thread can do. The PHP Group rates it 9.2, and unlike most of this batch it carries AC:L. It has been there since PHP 4.1. Upgrade to PHP 8.5.13, 8.4.28, 8.3.37 or 8.2.36 and restart PHP-FPM or Apache; if you cannot today, turn session upload progress off and limit what untrusted data you store in sessions. Sites using a database, Redis or memcached session handler are outside this bug, though not necessarily its sibling CVE-2026-115560.
CVE-2026-126714 at a glance.
| Component | PHP, the session extension’s files save handler (ext/session/mod_files.c, ps_files_write()), the default on every distribution; every distribution php package |
| Affected versions | PHP 8.2 before 8.2.36, 8.3 before 8.3.37, 8.4 before 8.4.28 and 8.5 before 8.5.13; the write path dates from PHP 4.1.0, so every unsupported branch is affected too. Only with the files session handler (the default) |
| Fixed in | PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36, released 19 November 2026 as a security release; distribution packages below. 8.2 leaves security support on 31 December 2026, so 8.2.36 is one of its last releases. The fix truncates the session file to zero length before writing, and aborts the save if truncation fails |
| Severity | CVSS 4.0 9.2 Critical (AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H) from the PHP Group, repeated by NVD. Red Hat Critical, CVSS 3.1 8.1 (AC:H, CWE-502); SUSE critical, 9.8 (AC:L); Ubuntu medium. CWE-367 time-of-check/time-of-use race and CWE-662 improper synchronisation |
| Exploited in the wild | Not on CISA’s Known Exploited Vulnerabilities list as of 30 November 2026; CISA’s SSVC says no known exploitation, automatable. EPSS: no score yet as of 29 November 2026 |
| Who is exposed | Every PHP site with the default files session handler where an attacker can get data of their choosing into a session and can disturb the save: upload progress is the universal route, a large profile field or shopping basket is another. Threaded builds (Apache worker/event with ZTS, FrankenPHP) widen the interruption window, since one thread’s hard memory-limit failure can take down the process mid-write. The advisory says authentication requirements depend on how the application exposes session operations |
| Published | CVE record and GHSA-fm2m-fjf5-v3cp, 19 November 2026 (credits Leo Lin and Asahi); this page built 30 November 2026, last updated 30 November 2026 |
What it is
When a request ends, the session extension serialises $_SESSION and asks the save handler to store it. The files handler, in the advisory’s description, wrote the new data into the existing session file without clearing it first. If the write stopped before it finished, the file held a prefix of the new session followed by the suffix of the old one. The file lock the handler takes, the advisory notes, does not make an interrupted write atomic.
A spliced file is a parsing problem for the next session_start(). The serialized format is a sequence of name|value pairs with lengths inside the values; a prefix that ends inside a string, followed by a suffix that begins with the rest of a different string, can be read as the string ending early and new serialized values beginning where the attacker’s bytes say they do. If those bytes describe an object of a class with a useful destructor or __wakeup(), the reader instantiates it: the same object-injection outcome as CVE-2026-115560, reached through the file rather than the serializer. The advisory names session upload progress as one way to put chosen bytes into the file, and large user-controlled strings as another, and says session corruption is the result where no gadget chain exists. It is one of seven CVEs fixed in the PHP security release of 19 November 2026, which produced 8.5.13, 8.4.28, 8.3.37 and 8.2.36; all seven carry the same CVSS 4.0 score of 9.2 from the PHP Group, and this site covers each on its own page and lists the siblings under Related reading.
The fix is the obvious one: truncate the file to zero before writing, and treat a failed truncation as a failed save rather than carrying on. The advisory adds that a save handler which replaces the file atomically avoids the defect by construction, which is an argument for the database and cache handlers on anything that matters. SUSE scores this 9.8 against Red Hat’s 8.1; they agree on everything except whether getting the interruption right is “high” complexity.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 30 November 2026; the link in the row is the tracker page, which will be newer than this one. This one reaches back to the oldest branches, so the ESM and ELS packages were rebuilt too.
| Distribution | Status | Fixed package |
|---|---|---|
| Debian bookworm, trixie, forky | Fixed | bookworm php8.2 8.2.36-1~deb12u1 (DLA-4916-1); trixie php8.4 8.4.28-1~deb13u1 (DSA-6641-1); forky and sid php8.4 8.4.28-3 |
| Ubuntu 20.04 to 26.04 and ESM | Fixed (priority medium, USN-9185-1, 23 November 2026) | jammy php8.1 8.1.2-1ubuntu2.29, noble php8.3 8.3.6-0ubuntu0.24.04.14, resolute php8.5 8.5.4-0ubuntu1.6, stonking php8.5 8.5.9-0ubuntu2.2; focal php7.4 7.4.3-4ubuntu2.29+esm6 and bionic php7.2 7.2.24-0ubuntu0.18.04.17+esm15 under ESM; xenial and trusty under ESM legacy |
| RHEL, Rocky, Alma | Fixed (rated Critical, 8.1) | RHEL 10.3 php8.4-8.4.28-1.el10_3 (RHSA-2026:100821) and php-8.3.37-1.el10_3 (RHSA-2026:102300); RHEL 9 php:8.2, php:8.3, php:8.4 streams (RHSA-2026:102261, 102226, 102255) and php-8.0.30-8.el9_9.2 (RHSA-2026:102297); RHEL 8 php:7.4 and php:8.2 (RHSA-2026:100991, 101276); RHEL 7 ELS php-5.4.16-48.el7_9; EUS/E4S errata of 21 to 25 November; Red Hat Hardened Images php-main-8.5.13 (RHSA-2026:101658) |
| Fedora, openSUSE, Arch, Alpine | Not consulted | trackers not read for this page; SUSE lists SUSE-SU-2026:5389-1 and later errata for the batch |
php.net tarballs, Docker php images, Remi and Sury repositories, anything you built yourself | Affected below the fixed versions | php.net 8.5.13 / 8.4.28 / 8.3.37 / 8.2.36; Docker php image tags of the same names; unsupported branches (8.1 and older) carry the bug and get no fix |
How to check
Three questions: is the running PHP older than the fix, which session handler is in use, and is upload progress on. The handler question clears every site that already stores sessions in a database or cache.
# 1. the versions that are installed and running (CLI and FPM can differ)
php -v | head -1
php-fpm8.4 -v 2>/dev/null || php-fpm -v 2>/dev/null | head -1
dpkg -l 'php8*' 2>/dev/null | grep '^ii' | awk '{print $2, $3}' ; rpm -qa 'php*' 2>/dev/null | head
ps -o pid,lstart,args -C php-fpm8.4 -C php-fpm -C php-fpm8.3 | head -3
# fixed: 8.5.13, 8.4.28, 8.3.37, 8.2.36 (distribution builds: compare with the table above)
# 2. the session handler and where the files live
php-fpm8.4 -i 2>/dev/null | grep -E 'session\.save_handler|session\.save_path|session\.upload_progress\.enabled'
php -i | grep -E 'session\.save_handler|session\.save_path|session\.upload_progress\.enabled'
grep -rnE "ini_set\s*\(\s*['\"]session\.save_handler|session_set_save_handler" /var/www /srv --include='*.php' 2>/dev/null | head
# 3. is this a threaded build? (ZTS widens the window)
php -i | grep -E 'Thread Safety'A fixed version in step 1 with worker start times after the upgrade means you are done. save_handler => files with nothing in the application overriding it is the vulnerable handler; redis, memcached, user or a framework’s database handler is outside this bug. upload_progress.enabled => On is the easy route in and the easy thing to turn off. Thread Safety => enabled is the build the advisory singles out for the memory-limit interruption.
How to fix it
Upgrade PHP and restart the workers. All three major distributions had packages by 23 November, and the RHEL 7 ELS and Ubuntu ESM packages carry the fix as well.
# Debian / Ubuntu (the package name carries the branch: php8.2, php8.3, php8.4, php8.5)
apt update && apt install --only-upgrade 'php8.*'
# RHEL family (module streams: dnf module update php, or dnf update php8.4 on RHEL 10)
dnf update 'php*'
# Alpine
apk upgrade 'php8*'
# php.net tarballs, Docker images: 8.5.13 / 8.4.28 / 8.3.37 / 8.2.36 (or the image tags of the same names)
# a new build is not running until every worker is replaced
systemctl restart php8.4-fpm # or php-fpm, php8.3-fpm ... ; mod_php: systemctl restart apache2 / httpd
php -v # the CLI binary, must print the fixed version
php-fpm8.4 -v 2>/dev/null || php-fpm -v # the FPM binary, same
ps -o pid,lstart,args -C php-fpm8.4 -C php-fpm | head -3 # start times must be after the upgradeTwo interim steps, both from the advisory: turn upload progress off administratively if nothing needs it, and limit untrusted data in sessions. The structural fix is a save handler that replaces the file atomically, or does not use files at all.
# server-wide php.ini for FPM and Apache
session.upload_progress.enabled = 0
systemctl restart php8.4-fpm # and/or apache2 / httpd
php-fpm8.4 -i 2>/dev/null | grep 'upload_progress.enabled' # must show Off
# longer term: a non-file handler, e.g. session.save_handler = redis ; session.save_path = "tcp://127.0.0.1:6379" Do not clean out /var/lib/php/sessions and call it fixed; the splice happens on the next interrupted write, not in files that already exist. Do not rely on session.upload_progress.enabled=0 alone if the application stores large user-controlled strings in the session, because that is the other route the advisory names.
Sources
- CVE-2026-126714 at CVE.org — the PHP Group CNA record (19 November 2026): the full technical description, affected ranges, CVSS 4.0 vector, CWEs and credits
- GHSA-fm2m-fjf5-v3cp — the php-src security advisory the record cites, with the preconditions, the demonstrated impact and the workarounds
- NVD entry — Awaiting Analysis; the PHP Group’s 9.2 is the only score
- PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 release announcements — “This is a security release”; the PHP 8 ChangeLog carries the per-release entries; supported versions for the branch dates
- PHP manual: session configuration —
session.save_handler,session.save_pathand the upload-progress directives - Distribution trackers: Debian · Ubuntu · RHEL · SUSE; USN-9185-1, DSA-6641-1, DLA-4916-1
- EPSS — no score had been published for this CVE as of 29 November 2026
Related reading
- CVE-2026-115560: PHP session serializer mismatch allows object injection — the other session object-injection bug in this release, through a serializer mismatch rather than an interrupted write
- CVE-2026-129481: PHP interrupted session shutdown leaves a stale pointer (forthcoming if the link is not yet live) — the session-shutdown stale pointer from the same release
- CVE-2026-129289: PHP-FPM request smuggling through an unread request body (forthcoming if the link is not yet live) — the PHP-FPM request smuggling bug, the most exposed of the seven
- CVE-2026-129496: PHP timezone cache use-after-free from a startup warning (forthcoming if the link is not yet live) — the timezone-cache use-after-free from the same release
- CVE-2026-109618: PHP out-of-memory handling leaves request memory uninitialized, allowing remote code execution — the October advisory that first put session upload progress in the spotlight
- Hardening a Public-Facing Service Beyond the Basics — where PHP-FPM sits behind nginx or Apache, and what the socket between them should and should not be able to do
- The Half of Patching That Happens After the Patch is Installed — an upgraded PHP package is still the old PHP until every FPM worker and every Apache child has been replaced
This advisory page was assembled from the primary sources listed above on 30 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.

