Skip to content

CVE-2026-129538 PHP-CGI out-of-bounds read and write during PATH_INFO correction

MediumCVSS 6.9 EPSS 12.8%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
PHPUbuntuDebianRed Hat

Description

PHP-CGI out-of-bounds read and write during PATH_INFO correction.

The PHP CGI binary (php-cgi), in CGI and FastCGI mode with cgi.fix_pathinfo enabled (the default), can perform an out-of-bounds read and write when the path removed from SCRIPT_FILENAME or PATH_TRANSLATED is longer than the supplied PATH_INFO, or when PATH_INFO is empty. This requires a web server mapping that passes such inconsistent values, or a FastCGI listener reachable by untrusted clients. An unauthenticated remote attacker can crash the process, may obtain process memory if the application exposes PATH_INFO or PATH_TRANSLATED, and may corrupt memory. PHP-FPM and the Apache module are not affected.

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: 9 fixed, 1 partially fixed, 15 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(Red Hat hummingbird 1) 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/php(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
debian/php8.4(Debian 14) < 8.4.28-2; = 8.4.11-1; = 8.4.16-1; = 8.4.16-1~deb13u1 +14 more 8.4.28-2 Partially fixed
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
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/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
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
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
debian/php8.2(Debian:12) < 8.2.36-1~deb12u1 8.2.36-1~deb12u1
debian/php8.4(Debian:14) All versions No fix listed
debian/php8.4(Debian:13) < 8.4.28-1~deb13u1 8.4.28-1~deb13u1
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
Show 67 more
ProductAffected versionsFixed in
debian/php8.2(Debian:12) = 8.2.20-3 No fix listed
debian/php8.2(Debian:12) = 8.2.21-1 No fix listed
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.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-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(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.3/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
redhat/php(Red Hat:hummingbird:1) All versions No fix listed

References