summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-twisted/CVE-2024-41671-0001.patch
diff options
context:
space:
mode:
authorSoumya Sambu <soumya.sambu@windriver.com>2025-04-23 04:59:35 +0000
committerArmin Kuster <akuster808@gmail.com>2025-05-25 14:48:44 -0400
commit5c4b61d38a86de2c26f4ce5e57aaa169643ac211 (patch)
tree3ce31e28cf34dcf1ddf5dddd3ec9869acd05843d /meta-python/recipes-devtools/python/python3-twisted/CVE-2024-41671-0001.patch
parent85275437cd64196d1bef8e16656df04201296fbf (diff)
downloadmeta-openembedded-5c4b61d38a86de2c26f4ce5e57aaa169643ac211.tar.gz
python3-twisted: Fix CVE-2024-41671
Twisted is an event-based framework for internet applications, supporting Python 3.6+. The HTTP 1.0 and 1.1 server provided by twisted.web could process pipelined HTTP requests out-of-order, possibly resulting in information disclosure. This vulnerability is fixed in 24.7.0rc1. References: https://nvd.nist.gov/vuln/detail/CVE-2024-41671 https://ubuntu.com/security/CVE-2024-41671 Upstream patches: https://github.com/twisted/twisted/commit/f1cb4e616e9f23b4dd044a6db44365060950c64f https://github.com/twisted/twisted/commit/ef2c755e9e9d57d58132af790bd2fd2b957b3fb1 Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-twisted/CVE-2024-41671-0001.patch')
-rw-r--r--meta-python/recipes-devtools/python/python3-twisted/CVE-2024-41671-0001.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-twisted/CVE-2024-41671-0001.patch b/meta-python/recipes-devtools/python/python3-twisted/CVE-2024-41671-0001.patch
new file mode 100644
index 0000000000..a5bffbd5a5
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-twisted/CVE-2024-41671-0001.patch
@@ -0,0 +1,33 @@
1From f1cb4e616e9f23b4dd044a6db44365060950c64f Mon Sep 17 00:00:00 2001
2From: Tom Most <twm@freecog.net>
3Date: Mon, 22 Jul 2024 22:21:10 -0700
4Subject: [PATCH] Use chunking in the pipelining tests
5
6CVE: CVE-2024-41671
7
8Upstream-Status: Backport [https://github.com/twisted/twisted/commit/f1cb4e616e9f23b4dd044a6db44365060950c64f]
9
10Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
11---
12 src/twisted/web/test/test_http.py | 4 +++-
13 1 file changed, 3 insertions(+), 1 deletion(-)
14
15diff --git a/src/twisted/web/test/test_http.py b/src/twisted/web/test/test_http.py
16index 7ffea4e..5d88ff1 100644
17--- a/src/twisted/web/test/test_http.py
18+++ b/src/twisted/web/test/test_http.py
19@@ -575,9 +575,11 @@ class PipeliningBodyTests(unittest.TestCase, ResponseTestMixin):
20 b"Content-Length: 10\r\n"
21 b"\r\n"
22 b"0123456789POST / HTTP/1.1\r\n"
23- b"Content-Length: 10\r\n"
24+ b"Transfer-Encoding: chunked\r\n"
25 b"\r\n"
26+ b"a\r\n"
27 b"0123456789"
28+ b"0\r\n"
29 )
30
31 expectedResponses = [
32--
332.40.0