Projects
home:rottame:vhosts-ng:php74
php7
Log In
Username
Password
Problem getting expanded diff: bad link: conflict in file php7.spec
×
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 18
View file
php7.changes
Changed
@@ -1,4 +1,35 @@ ------------------------------------------------------------------- +Wed Nov 18 12:34:00 UTC 2026 - Petr Gajdos <pgajdos@suse.com> + +- added patches + CVE-2026-115560: possible RCE via session upload progress() bsc#1289303 + * php8-CVE-2026-115560.patch + CVE-2026-126714: Partially overwritten session files can lead to remote code execution bsc#1290690 + * php8-CVE-2026-126714.patch + CVE-2026-127960: Denial of service through folded HTTP response headers bsc#1290689 + * php8-CVE-2026-127960.patch + CVE-2026-128064: Mixed-case HTTPS and FTPS URLs can expose data in plaintext bsc#1290688 + * php8-CVE-2026-128064.patch + CVE-2026-128090: PHAR OpenSSL signature bypass via algorithm downgrade bsc#1290684 + * php8-CVE-2026-128090.patch + CVE-2026-129289: PHP-FPM request smuggling through an unread HTTP bsc#1290687 + * php8-CVE-2026-129289.patch + CVE-2026-129291: PHP-FPM epoll use-after-free can lead to local privilege escalation bsc#1290692 + * php8-CVE-2026-129291.patch + CVE-2026-129292: PHP-FPM status endpoint XSS via unescaped user and script fields bsc#1290685 + * php8-CVE-2026-129292.patch + CVE-2026-129496: Timezone cache use-after-free can lead to remote code execution bsc#1290686 + * php8-CVE-2026-129496.patch + CVE-2026-129506: SOAP use-after-free when processing DTD entity bsc#1290683 + * php8-CVE-2026-129506.patch + CVE-2026-129538: PHP-CGI out-of-bounds read and write during PATH_INFO correction bsc#1290682 + * php8-CVE-2026-129538.patch + CVE-2026-15353: SOAP information disclosure through malformed array dimensions bsc#1290681 + * php8-CVE-2026-15353.patch +- modified patches + * php7-CVE-2024-11234.patch (fixed) + +------------------------------------------------------------------- Thu Oct 22 12:43:08 UTC 2026 - Johannes Weberhofer <jweberhofer@weberhofer.at> - openssl must be loaded before mysqlnd (undefined symbol: RSA_public_encrypt) @@ -5223,5 +5254,3 @@ Thu Nov 25 12:18:31 MET 1999 - rolf@suse.de - initial package version 4.0b3 - -
View file
php7.spec
Changed
@@ -70,6 +70,8 @@ Source11: %{php_name}.rpmlintrc Source12: php-fpm.tmpfiles.d Source100: build-test.sh +## vhosts-ng: patch locali (tenere qui, fuori dalla lista patch dell'origine) +Patch1000: session-save-path.patch ## SUSE specific patches # adjust includedir Patch0: php-phpize.patch @@ -200,7 +202,30 @@ Patch68: php7-CVE-2025-1218.patch # CVE-2026-109618: memory corruption leading to RCE|CVE-2026-109619: memory corruption leading to RCE Patch69: php7-CVE-2026-109618,109619.patch -Patch1000: session-save-path.patch +# CVE-2026-15353: SOAP information disclosure through malformed array dimensions +Patch70: php7-CVE-2026-15353.patch +# CVE-2026-128090: PHAR OpenSSL signature bypass via algorithm downgrade +Patch71: php7-CVE-2026-128090.patch +# CVE-2026-129538: PHP-CGI out-of-bounds read and write during PATH_INFO correction +Patch72: php7-CVE-2026-129538.patch +# CVE-2026-129292: PHP-FPM status endpoint XSS via unescaped user and script fields +Patch73: php7-CVE-2026-129292.patch +# CVE-2026-129289: PHP-FPM request smuggling through an unread HTTP +Patch74: php7-CVE-2026-129289.patch +# CVE-2026-129506: SOAP use-after-free when processing DTD entity +Patch75: php7-CVE-2026-129506.patch +# CVE-2026-129496: Timezone cache use-after-free can lead to remote code execution +Patch76: php7-CVE-2026-129496.patch +# CVE-2026-126714: Partially overwritten session files can lead to remote code execution +Patch77: php7-CVE-2026-126714.patch +# CVE-2026-115560: possible RCE via session upload progress() +Patch78: php7-CVE-2026-115560.patch +# CVE-2026-128064: Mixed-case HTTPS and FTPS URLs can expose data in plaintext +Patch79: php7-CVE-2026-128064.patch +# CVE-2026-127960: Denial of service through folded HTTP response headers +Patch80: php7-CVE-2026-127960.patch +# CVE-2026-129291: PHP-FPM epoll use-after-free can lead to local privilege escalation +Patch81: php7-CVE-2026-129291.patch BuildRequires: apache-rpm-macros BuildRequires: autoconf BuildRequires: bison
View file
php7-CVE-2024-11234.patch
Changed
@@ -32,7 +32,7 @@ + if (request_fulluri && (strchr(path, '\n') != NULL || strchr(path, '\r') != NULL)) { + php_stream_wrapper_log_error(wrapper, options, "HTTP wrapper full URI path does not allow CR or LF characters"); + php_url_free(resource); -+ zend_string_release(transport_string); ++ efree(transport_string); + return NULL; + } +
View file
php7-CVE-2026-115560.patch
Added
@@ -0,0 +1,153 @@ +From 3f70f66611583bca4ec18385f7f407e2808fa61f Mon Sep 17 00:00:00 2001 +From: Arnaud Le Blanc <arnaud.lb@gmail.com> +Date: Mon, 9 Nov 2026 12:02:32 +0100 +Subject: PATCH Fix GHSA-658j-r8rw-q6mx: session.upload_progress.enabled is + off by default + +Also prevent changes to session INI settings at runtime when +session.upload_progress.enabled is On. +--- + ext/session/session.c | 19 ++- + ...ssion_ini_set_upload_progress_enabled.phpt | 127 ++++++++++++++++++ + 2 files changed, 145 insertions(+), 1 deletion(-) + create mode 100644 ext/session/tests/session_ini_set_upload_progress_enabled.phpt + +Index: php-7.4.33/ext/session/session.c +=================================================================== +--- php-7.4.33.orig/ext/session/session.c ++++ php-7.4.33/ext/session/session.c +@@ -98,6 +98,12 @@ zend_class_entry *php_session_update_tim + return FAILURE; \ + } + ++#define SESSION_CHECK_UPLOAD_PROGRESS_STATE \ ++ if (PS(rfc1867_enabled) && stage == ZEND_INI_STAGE_RUNTIME) { \ ++ zend_throw_error(NULL, "Session ini settings cannot be changed at runtime when session.upload_progress.enabled is On"); \ ++ return FAILURE; \ ++ } ++ + #define APPLY_TRANS_SID (PS(use_trans_sid) && !PS(use_only_cookies)) + + static int php_session_send_cookie(void); +@@ -533,6 +539,7 @@ static PHP_INI_MH(OnUpdateSaveHandler) / + { + const ps_module *tmp; + ++ SESSION_CHECK_UPLOAD_PROGRESS_STATE; + SESSION_CHECK_ACTIVE_STATE; + SESSION_CHECK_OUTPUT_STATE; + +@@ -572,6 +579,7 @@ static PHP_INI_MH(OnUpdateSerializer) /* + { + const ps_serializer *tmp; + ++ SESSION_CHECK_UPLOAD_PROGRESS_STATE; + SESSION_CHECK_ACTIVE_STATE; + SESSION_CHECK_OUTPUT_STATE; + +@@ -600,6 +608,7 @@ static PHP_INI_MH(OnUpdateSerializer) /* + + static PHP_INI_MH(OnUpdateTransSid) /* {{{ */ + { ++ SESSION_CHECK_UPLOAD_PROGRESS_STATE; + SESSION_CHECK_ACTIVE_STATE; + SESSION_CHECK_OUTPUT_STATE; + +@@ -616,6 +625,7 @@ static PHP_INI_MH(OnUpdateTransSid) /* { + + static PHP_INI_MH(OnUpdateSaveDir) /* {{{ */ + { ++ SESSION_CHECK_UPLOAD_PROGRESS_STATE; + SESSION_CHECK_ACTIVE_STATE; + SESSION_CHECK_OUTPUT_STATE; + +@@ -650,6 +660,7 @@ static PHP_INI_MH(OnUpdateSaveDir) /* {{ + + static PHP_INI_MH(OnUpdateName) /* {{{ */ + { ++ SESSION_CHECK_UPLOAD_PROGRESS_STATE; + SESSION_CHECK_ACTIVE_STATE; + SESSION_CHECK_OUTPUT_STATE; + +@@ -677,6 +688,7 @@ static PHP_INI_MH(OnUpdateName) /* {{{ * + + static PHP_INI_MH(OnUpdateCookieLifetime) /* {{{ */ + { ++ SESSION_CHECK_UPLOAD_PROGRESS_STATE; + SESSION_CHECK_ACTIVE_STATE; + SESSION_CHECK_OUTPUT_STATE; + if (atol(ZSTR_VAL(new_value)) < 0) { +@@ -690,6 +702,7 @@ static PHP_INI_MH(OnUpdateCookieLifetime + + static PHP_INI_MH(OnUpdateSessionLong) /* {{{ */ + { ++ SESSION_CHECK_UPLOAD_PROGRESS_STATE; + SESSION_CHECK_ACTIVE_STATE; + SESSION_CHECK_OUTPUT_STATE; + return OnUpdateLong(entry, new_value, mh_arg1, mh_arg2, mh_arg3, stage); +@@ -699,6 +712,7 @@ static PHP_INI_MH(OnUpdateSessionLong) / + + static PHP_INI_MH(OnUpdateSessionString) /* {{{ */ + { ++ SESSION_CHECK_UPLOAD_PROGRESS_STATE; + SESSION_CHECK_ACTIVE_STATE; + SESSION_CHECK_OUTPUT_STATE; + return OnUpdateString(entry, new_value, mh_arg1, mh_arg2, mh_arg3, stage); +@@ -708,8 +722,9 @@ static PHP_INI_MH(OnUpdateSessionString) + + static PHP_INI_MH(OnUpdateSessionBool) /* {{{ */ + { +- SESSION_CHECK_OUTPUT_STATE; ++ SESSION_CHECK_UPLOAD_PROGRESS_STATE; + SESSION_CHECK_ACTIVE_STATE; ++ SESSION_CHECK_OUTPUT_STATE; + return OnUpdateBool(entry, new_value, mh_arg1, mh_arg2, mh_arg3, stage); + } + /* }}} */ +@@ -720,8 +735,9 @@ static PHP_INI_MH(OnUpdateSidLength) /* + zend_long val; + char *endptr = NULL; + +- SESSION_CHECK_OUTPUT_STATE; ++ SESSION_CHECK_UPLOAD_PROGRESS_STATE; + SESSION_CHECK_ACTIVE_STATE; ++ SESSION_CHECK_OUTPUT_STATE; + val = ZEND_STRTOL(ZSTR_VAL(new_value), &endptr, 10); + if (endptr && (*endptr == '\0') + && val >= 22 && val <= PS_MAX_SID_LENGTH) { +@@ -740,8 +756,9 @@ static PHP_INI_MH(OnUpdateSidBits) /* {{ + zend_long val; + char *endptr = NULL; + +- SESSION_CHECK_OUTPUT_STATE; ++ SESSION_CHECK_UPLOAD_PROGRESS_STATE; + SESSION_CHECK_ACTIVE_STATE; ++ SESSION_CHECK_OUTPUT_STATE; + val = ZEND_STRTOL(ZSTR_VAL(new_value), &endptr, 10); + if (endptr && (*endptr == '\0') + && val >= 4 && val <=6) { +@@ -758,6 +775,7 @@ static PHP_INI_MH(OnUpdateSidBits) /* {{ + + static PHP_INI_MH(OnUpdateLazyWrite) /* {{{ */ + { ++ SESSION_CHECK_UPLOAD_PROGRESS_STATE; + SESSION_CHECK_ACTIVE_STATE; + SESSION_CHECK_OUTPUT_STATE; + return OnUpdateBool(entry, new_value, mh_arg1, mh_arg2, mh_arg3, stage); +@@ -816,7 +834,7 @@ PHP_INI_BEGIN() + + /* Upload progress */ + STD_PHP_INI_BOOLEAN("session.upload_progress.enabled", +- "1", ZEND_INI_PERDIR, OnUpdateBool, rfc1867_enabled, php_ps_globals, ps_globals) ++ "0", ZEND_INI_PERDIR, OnUpdateBool, rfc1867_enabled, php_ps_globals, ps_globals) + STD_PHP_INI_BOOLEAN("session.upload_progress.cleanup", + "1", ZEND_INI_PERDIR, OnUpdateBool, rfc1867_cleanup, php_ps_globals, ps_globals) + STD_PHP_INI_ENTRY("session.upload_progress.prefix", +@@ -2930,6 +2948,7 @@ static PHP_GINIT_FUNCTION(ps) /* {{{ */ + ps_globals->mod = NULL; + ps_globals->serializer = NULL; + ps_globals->mod_data = NULL; ++ ps_globals->rfc1867_enabled = false; + ps_globals->session_status = php_session_none; + ps_globals->default_mod = NULL; + ps_globals->mod_user_implemented = 0;
View file
php7-CVE-2026-126714.patch
Added
@@ -0,0 +1,30 @@ +From 41c0941ae27d1033129e0e09ce3af034ffee86ba Mon Sep 17 00:00:00 2001 +From: Ilija Tovilo <ilija.tovilo@me.com> +Date: Wed, 11 Nov 2026 16:53:47 +0100 +Subject: PATCH Fix GHSA-fm2m-fjf5-v3cp: RCE via corrupted session file + +If the session write is interrupted, and the previous session file wasn't +truncated, we can end up with two partial sessions concatenated together. The +approximate location of failure may be attacker-controllable in threaded +environments if another thread causes the process to _exit(). +--- + ext/session/mod_files.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +Index: php-7.4.33/ext/session/mod_files.c +=================================================================== +--- php-7.4.33.orig/ext/session/mod_files.c ++++ php-7.4.33/ext/session/mod_files.c +@@ -240,9 +240,9 @@ static int ps_files_write(ps_files *data + return FAILURE; + } + +- /* Truncate file if the amount of new data is smaller than the existing data set. */ +- if (ZSTR_LEN(val) < data->st_size) { +- php_ignore_value(ftruncate(data->fd, 0)); ++ if (ftruncate(data->fd, 0) != 0) { ++ php_error_docref(NULL, E_WARNING, "ftruncate() failed: %s (%d)", strerror(errno), errno); ++ return FAILURE; + } + + #if defined(HAVE_PWRITE)
View file
php7-CVE-2026-127960.patch
Added
@@ -0,0 +1,176 @@ +From a303f697268d42f6671c9d4c479ff90bbf301db1 Mon Sep 17 00:00:00 2001 +From: Jakub Zelenka <bukka@php.net> +Date: Tue, 6 Oct 2026 15:29:19 +0200 +Subject: PATCH Fix GHSA-mmf9-xm3v-hg2x: quadratic folded header + concatenation + +Each folded response header line was concatenated with the whole +accumulated header value into a newly allocated string. That made +parsing of a header split into many continuation lines quadratic, so a +malicious server could stall the client for a long time with a few MB +of headers. + +Accumulate the last header line in a smart_str instead so folding is +linear in the total header size. +--- + ext/standard/http_fopen_wrapper.c | 59 +++++++++++++++---------------- + 1 file changed, 28 insertions(+), 31 deletions(-) + +Index: php-7.4.33/ext/standard/http_fopen_wrapper.c +=================================================================== +--- php-7.4.33.orig/ext/standard/http_fopen_wrapper.c ++++ php-7.4.33/ext/standard/http_fopen_wrapper.c +@@ -224,25 +224,21 @@ static bool php_stream_http_response_hea + } + + /* Process folding headers of the current line and if there are none, parse last full response +- * header line. It returns NULL if the last header is finished, otherwise it returns updated +- * last header line. */ +-static zend_string *php_stream_http_response_headers_parse(php_stream_wrapper *wrapper, ++ * header line. It returns true if the current line was folded into the last header line, ++ * otherwise false. */ ++static bool php_stream_http_response_headers_parse(php_stream_wrapper *wrapper, + php_stream *stream, php_stream_context *context, int options, +- zend_string *last_header_line_str, char *header_line, size_t *header_line_length, ++ smart_str *last_header, char *header_line, size_t *header_line_length, + int response_code, zval *response_header, + php_stream_http_response_header_info *header_info) + { +- char *last_header_line = ZSTR_VAL(last_header_line_str); +- size_t last_header_line_length = ZSTR_LEN(last_header_line_str); +- char *last_header_line_end = ZSTR_VAL(last_header_line_str) + ZSTR_LEN(last_header_line_str) - 1; +- + /* Process non empty header line. */ + if (header_line && (*header_line != '\n' && *header_line != '\r')) { + /* Removing trailing white spaces. */ + if (php_stream_http_response_header_trim(header_line, header_line_length) && + *header_line_length == 0) { + /* Only spaces so treat as an empty folding header. */ +- return last_header_line_str; ++ return true; + } + + /* Process folding headers if starting with a space or a tab. */ +@@ -257,18 +253,18 @@ static zend_string *php_stream_http_resp + /* It has to have some characters because it would get returned after the call + * php_stream_http_response_header_trim above. */ + ZEND_ASSERT(http_folded_header_line_length > 0); +- /* Concatenate last header line, space and current header line. */ +- zend_string *extended_header_str = zend_string_concat3( +- last_header_line, last_header_line_length, +- " ", 1, +- http_folded_header_line, http_folded_header_line_length); +- zend_string_efree(last_header_line_str); +- last_header_line_str = extended_header_str; +- /* Return new header line. */ +- return last_header_line_str; ++ /* Append space and current header line to the last header line. */ ++ smart_str_appendc(last_header, ' '); ++ smart_str_appendl(last_header, http_folded_header_line, http_folded_header_line_length); ++ return true; + } + } + ++ zend_string *last_header_line_str = smart_str_extract(last_header); ++ char *last_header_line = ZSTR_VAL(last_header_line_str); ++ size_t last_header_line_length = ZSTR_LEN(last_header_line_str); ++ char *last_header_line_end = ZSTR_VAL(last_header_line_str) + ZSTR_LEN(last_header_line_str) - 1; ++ + /* Find header separator position. */ + char *last_header_value = memchr(last_header_line, ':', last_header_line_length); + if (last_header_value) { +@@ -280,7 +276,7 @@ static zend_string *php_stream_http_resp + php_stream_wrapper_log_error(wrapper, options, + "HTTP invalid response format (space in header name)!"); + zend_string_efree(last_header_line_str); +- return NULL; ++ return false; + } + ++last_header_name; + } +@@ -298,7 +294,7 @@ static zend_string *php_stream_http_resp + php_stream_wrapper_log_error(wrapper, options, + "HTTP invalid response format (no colon in header line)!"); + zend_string_efree(last_header_line_str); +- return NULL; ++ return false; + } + + bool store_header = true; +@@ -323,7 +319,7 @@ static zend_string *php_stream_http_resp + "HTTP Location header size is over the limit of %d bytes", + HTTP_HEADER_MAX_LOCATION_SIZE); + zend_string_efree(last_header_line_str); +- return NULL; ++ return false; + } + if (header_info->location_len == 0) { + header_info->location = emalloc(last_header_value_len + 1); +@@ -371,7 +367,7 @@ static zend_string *php_stream_http_resp + zend_string_efree(last_header_line_str); + } + +- return NULL; ++ return false; + } + + static php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, +@@ -388,7 +384,7 @@ static php_stream *php_stream_url_wrap_h + zval *ua_zval = NULL, *tmpzval = NULL, ssl_proxy_peer_name; + int reqok = 0; + char *http_header_line = NULL; +- zend_string *last_header_line_str = NULL; ++ smart_str last_header = {0}; + php_stream_http_response_header_info header_info; + char tmp_line128; + size_t chunk_size = 0; +@@ -1032,12 +1028,12 @@ finish: + last_line = false; + } + +- if (last_header_line_str != NULL) { ++ if (last_header.s != NULL) { + /* Parse last header line. */ +- last_header_line_str = php_stream_http_response_headers_parse(wrapper, stream, +- context, options, last_header_line_str, http_header_line, ++ bool folded = php_stream_http_response_headers_parse(wrapper, stream, ++ context, options, &last_header, http_header_line, + &http_header_line_length, response_code, response_header, &header_info); +- if (EXPECTED(last_header_line_str == NULL)) { ++ if (EXPECTED(!folded)) { + if (UNEXPECTED(header_info.error)) { + php_stream_close(stream); + stream = NULL; +@@ -1061,20 +1057,20 @@ finish: + } + if (last_line) { + /* For the last line the last header line must be NULL. */ +- ZEND_ASSERT(last_header_line_str == NULL); ++ ZEND_ASSERT(last_header.s == NULL); + break; + } + /* Save current line as the last line so it gets parsed in the next round. */ +- last_header_line_str = zend_string_init(http_header_line, http_header_line_length, 0); ++ smart_str_appendl(&last_header, http_header_line, http_header_line_length); + } else { + break; + } + } + + /* If the stream was closed early, we still want to process the last line to keep BC. */ +- if (last_header_line_str != NULL) { ++ if (last_header.s != NULL) { + php_stream_http_response_headers_parse(wrapper, stream, context, options, +- last_header_line_str, NULL, NULL, response_code, response_header, &header_info); ++ &last_header, NULL, NULL, response_code, response_header, &header_info); + } + + if (!reqok || (header_info.location != NULL && header_info.follow_location)) { +@@ -1193,6 +1189,7 @@ finish: + out: + + smart_str_free(&req_buf); ++ smart_str_free(&last_header); + + if (http_header_line) { + efree(http_header_line);
View file
php7-CVE-2026-128064.patch
Added
@@ -0,0 +1,43 @@ +From cb68a63e8177f9dc25aba23c0d79c7da82ea69db Mon Sep 17 00:00:00 2001 +From: Jakub Zelenka <bukka@php.net> +Date: Fri, 6 Nov 2026 21:46:18 +0100 +Subject: PATCH Fix GHSA-f6gg-rchx-xw8j: mixed case HTTPS and FTPS + +Determine TLS use from a case-insensitive comparison of the complete +URL scheme, preventing mixed-case HTTPS and FTPS URLs from downgrading +to plaintext. Add regression tests for both wrappers. +--- + ext/standard/ftp_fopen_wrapper.c | 2 +- + ext/standard/http_fopen_wrapper.c | 2 +- + .../tests/http/ghsa-f6gg-rchx-xw8j.phpt | 61 +++++++++++++++++++ + .../tests/streams/ghsa-f6gg-rchx-xw8j.phpt | 34 +++++++++++ + 4 files changed, 97 insertions(+), 2 deletions(-) + create mode 100644 ext/standard/tests/http/ghsa-f6gg-rchx-xw8j.phpt + create mode 100644 ext/standard/tests/streams/ghsa-f6gg-rchx-xw8j.phpt + +Index: php-7.4.33/ext/standard/ftp_fopen_wrapper.c +=================================================================== +--- php-7.4.33.orig/ext/standard/ftp_fopen_wrapper.c ++++ php-7.4.33/ext/standard/ftp_fopen_wrapper.c +@@ -147,7 +147,7 @@ static php_stream *php_ftp_fopen_connect + return NULL; + } + +- use_ssl = resource->scheme && (ZSTR_LEN(resource->scheme) > 3) && ZSTR_VAL(resource->scheme)3 == 's'; ++ use_ssl = resource->scheme && zend_string_equals_literal_ci(resource->scheme, "ftps"); + + /* use port 21 if one wasn't specified */ + if (resource->port == 0) +Index: php-7.4.33/ext/standard/http_fopen_wrapper.c +=================================================================== +--- php-7.4.33.orig/ext/standard/http_fopen_wrapper.c ++++ php-7.4.33/ext/standard/http_fopen_wrapper.c +@@ -448,7 +448,7 @@ static php_stream *php_stream_url_wrap_h + request_fulluri = zend_is_true(tmpzval); + } + +- use_ssl = resource->scheme && (ZSTR_LEN(resource->scheme) > 4) && ZSTR_VAL(resource->scheme)4 == 's'; ++ use_ssl = zend_string_equals_literal_ci(resource->scheme, "https"); + /* choose default ports */ + if (use_ssl && resource->port == 0) + resource->port = 443;
View file
php7-CVE-2026-128090.patch
Added
@@ -0,0 +1,50 @@ +From 7050cf338092a93e7d4caa4b7dc0bb8771f52a01 Mon Sep 17 00:00:00 2001 +From: Alexandre Daubois <alex.daubois@gmail.com> +Date: Fri, 13 Nov 2026 08:33:23 +0100 +Subject: PATCH Fix GHSA-68fq-fh7h-f8gr: refuse keyless phar signature when + .pubkey exists + +The signature type is not covered by the signature, so an OpenSSL signed +phar could be downgraded to a keyless hash algorithm. +--- + ext/phar/tests/ghsa-68fq-fh7h-f8gr.phpt | 122 ++++++++++++++++++++++++ + ext/phar/util.c | 17 ++++ + 2 files changed, 139 insertions(+) + create mode 100644 ext/phar/tests/ghsa-68fq-fh7h-f8gr.phpt +Index: php-7.4.33/ext/phar/util.c +=================================================================== +--- php-7.4.33.orig/ext/phar/util.c ++++ php-7.4.33/ext/phar/util.c +@@ -21,6 +21,8 @@ + #include "phar_internal.h" + #include "ext/hash/php_hash_sha.h" + ++#include <stdbool.h> ++ + #ifdef PHAR_HAVE_OPENSSL + /* OpenSSL includes */ + #include <openssl/evp.h> +@@ -1506,6 +1508,23 @@ int phar_verify_signature(php_stream *fp + + php_stream_rewind(fp); + ++ if (sig_type != PHAR_SIG_OPENSSL) { ++ php_stream_statbuf ssb; ++ char *pfile; ++ bool has_pubkey; ++ ++ spprintf(&pfile, 0, "%s.pubkey", fname); ++ has_pubkey = php_stream_stat_path_ex(pfile, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL) == 0; ++ efree(pfile); ++ ++ if (has_pubkey) { ++ if (error) { ++ spprintf(error, 0, "openssl public key found, but the signature does not use openssl"); ++ } ++ return FAILURE; ++ } ++ } ++ + switch (sig_type) { + case PHAR_SIG_OPENSSL: { + #ifdef PHAR_HAVE_OPENSSL
View file
php7-CVE-2026-129289.patch
Added
@@ -0,0 +1,62 @@ +From 28014fd092c7acdafb9c074e735f099893a5ef66 Mon Sep 17 00:00:00 2001 +From: Jakub Zelenka <bukka@php.net> +Date: Thu, 29 Oct 2026 11:19:04 +0100 +Subject: PATCH Fix GHSA-qc49-hpvq-g2w6: Drain unread request bodies + +Opening php://input can create a request body stream without +consuming the input from the SAPI. Request shutdown treated the +stream as proof that the body was read and skipped the drain. + +Drain whenever post_read is false, independently of whether the +stream exists. This keeps unread FastCGI STDIN bytes from being +parsed as another request when FCGI_KEEP_CONN is set. + +As a final safeguard, reject a new FastCGI request if the +previous STDIN record was only partially consumed. +--- + main/SAPI.c | 3 +- + main/fastcgi.c | 6 + + sapi/fpm/tests/unread-body-keep-conn.phpt | 125 +++++++++++++++++ + .../fpm/tests/unread-body-partial-record.phpt | 127 ++++++++++++++++++ + 4 files changed, 260 insertions(+), 1 deletion(-) + create mode 100644 sapi/fpm/tests/unread-body-keep-conn.phpt + create mode 100644 sapi/fpm/tests/unread-body-partial-record.phpt + +Index: php-7.4.33/main/SAPI.c +=================================================================== +--- php-7.4.33.orig/main/SAPI.c ++++ php-7.4.33/main/SAPI.c +@@ -496,7 +496,8 @@ SAPI_API void sapi_deactivate(void) + zend_llist_destroy(&SG(sapi_headers).headers); + if (SG(request_info).request_body) { + SG(request_info).request_body = NULL; +- } else if (SG(server_context)) { ++ } ++ if (SG(server_context)) { + if (!SG(post_read)) { + /* make sure we've consumed all request input data */ + char dummySAPI_POST_BLOCK_SIZE; +Index: php-7.4.33/main/fastcgi.c +=================================================================== +--- php-7.4.33.orig/main/fastcgi.c ++++ php-7.4.33/main/fastcgi.c +@@ -1049,6 +1049,10 @@ static int fcgi_read_request(fcgi_reques + int len, padding; + unsigned char bufFCGI_MAX_LENGTH+8; + ++ if (UNEXPECTED(req->in_len != 0)) { ++ return 0; ++ } ++ + req->keep = 0; + req->ended = 0; + req->in_len = 0; +@@ -1312,6 +1316,8 @@ void fcgi_close(fcgi_request *req, int f + req->nodelay = 0; + #endif + req->fd = -1; ++ /* a partially read STDIN record does not outlive its connection */ ++ req->in_len = 0; + + req->hook.on_close(); + }
View file
php7-CVE-2026-129291.patch
Added
@@ -0,0 +1,43 @@ +From 8c38b791449708540fd356ddc6927f463faeca91 Mon Sep 17 00:00:00 2001 +From: "Ian P. Christian" <ian.christian@zoopla.co.uk> +Date: Tue, 27 Oct 2026 17:59:48 +0100 +Subject: PATCH Fix GHSA-jm4m-qfqx-967m: FPM worker stdio pipe fd closed + twice + +Backport of the GH-24046 fix (cd161267c0d2ca293b6959114d7c68867273bbda). + +Co-authored-by: ndossche <7771979+ndossche@users.noreply.github.com> +--- + sapi/fpm/fpm/fpm_children.c | 8 +++ + .../gh24046-stdio-pipe-double-close.phpt | 57 +++++++++++++++++++ + 2 files changed, 65 insertions(+) + create mode 100644 sapi/fpm/tests/gh24046-stdio-pipe-double-close.phpt + +Index: php-7.4.33/sapi/fpm/fpm/fpm_children.c +=================================================================== +--- php-7.4.33.orig/sapi/fpm/fpm/fpm_children.c ++++ php-7.4.33/sapi/fpm/fpm/fpm_children.c +@@ -71,7 +71,11 @@ static void fpm_child_close(struct fpm_c + fpm_event_fire(&child->ev_stdout); + } + if (child->fd_stdout != -1) { ++ if (in_event_loop) { ++ fpm_event_del(&child->ev_stdout); ++ } + close(child->fd_stdout); ++ child->fd_stdout = -1; + } + } + +@@ -80,7 +84,11 @@ static void fpm_child_close(struct fpm_c + fpm_event_fire(&child->ev_stderr); + } + if (child->fd_stderr != -1) { ++ if (in_event_loop) { ++ fpm_event_del(&child->ev_stderr); ++ } + close(child->fd_stderr); ++ child->fd_stderr = -1; + } + } +
View file
php7-CVE-2026-129292.patch
Added
@@ -0,0 +1,137 @@ +From 1ecb92f2cdeb235bb10d6c220c9be4a13f527243 Mon Sep 17 00:00:00 2001 +From: Jakub Zelenka <bukka@php.net> +Date: Mon, 26 Oct 2026 20:10:08 +0100 +Subject: PATCH Fix GHSA-3mg3-cr28-46gc: FPM XSS within status endpoint via + user and script + +The fix for GHSA-7qg2-v9fj-4mwv escaped only the request URI and query +string. The request method, auth user and script filename were still +printed raw in the full status output. Escape all of them using a common +helper. +--- + sapi/fpm/fpm/fpm_status.c | 98 +++++++++---------- + .../tests/ghsa-3mg3-cr28-46gc-status-xss.phpt | 70 +++++++++++++ + 2 files changed, 117 insertions(+), 51 deletions(-) + create mode 100644 sapi/fpm/tests/ghsa-3mg3-cr28-46gc-status-xss.phpt + +Index: php-7.4.33/sapi/fpm/fpm/fpm_status.c +=================================================================== +--- php-7.4.33.orig/sapi/fpm/fpm/fpm_status.c ++++ php-7.4.33/sapi/fpm/fpm/fpm_status.c +@@ -4,6 +4,7 @@ + #include "zend_long.h" + #include "SAPI.h" + #include <stdio.h> ++#include <stdbool.h> + + #include "fpm_config.h" + #include "fpm_scoreboard.h" +@@ -44,6 +45,20 @@ int fpm_status_init_child(struct fpm_wor + } + /* }}} */ + ++static char *fpm_status_escape(const char *str, bool encode_html, zend_string **tmp) ++{ ++ *tmp = NULL; ++ if (str0 == '\0') { ++ return NULL; ++ } ++ if (encode_html) { ++ *tmp = php_escape_html_entities_ex((unsigned char *) str, strlen(str), 1, ++ ENT_DISALLOWED | ENT_HTML_DOC_XML1 | ENT_COMPAT, NULL, /* double_encode */ 1); ++ return ZSTR_VAL(*tmp); ++ } ++ return (char *) str; ++} ++ + int fpm_status_export_to_zval(zval *status) + { + struct fpm_scoreboard_s scoreboard, *scoreboard_p; +@@ -483,8 +498,10 @@ int fpm_status_handle_request(void) /* { + if (full_syntax) { + unsigned int i; + int first; +- zend_string *tmp_query_string, *tmp_request_uri_string; +- char *query_string, *request_uri_string; ++ zend_string *tmp_request_method_string, *tmp_request_uri_string, *tmp_query_string; ++ zend_string *tmp_auth_user_string, *tmp_script_filename_string; ++ char *request_method_string, *request_uri_string, *query_string; ++ char *auth_user_string, *script_filename_string; + struct timeval duration, now; + #ifdef HAVE_FPM_LQ + float cpu; +@@ -511,30 +528,12 @@ int fpm_status_handle_request(void) /* { + } + } + +- request_uri_string = NULL; +- tmp_request_uri_string = NULL; +- if (proc.request_uri0 != '\0') { +- if (encode) { +- tmp_request_uri_string = php_escape_html_entities_ex( +- (const unsigned char *) proc.request_uri, +- strlen(proc.request_uri), 1, ENT_DISALLOWED | ENT_HTML_DOC_XML1 | ENT_COMPAT, +- NULL, /* double_encode */ 1); +- request_uri_string = ZSTR_VAL(tmp_request_uri_string); +- } else { +- request_uri_string = proc.request_uri; +- } +- } ++ request_method_string = fpm_status_escape(proc.request_method, encode, &tmp_request_method_string); ++ request_uri_string = fpm_status_escape(proc.request_uri, encode, &tmp_request_uri_string); ++ query_string = fpm_status_escape(proc.query_string, encode, &tmp_query_string); ++ auth_user_string = fpm_status_escape(proc.auth_user, encode, &tmp_auth_user_string); ++ script_filename_string = fpm_status_escape(proc.script_filename, encode, &tmp_script_filename_string); + +- query_string = NULL; +- tmp_query_string = NULL; +- if (proc.query_string0 != '\0') { +- if (!encode) { +- query_string = proc.query_string; +- } else { +- tmp_query_string = php_escape_html_entities_ex((unsigned char *)proc.query_string, strlen(proc.query_string), 1, ENT_DISALLOWED | ENT_HTML_DOC_XML1 | ENT_COMPAT, NULL, 1); +- query_string = ZSTR_VAL(tmp_query_string); +- } +- } + + #ifdef HAVE_FPM_LQ + /* prevent NaN */ +@@ -558,13 +557,13 @@ int fpm_status_handle_request(void) /* { + (unsigned long) (now_epoch - proc.start_epoch), + proc.requests, + duration.tv_sec * 1000000UL + duration.tv_usec, +- proc.request_method0 != '\0' ? proc.request_method : "-", ++ request_method_string ? request_method_string : "-", + request_uri_string ? request_uri_string : "-", + query_string ? "?" : "", + query_string ? query_string : "", + proc.content_length, +- proc.auth_user0 != '\0' ? proc.auth_user : "-", +- proc.script_filename0 != '\0' ? proc.script_filename : "-", ++ auth_user_string ? auth_user_string : "-", ++ script_filename_string ? script_filename_string : "-", + #ifdef HAVE_FPM_LQ + proc.request_stage == FPM_REQUEST_ACCEPTING ? cpu : 0., + #endif +@@ -572,12 +571,21 @@ int fpm_status_handle_request(void) /* { + PUTS(buffer); + efree(buffer); + ++ if (tmp_request_method_string) { ++ zend_string_free(tmp_request_method_string); ++ } + if (tmp_request_uri_string) { + zend_string_free(tmp_request_uri_string); + } + if (tmp_query_string) { + zend_string_free(tmp_query_string); + } ++ if (tmp_auth_user_string) { ++ zend_string_free(tmp_auth_user_string); ++ } ++ if (tmp_script_filename_string) { ++ zend_string_free(tmp_script_filename_string); ++ } + } + + if (full_post) {
View file
php7-CVE-2026-129496.patch
Added
@@ -0,0 +1,34 @@ +From f986c5ca37c0fdc50595d8291a9920a1df23bf38 Mon Sep 17 00:00:00 2001 +From: Ilija Tovilo <ilija.tovilo@me.com> +Date: Sun, 15 Nov 2026 15:25:20 +0100 +Subject: PATCH Fix GHSA-gr4f-wgx5-jpfv: DATEG(tzcache) use-after-free + +--- + ext/date/tests/GHSA-gr4f-wgx5-jpfv.phpt | 22 ++++++++++++++++++++++ + ext/zend_test/php_test.h | 1 + + ext/zend_test/test.c | 12 ++++++++++++ + main/main.c | 10 +--------- + 4 files changed, 36 insertions(+), 9 deletions(-) + create mode 100644 ext/date/tests/GHSA-gr4f-wgx5-jpfv.phpt + +Index: php-7.4.33/main/main.c +=================================================================== +--- php-7.4.33.orig/main/main.c ++++ php-7.4.33/main/main.c +@@ -914,15 +914,7 @@ PHPAPI ZEND_COLD void php_log_err_with_s + zend_string *error_time_str; + + time(&error_time); +-#ifdef ZTS +- if (!php_during_module_startup()) { +- error_time_str = php_format_date("d-M-Y H:i:s e", 13, error_time, 1); +- } else { +- error_time_str = php_format_date("d-M-Y H:i:s e", 13, error_time, 0); +- } +-#else +- error_time_str = php_format_date("d-M-Y H:i:s e", 13, error_time, 1); +-#endif ++ error_time_str = php_format_date("d-M-Y H:i:s e", 13, error_time, PG(modules_activated) && EG(active)); + len = spprintf(&tmp, 0, "%s %s%s", ZSTR_VAL(error_time_str), log_message, PHP_EOL); + #ifdef PHP_WIN32 + php_flock(fd, 2);
View file
php7-CVE-2026-129506.patch
Added
@@ -0,0 +1,25 @@ +From 66db5cda7df3d7a0e1fc7b171bd9ca318fca49fb Mon Sep 17 00:00:00 2001 +From: Jakub Zelenka <bukka@php.net> +Date: Sun, 1 Nov 2026 15:18:09 +0100 +Subject: PATCH Fix GHSA-4646-p932-gw34: keep SOAP DTD alive during cleanup + +--- + ext/soap/php_xml.c | 3 +++ + ext/soap/tests/GHSA-4646-p932-gw34.phpt | 35 +++++++++++++++++++++++++ + 2 files changed, 38 insertions(+) + create mode 100644 ext/soap/tests/GHSA-4646-p932-gw34.phpt + +Index: php-7.4.33/ext/soap/php_xml.c +=================================================================== +--- php-7.4.33.orig/ext/soap/php_xml.c ++++ php-7.4.33/ext/soap/php_xml.c +@@ -52,6 +52,9 @@ static void cleanup_xml_node(xmlNodePtr + xmlUnlinkNode(trav); + xmlFreeNode(trav); + } ++ } else if (trav->type == XML_DTD_NODE) { ++ /* Attribute-value entity references can share content with the DTD. ++ * Keep it alive until the document itself is freed. */ + } else if ((trav->type != XML_ELEMENT_NODE) && + (trav->type != XML_CDATA_SECTION_NODE)) { + xmlUnlinkNode(trav);
View file
php7-CVE-2026-129538.patch
Added
@@ -0,0 +1,33 @@ +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-7.4.33/sapi/cgi/cgi_main.c +=================================================================== +--- php-7.4.33.orig/sapi/cgi/cgi_main.c ++++ php-7.4.33/sapi/cgi/cgi_main.c +@@ -1297,9 +1297,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; +
View file
php7-CVE-2026-15353.patch
Added
@@ -0,0 +1,29 @@ +From 59e46404a744b7ef469f51acd3ee225d518dbaf8 Mon Sep 17 00:00:00 2001 +From: Alexandre Daubois <alex.daubois@gmail.com> +Date: Mon, 21 Sep 2026 15:49:40 +0200 +Subject: PATCH Fix GHSA-q23r-hr55-xmpg: out-of-bounds read on empty + SOAP-ENC:arraySize + +--- + ext/soap/php_encoding.c | 2 +- + ext/soap/tests/GHSA-q23r-hr55-xmpg-wsdl.phpt | 80 ++++++++++++++++++++ + ext/soap/tests/GHSA-q23r-hr55-xmpg-wsdl.wsdl | 67 ++++++++++++++++ + ext/soap/tests/GHSA-q23r-hr55-xmpg.phpt | 65 ++++++++++++++++ + 4 files changed, 213 insertions(+), 1 deletion(-) + create mode 100644 ext/soap/tests/GHSA-q23r-hr55-xmpg-wsdl.phpt + create mode 100644 ext/soap/tests/GHSA-q23r-hr55-xmpg-wsdl.wsdl + create mode 100644 ext/soap/tests/GHSA-q23r-hr55-xmpg.phpt + +Index: php-7.4.33/ext/soap/php_encoding.c +=================================================================== +--- php-7.4.33.orig/ext/soap/php_encoding.c ++++ php-7.4.33/ext/soap/php_encoding.c +@@ -2013,7 +2013,7 @@ static int calc_dimension_12(const char* + } + str++; + } +- return i; ++ return i != 0 ? i : 1; + } + + static int* get_position_12(int dimension, const char* str)
View file
_link
Changed
@@ -1,4 +1,4 @@ -<link project="openSUSE.org:devel:languages:php:php74" baserev="86d0b63da3d390ce69e0d567148f0e92"> +<link project="openSUSE.org:devel:languages:php:php74" baserev="be3efc01815fa50ba607f3e581d198f1"> <patches> <branch/> </patches>
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
.