CVE-2026-126714
Description
Partially overwritten session files can lead to remote code execution. The files session save handler, which is the default, 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. An attacker who can influence the session data, for example through session upload progress, and interrupt a write at a suitable point may inject objects, which can lead to code execution when the application contains a suitable gadget chain. Session data can also be corrupted. This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
Description php: Partially overwritten session files can lead to remote code execution Red Hat statement See the security bulletin for a detailed mitigation procedure. CVSS v3: 8.1 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H) Errata / fixed releases ProductPackageAdvisoryReleased Red Hat Enterprise Linux 10php8.4-0:8.4.28-1.el10_3RHSA-2026:1008212026-11-20T00:00:00Z Red Hat Enterprise Linux…
Workaround
procedure. CVSS v3: 8.1 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H)
Description
php: Partially overwritten session files can lead to remote code execution
Red Hat statement
See the security bulletin for a detailed mitigation procedure.
CVSS v3: 8.1 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H)
Errata / fixed releases
| Product | Package | Advisory | Released |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | php8.4-0:8.4.28-1.el10_3 | RHSA-2026:100821 | 2026-11-20T00:00:00Z |
| Red Hat Enterprise Linux 10 | php-0:8.3.37-1.el10_3 | RHSA-2026:102300 | 2026-11-23T00:00:00Z |
| Red Hat Enterprise Linux 10.0 Extended Update Support | php-0:8.3.37-1.el10_0 | RHSA-2026:102934 | 2026-11-24T00:00:00Z |
| Red Hat Enterprise Linux 10.2 Extended Update Support | php8.4-0:8.4.28-1.el10_2 | RHSA-2026:101251 | 2026-11-21T00:00:00Z |
| Red Hat Enterprise Linux 10.2 Extended Update Support | php-0:8.3.37-1.el10_2 | RHSA-2026:102302 | 2026-11-24T00:00:00Z |
| Red Hat Enterprise Linux 7 Extended Lifecycle Support | php-0:5.4.16-48.el7_9.2 | RHSA-2026:101337 | 2026-11-22T00:00:00Z |
| Red Hat Enterprise Linux 8 | php:7.4-8100020261119125714.f7998665 | RHSA-2026:100991 | 2026-11-21T00:00:00Z |
| Red Hat Enterprise Linux 8 | php:8.2-8100020261119180255.f7998665 | RHSA-2026:101276 | 2026-11-22T00:00:00Z |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | php:7.4-8040020261122143307.d7c09045 | RHSA-2026:103276 | 2026-11-24T00:00:00Z |
| Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | php:7.4-8040020261122143307.d7c09045 | RHSA-2026:103276 | 2026-11-24T00:00:00Z |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | php:7.4-8060020261122141928.5caa48ff | RHSA-2026:102823 | 2026-11-24T00:00:00Z |
| Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On | php:7.4-8060020261122141928.5caa48ff | RHSA-2026:102823 | 2026-11-24T00:00:00Z |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service | php:7.4-8080020261122140017.0b4eb31d | RHSA-2026:102713 | 2026-11-24T00:00:00Z |
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | php:7.4-8080020261122140017.0b4eb31d | RHSA-2026:102713 | 2026-11-24T00:00:00Z |
| Red Hat Enterprise Linux 9 | php:8.3-9090020261119185155.9 | RHSA-2026:102226 | 2026-11-23T00:00:00Z |
| Red Hat Enterprise Linux 9 | php:8.4-9090020261119185955.9 | RHSA-2026:102255 | 2026-11-23T00:00:00Z |
| Red Hat Enterprise Linux 9 | php:8.2-9090020261119181904.9 | RHSA-2026:102261 | 2026-11-23T00:00:00Z |
| Red Hat Enterprise Linux 9 | php-0:8.0.30-8.el9_9.2 | RHSA-2026:102297 | 2026-11-23T00:00:00Z |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | php-0:8.0.30-1.el9_2.3 | RHSA-2026:102847 | 2026-11-24T00:00:00Z |
| Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions | php:8.2-9040020261120181742.9 | RHSA-2026:102695 | 2026-11-23T00:00:00Z |
| Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions | php-0:8.0.30-1.el9_4.3 | RHSA-2026:102855 | 2026-11-24T00:00:00Z |
| Red Hat Enterprise Linux 9.6 Extended Update Support | php:8.3-9060020261121170731.9 | RHSA-2026:102684 | 2026-11-23T00:00:00Z |
| Red Hat Enterprise Linux 9.6 Extended Update Support | php:8.2-9060020261121171142.9 | RHSA-2026:102696 | 2026-11-23T00:00:00Z |
| Red Hat Enterprise Linux 9.6 Extended Update Support | php-0:8.0.30-3.el9_6.3 | RHSA-2026:103495 | 2026-11-25T00:00:00Z |
| Red Hat Enterprise Linux 9.8 Extended Update Support | php:8.3-9080020261120133305.9 | RHSA-2026:101252 | 2026-11-21T00:00:00Z |
| Red Hat Enterprise Linux 9.8 Extended Update Support | php:8.2-9080020261120141350.9 | RHSA-2026:101253 | 2026-11-21T00:00:00Z |
| Red Hat Enterprise Linux 9.8 Extended Update Support | php-0:8.0.30-8.el9_8.2 | RHSA-2026:103492 | 2026-11-25T00:00:00Z |
| Red Hat Hardened Images | php-main-8.5.13-0.1.hum1 | RHSA-2026:101658 | 2026-11-22T00:00:00Z |
| Red Hat OpenShift Dev Spaces 3.31 | devspaces/udi-rhel9:1795500059 | RHSA-2026:103521 | 2026-11-25T00:00:00Z |
Package state
| Product | Package | State |
|---|---|---|
| Red Hat Enterprise Linux 6 | php | Out of support scope |
Apply commands
yum update -y php8
# or:
dnf upgrade -y php8
OS impact
Azure Linux Affected 2 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| 4.0 | — | Affected | — |
| 3.0 | — | Affected | — |
AlmaLinux Fixed 3 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| 10 | php-intl php-embedded php-ldap +22 more |
Fixed | 8.3.37-1.el10_3 |
| 10 | php8.4-mysqlnd php8.4-cli php8.4-soap +22 more |
Fixed | 8.4.28-1.el10_3 |
| 9 | php-gd php-cli php-soap +22 more |
Fixed | 8.0.30-8.el9_9.2 |
| 9 | php-pecl-zip |
Fixed | 1.22.3-1.module_el9.4.0+65+49ff6472 |
| 9 | php-pecl-xdebug3 |
Fixed | 3.2.2-2.module_el9.4.0+65+49ff6472 |
| 9 | apcu-panel php-pecl-apcu-devel php-pecl-apcu |
Fixed | 5.1.23-1.module_el9.4.0+65+49ff6472 |
| 9 | php-pecl-redis6 |
Fixed | 6.2.0-3.module_el9.9.0+305+241c80e2 |
| 9 | php-pecl-rrd |
Fixed | 2.0.3-4.module_el9.4.0+65+49ff6472 |
| 8 | php-json php-xmlrpc |
Fixed | 7.4.33-9.module_el8.10.0+4385+9e3d9df0 |
| 8 | php-pear |
Fixed | 1.10.14-1.module_el8.10.0+3796+30ed3ef7 |
| 8 | php-embedded php-common php-gd +22 more |
Fixed | 8.2.36-1.module_el8.10.0+4386+fb99a9e9 |
| 8 | libzip-tools libzip-devel libzip |
Fixed | 1.7.3-1.module_el8.10.0+3796+30ed3ef7 |
| 8 | apcu-panel php-pecl-apcu-devel php-pecl-apcu |
Fixed | 5.1.23-1.module_el8.10.0+3796+30ed3ef7 |
| 8 | php-pecl-zip |
Fixed | 1.22.3-1.module_el8.10.0+3796+30ed3ef7 |
| 8 | php-pecl-rrd |
Fixed | 2.0.3-1.module_el8.10.0+3796+30ed3ef7 |
| 8 | php-pecl-xdebug3 |
Fixed | 3.2.2-2.module_el8.10.0+3796+30ed3ef7 |
| 8 | php-pecl-xdebug |
Fixed | 2.9.5-1.module_el8.6.0+2750+78feabcb |
Alpine Fixed 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| v3.24 | php84 |
Fixed | 8.4.28-r0 |
| v3.24 | php83 |
Fixed | 8.3.37-r0 |
| v3.24 | php85 |
Fixed | 8.5.13-r0 |
Debian Fixed 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | php8.4 |
Fixed | 8.4.28-1~deb13u1 |
| sid | php8.4 |
Fixed | 8.4.28-2 |
| forky | php8.4 |
Fixed | 8.4.28-2 |
| bookworm | php8.2 |
Fixed | 8.2.36-1~deb12u1 |
Gentoo Fixed 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| — | — | Fixed | 8.2.36 |
Red Hat Fixed 2 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| 9 | php-pecl-apcu-devel apcu-panel php-pecl-apcu |
Fixed | 5.1.23-1.module+el9.7.0+24111+199d2cc4 |
| 9 | php-pecl-redis6 |
Fixed | 6.2.0-3.module+el9.9.0+24551+b05e3fee |
| 9 | php php-bcmath php-cli +22 more |
Fixed | 8.0.30-8.el9_9.2 |
| 9 | php-pecl-rrd |
Fixed | 2.0.3-4.module+el9.7.0+24111+199d2cc4 |
| 9 | php-pecl-xdebug3 |
Fixed | 3.2.2-2.module+el9.7.0+24111+199d2cc4 |
| 9 | php-pecl-zip |
Fixed | 1.22.3-1.module+el9.7.0+24111+199d2cc4 |
| 8 | libzip-tools libzip libzip-devel |
Fixed | 1.7.3-1.module+el8.10.0+20770+a5eca186 |
| 8 | php-common php-dba php-dbg +22 more |
Fixed | 8.2.36-1.module+el8.10.0+25372+eaf0dd36 |
| 8 | php-pecl-zip |
Fixed | 1.22.3-1.module+el8.10.0+20770+a5eca186 |
| 8 | php-pear |
Fixed | 1.10.14-1.module+el8.10.0+20770+a5eca186 |
| 8 | php-pecl-rrd |
Fixed | 2.0.3-1.module+el8.10.0+20770+a5eca186 |
| 8 | php-pecl-apcu php-pecl-apcu-devel apcu-panel |
Fixed | 5.1.23-1.module+el8.10.0+20770+a5eca186 |
| 8 | php-pecl-xdebug |
Fixed | 2.9.5-1.module+el8.10.0+22485+a3539972 |
| 8 | php-json php-xmlrpc |
Fixed | 7.4.33-9.module+el8.10.0+25371+681fa571 |
| 8 | php-pecl-xdebug3 |
Fixed | 3.2.2-2.module+el8.10.0+20798+00eaeb41 |
Rocky Linux Fixed 3 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| 10 | php8.4 |
Fixed | 8.4.28-1.el10_3 |
| 10 | php |
Fixed | 8.3.37-1.el10_3 |
| 9 | php-pecl-apcu |
Fixed | 5.1.23-1.module+el9.7.0+40004+bf50a568 |
| 9 | php-pecl-redis6 |
Fixed | 6.1.0-3.module+el9.8.0+40203+35cc8ffc |
| 9 | php-pecl-rrd |
Fixed | 2.0.3-4.module+el9.7.0+40005+715283ec |
| 9 | php-pecl-xdebug3 |
Fixed | 3.3.1-1.module+el9.7.0+40005+715283ec |
| 9 | php-pecl-zip |
Fixed | 1.22.3-1.module+el9.7.0+40005+715283ec |
| 9 | php |
Fixed | 8.3.37-1.module+el9.9.0+40496+4cbfb9f5 |
| 8 | php-pecl-xdebug3 |
Fixed | 3.2.2-2.module+el8.10.0+1911+f499711e |
| 8 | php-pecl-rrd |
Fixed | 2.0.1-1.module+el8.4.0+414+2e7afcdd |
| 8 | php-pecl-apcu |
Fixed | 5.1.18-1.module+el8.10.0+1604+6558efc7 |
| 8 | php-pecl-xdebug |
Fixed | 2.9.5-1.module+el8.10.0+1604+6558efc7 |
| 8 | php-pecl-zip |
Fixed | 1.18.2-1.module+el8.10.0+1604+6558efc7 |
| 8 | php |
Fixed | 7.4.33-9.module+el8.10.0+40479+a65e1b9e |
| 8 | libzip |
Fixed | 1.6.1-1.module+el8.10.0+1604+6558efc7 |
| 8 | php-pear |
Fixed | 1.10.13-1.module+el8.10.0+1912+72767185 |
Ubuntu Fixed 8 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| xenial | libapache2-mod-php7.0 libphp7.0-embed php7.0-bcmath +36 more |
Fixed | 7.0.33-0ubuntu0.16.04.16+esm23 |
| trusty | libapache2-mod-php5 libapache2-mod-php5filter libphp5-embed +26 more |
Fixed | 5.5.9+dfsg-1ubuntu4.29+esm19 |
| stonking | libapache2-mod-php8.5 libphp8.5-embed php8.5 +30 more |
Fixed | 8.5.9-0ubuntu2.2 |
| resolute | libapache2-mod-php8.5 libphp8.5-embed php8.5 +30 more |
Fixed | 8.5.4-0ubuntu1.6 |
| noble | libapache2-mod-php8.3 libphp8.3-embed php8.3 +32 more |
Fixed | 8.3.6-0ubuntu0.24.04.14 |
| jammy | libapache2-mod-php7.4 libapache2-mod-php8.0 libapache2-mod-php8.1 +34 more |
Fixed | 8.1.2-1ubuntu2.29 |
| focal | libapache2-mod-php7.4 libphp7.4-embed php7.4 +34 more |
Fixed | 7.4.3-4ubuntu2.29+esm6 |
| bionic | libapache2-mod-php7.2 libphp7.2-embed php7.2 +35 more |
Fixed | 7.2.24-0ubuntu0.18.04.17+esm15 |
SUSE Tracked 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| — | — | Unknown | — |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| php | php | {"startIncluding":"8.2.0","endExcluding":"8.2.36"} | 8.2.36 |
| php | php | {"startIncluding":"8.3.0","endExcluding":"8.3.37"} | 8.3.37 |
| php | php | {"startIncluding":"8.4.0","endExcluding":"8.4.28"} | 8.4.28 |
| php | php | {"startIncluding":"8.5.0","endExcluding":"8.5.13"} | 8.5.13 |
| php | php | {"endExcluding":"8.2.36"} | 8.2.36 |
References
- https://www.suse.com/security/cve/CVE-2026-126714.html
- https://github.com/php/php-src/security/advisories/GHSA-fm2m-fjf5-v3cp
- https://security-tracker.debian.org/tracker/CVE-2026-126714
- https://bugzilla.suse.com/show_bug.cgi?id=1290690
- https://depthfirst.com/phpAfterShell
- https://github.com/semgrep/detection-scripts/pull/14
- https://ubuntu.com/security/CVE-2026-126714
- https://security.gentoo.org/glsa/202611-13
- https://security.alpinelinux.org/vuln/CVE-2026-126714
- https://pkgs.alpinelinux.org/packages?name=php83
- https://pkgs.alpinelinux.org/packages?name=php84
- https://pkgs.alpinelinux.org/packages?name=php85
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-126714
- https://access.redhat.com/errata/RHSA-2026:100991
- https://bugzilla.redhat.com/2576597
- https://bugzilla.redhat.com/2576598
- https://bugzilla.redhat.com/2576600
- https://bugzilla.redhat.com/2576601
- https://bugzilla.redhat.com/2576602
- https://bugzilla.redhat.com/2576603
- https://bugzilla.redhat.com/2576604
- https://bugzilla.redhat.com/2576605
- https://bugzilla.redhat.com/2576606
- https://bugzilla.redhat.com/2576607
- https://bugzilla.redhat.com/2576609
CWEs
CWE-367 CWE-662
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.