Projects
home:rottame:vhosts-ng:php80
php8
php8-CVE-2026-129538.patch
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File php8-CVE-2026-129538.patch of Package php8
From 964cdcfa5adfa577cde97df89fc8fda04815694d Mon Sep 17 00:00:00 2001 From: Jakub Zelenka <bukka@php.net> Date: Mon, 26 Oct 2026 18:54:31 +0100 Subject: [PATCH] Fix GHSA-5j3f-64r7-f564: PATH_INFO underflow in CGI init_request_info() When the suffix stripped from SCRIPT_FILENAME (or PATH_TRANSLATED) is longer than PATH_INFO, the re-derived PATH_INFO pointed before the value and was then read, written and copied from. Only rewrite PATH_INFO when it is longer than the stripped suffix, as FPM has done since the CVE-2019-11043 fix. --- sapi/cgi/cgi_main.c | 4 +- sapi/cgi/tests/ghsa-5j3f-64r7-f564.phpt | 60 +++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 sapi/cgi/tests/ghsa-5j3f-64r7-f564.phpt Index: php-8.0.30/sapi/cgi/cgi_main.c =================================================================== --- php-8.0.30.orig/sapi/cgi/cgi_main.c +++ php-8.0.30/sapi/cgi/cgi_main.c @@ -1284,9 +1284,9 @@ static void init_request_info(fcgi_reque */ size_t slen = len - strlen(pt); size_t pilen = env_path_info ? strlen(env_path_info) : 0; - char *path_info = env_path_info ? env_path_info + pilen - slen : NULL; + char *path_info = (env_path_info && pilen > slen) ? env_path_info + pilen - slen : NULL; - if (orig_path_info != path_info) { + if (path_info && orig_path_info != path_info) { if (orig_path_info) { char old;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.