Skip to content

CVE-2026-126714 Partially overwritten session files can lead to remote code execution

CriticalCVSS 9.2 EPSS 13.3%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total
Technology
PHPUbuntuDebianRed Hat

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.

Upgrade path

25 packages: 11 fixed, 14 with no fix yet.

PackageAffectedFixed inStatus
PHP(Azure Linux 3.0) All versions No fix listed No fix yet
redhat/php(Red Hat enterprise_linux 10) All versions No fix listed No fix yet
redhat/php(Red Hat enterprise_linux 9) All versions No fix listed No fix yet
redhat/php:7.4-8100020261119125714.f7998665(Red Hat enterprise_linux 8) All versions No fix listed No fix yet
redhat/php:8.2-8100020261119180255.f7998665(Red Hat enterprise_linux 8) All versions No fix listed No fix yet
redhat/php:8.2-9080020261120141350.9(Red Hat rhel_eus 9.8) All versions No fix listed No fix yet
redhat/php:8.2/php(Red Hat enterprise_linux 9) All versions No fix listed No fix yet
redhat/php:8.3-9080020261120133305.9(Red Hat rhel_eus 9.8) All versions No fix listed No fix yet
redhat/php:8.3-9090020261119185155.9(Red Hat enterprise_linux 9) All versions No fix listed No fix yet
redhat/php:8.4/php(Red Hat enterprise_linux 9) All versions No fix listed No fix yet
ubuntu/php8.1(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/php8.3(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/php8.5(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/php8.5(Ubuntu 26.10) All versions No fix listed No fix yet
alpine/php83(Alpine v3.24) < 8.3.37-r0 8.3.37-r0 Fixed
alpine/php84(Alpine v3.24) < 8.4.28-r0 8.4.28-r0 Fixed
alpine/php85(Alpine v3.24) < 8.5.13-r0 8.5.13-r0 Fixed
debian/php8.2(Debian 12) < 8.2.36-1~deb12u1; = 8.2.5-2; = 8.2.7-1; = 8.2.7-1.1 +28 more 8.2.36-1~deb12u1 Fixed
debian/php8.4(Debian 13) < 8.4.28-1~deb13u1; = 8.4.11-1; = 8.4.16-1; = 8.4.16-1~deb13u1 +12 more 8.4.28-1~deb13u1 Fixed
debian/php8.4(Debian 14) < 8.4.28-2; = 8.4.11-1; = 8.4.16-1; = 8.4.16-1~deb13u1 +13 more 8.4.28-2 Fixed
PHP < 8.2.36; >= 8.3.0, < 8.3.37; >= 8.4.0, < 8.4.28; >= 8.5.0, < 8.5.13 8.2.36, 8.3.37, 8.4.28, 8.5.13 Fixed
redhat/php(Red Hat rhel_els 7) < 5.4.16-48.el7_9.2 5.4.16-48.el7_9.2 Fixed
redhat/php-main(Red Hat hummingbird 1) < 8.5.13-0.1.hum1 8.5.13-0.1.hum1 Fixed
redhat/php8.4(Red Hat enterprise_linux 10.3) < 8.4.28-1.el10_3 8.4.28-1.el10_3 Fixed
redhat/php8.4(Red Hat enterprise_linux_eus 10.2) < 8.4.28-1.el10_2 8.4.28-1.el10_2 Fixed

Affected products

ProductAffected versionsFixed in
alpine/php83(Alpine:v3.24) < 8.3.37-r0 8.3.37-r0
alpine/php84(Alpine:v3.24) < 8.4.28-r0 8.4.28-r0
alpine/php85(Alpine:v3.24) < 8.5.13-r0 8.5.13-r0
ubuntu/php8.1(Ubuntu:22.04) All versions No fix listed
ubuntu/php8.3(Ubuntu:24.04) All versions No fix listed
ubuntu/php8.5(Ubuntu:26.04) All versions No fix listed
ubuntu/php8.5(Ubuntu:26.10) All versions No fix listed
PHP(Azure Linux:3.0) All versions No fix listed
PHP < 8.2.36 8.2.36
PHP >= 8.3.0, < 8.3.37 8.3.37
PHP >= 8.4.0, < 8.4.28 8.4.28
PHP >= 8.5.0, < 8.5.13 8.5.13
debian/php8.2(Debian:12) < 8.2.36-1~deb12u1 8.2.36-1~deb12u1
debian/php8.2(Debian:12) = 8.2.10-1 No fix listed
debian/php8.2(Debian:12) = 8.2.10-2 No fix listed
debian/php8.2(Debian:12) = 8.2.12-1 No fix listed
debian/php8.2(Debian:12) = 8.2.16-1 No fix listed
debian/php8.2(Debian:12) = 8.2.16-2 No fix listed
debian/php8.2(Debian:12) = 8.2.17-1 No fix listed
debian/php8.2(Debian:12) = 8.2.18-1 No fix listed
debian/php8.2(Debian:12) = 8.2.18-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.20-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.20-2 No fix listed
debian/php8.2(Debian:12) = 8.2.20-3 No fix listed
debian/php8.2(Debian:12) = 8.2.21-1 No fix listed
Show 66 more
ProductAffected versionsFixed in
debian/php8.2(Debian:12) = 8.2.23-1 No fix listed
debian/php8.2(Debian:12) = 8.2.24-1 No fix listed
debian/php8.2(Debian:12) = 8.2.24-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.26-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.26-4 No fix listed
debian/php8.2(Debian:12) = 8.2.27-1 No fix listed
debian/php8.2(Debian:12) = 8.2.28-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.29-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.30-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.31-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.32-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.33-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.34-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.35-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.5-2 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1.1 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1.2 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1~deb12u1 No fix listed
debian/php8.4(Debian:13) < 8.4.28-1~deb13u1 8.4.28-1~deb13u1
debian/php8.4(Debian:13) = 8.4.11-1 No fix listed
debian/php8.4(Debian:13) = 8.4.16-1 No fix listed
debian/php8.4(Debian:13) = 8.4.16-1~deb13u1 No fix listed
debian/php8.4(Debian:13) = 8.4.20-1 No fix listed
debian/php8.4(Debian:13) = 8.4.21-1 No fix listed
debian/php8.4(Debian:13) = 8.4.21-1~deb13u1 No fix listed
debian/php8.4(Debian:13) = 8.4.22-1 No fix listed
debian/php8.4(Debian:13) = 8.4.23-1 No fix listed
debian/php8.4(Debian:13) = 8.4.23-1~deb13u1 No fix listed
debian/php8.4(Debian:13) = 8.4.24-1 No fix listed
debian/php8.4(Debian:13) = 8.4.24-1~deb13u1 No fix listed
debian/php8.4(Debian:13) = 8.4.26-1 No fix listed
debian/php8.4(Debian:13) = 8.4.26-1~deb13u1 No fix listed
debian/php8.4(Debian:13) = 8.4.27-1 No fix listed
debian/php8.4(Debian:13) = 8.4.27-1~deb13u1 No fix listed
debian/php8.4(Debian:14) < 8.4.28-2 8.4.28-2
debian/php8.4(Debian:14) = 8.4.11-1 No fix listed
debian/php8.4(Debian:14) = 8.4.16-1 No fix listed
debian/php8.4(Debian:14) = 8.4.16-1~deb13u1 No fix listed
debian/php8.4(Debian:14) = 8.4.20-1 No fix listed
debian/php8.4(Debian:14) = 8.4.21-1 No fix listed
debian/php8.4(Debian:14) = 8.4.21-1~deb13u1 No fix listed
debian/php8.4(Debian:14) = 8.4.22-1 No fix listed
debian/php8.4(Debian:14) = 8.4.23-1 No fix listed
debian/php8.4(Debian:14) = 8.4.23-1~deb13u1 No fix listed
debian/php8.4(Debian:14) = 8.4.24-1 No fix listed
debian/php8.4(Debian:14) = 8.4.24-1~deb13u1 No fix listed
debian/php8.4(Debian:14) = 8.4.26-1 No fix listed
debian/php8.4(Debian:14) = 8.4.26-1~deb13u1 No fix listed
debian/php8.4(Debian:14) = 8.4.27-1 No fix listed
debian/php8.4(Debian:14) = 8.4.27-1~deb13u1 No fix listed
debian/php8.4(Debian:14) = 8.4.28-1~deb13u1 No fix listed
redhat/php8.4(Red Hat:enterprise_linux:10.3) < 8.4.28-1.el10_3 8.4.28-1.el10_3
redhat/php8.4(Red Hat:enterprise_linux_eus:10.2) < 8.4.28-1.el10_2 8.4.28-1.el10_2
redhat/php(Red Hat:rhel_els:7) < 5.4.16-48.el7_9.2 5.4.16-48.el7_9.2
redhat/php:7.4-8100020261119125714.f7998665(Red Hat:enterprise_linux:8) All versions No fix listed
redhat/php:8.2-8100020261119180255.f7998665(Red Hat:enterprise_linux:8) All versions No fix listed
redhat/php:8.3-9090020261119185155.9(Red Hat:enterprise_linux:9) All versions No fix listed
redhat/php:8.3-9080020261120133305.9(Red Hat:rhel_eus:9.8) All versions No fix listed
redhat/php:8.2-9080020261120141350.9(Red Hat:rhel_eus:9.8) All versions No fix listed
redhat/php-main(Red Hat:hummingbird:1) < 8.5.13-0.1.hum1 8.5.13-0.1.hum1
redhat/php(Red Hat:enterprise_linux:10) All versions No fix listed
redhat/php(Red Hat:rhel_els:6) All versions No fix listed
redhat/php(Red Hat:enterprise_linux:9) All versions No fix listed
redhat/php:8.2/php(Red Hat:enterprise_linux:9) All versions No fix listed
redhat/php:8.4/php(Red Hat:enterprise_linux:9) All versions No fix listed

References