Use of Out-of-range Pointer Offset in PHP - CVE-2026-129538

 

Use of Out-of-range Pointer Offset in PHP - CVE-2026-129538

Published: November 19, 2026


Vulnerability identifier: #VU167914
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-129538
CWE-ID: CWE-823
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to crash a PHP-CGI process, corrupt its memory, or potentially disclose process memory.

The vulnerability exists due to use of an out-of-range pointer offset in PHP-CGI's init_request_info() when correcting PATH_INFO using inconsistent script and path values, allowing reads and writes outside the PATH_INFO buffer. A remote attacker can trigger the invalid memory access through a request handled by an affected web server mapping or through direct access to an exposed PHP-CGI FastCGI listener to crash the process, corrupt its memory, or disclose process memory if the application exposes the affected values.

The issue affects PHP-CGI in CGI and FastCGI modes only when cgi.fix_pathinfo=1, the default. PHP-FPM and PHP running as an Apache module are not affected.


Affected software

PHP
Debian Linux
Fedora
php
php8.4 (Debian package)

How to mitigate CVE-2026-129538

Install security update from vendor's website.

PHP - addressed in versions 8.2.36, 8.3.37, 8.4.28, 8.5.13
php - addressed in versions 8.4.28-2.fc43, 8.5.13-1.fc44, 8.5.13-1.fc45
php8.4 (Debian package) - update to 8.4.28-1~deb13u1

External References

Related Security Bulletins