]> git.pld-linux.org Git - packages/php.git/commitdiff
- hopefuly it's the same patch as adamg intended auto/th/php70-7.0.33-6
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 25 Oct 2019 12:29:05 +0000 (14:29 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 25 Oct 2019 12:29:05 +0000 (14:29 +0200)
php-CVE-2019-11043.patch [new file with mode: 0644]

diff --git a/php-CVE-2019-11043.patch b/php-CVE-2019-11043.patch
new file mode 100644 (file)
index 0000000..a841677
--- /dev/null
@@ -0,0 +1,22 @@
+commit ab061f95ca966731b1c84cf5b7b20155c0a1c06a
+Author: Jakub Zelenka <bukka@php.net>
+Date:   Sat Oct 12 15:56:16 2019 +0100
+
+    Fix bug #78599 (env_path_info underflow can lead to RCE) (CVE-2019-11043)
+
+diff --git a/sapi/fpm/fpm/fpm_main.c b/sapi/fpm/fpm/fpm_main.c
+index 24a7e5d56a..50f92981f1 100644
+--- a/sapi/fpm/fpm/fpm_main.c
++++ b/sapi/fpm/fpm/fpm_main.c
+@@ -1209,8 +1209,8 @@ static void init_request_info(void)
+                                                               path_info = script_path_translated + ptlen;
+                                                               tflag = (slen != 0 && (!orig_path_info || strcmp(orig_path_info, path_info) != 0));
+                                                       } else {
+-                                                              path_info = env_path_info ? env_path_info + pilen - slen : NULL;
+-                                                              tflag = (orig_path_info != path_info);
++                                                              path_info = (env_path_info && pilen > slen) ? env_path_info + pilen - slen : NULL;
++                                                              tflag = path_info && (orig_path_info != path_info);
+                                                       }
+                                                       if (tflag) {
+
This page took 0.779651 seconds and 4 git commands to generate.