summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools')
-rw-r--r--meta-python/recipes-devtools/python/python3-eventlet/CVE-2025-58068.patch42
-rw-r--r--meta-python/recipes-devtools/python/python3-eventlet_0.36.1.bb2
2 files changed, 44 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-eventlet/CVE-2025-58068.patch b/meta-python/recipes-devtools/python/python3-eventlet/CVE-2025-58068.patch
new file mode 100644
index 0000000000..45dda012b6
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-eventlet/CVE-2025-58068.patch
@@ -0,0 +1,42 @@
1From 2353500dc28eab63b47930851c75e9268a69ef1e Mon Sep 17 00:00:00 2001
2From: sebsrt <s@sebsrt.xyz>
3Date: Mon, 11 Aug 2025 11:46:28 +0200
4Subject: [PATCH] [SECURITY] Fix request smuggling vulnerability by discarding
5 trailers (#1062)
6
7The WSGI parser is vulnerable to a request smuggling vulnerability due to not parsing trailer sections of an HTTP request. This patch fix that by discarding trailers.
8
9CVE: CVE-2025-58068
10Upstream-Status: Backport [https://github.com/eventlet/eventlet/commit/0bfebd1117d392559e25b4bfbfcc941754de88fb]
11(cherry picked from commit 0bfebd1117d392559e25b4bfbfcc941754de88fb)
12Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
13---
14 eventlet/wsgi.py | 8 +++++++-
15 1 file changed, 7 insertions(+), 1 deletion(-)
16
17diff --git a/eventlet/wsgi.py b/eventlet/wsgi.py
18index 3b530b18..28ad2666 100644
19--- a/eventlet/wsgi.py
20+++ b/eventlet/wsgi.py
21@@ -153,6 +153,12 @@ class Input:
22 read = b''
23 self.position += len(read)
24 return read
25+
26+ def _discard_trailers(self, rfile):
27+ while True:
28+ line = rfile.readline()
29+ if not line or line in (b'\r\n', b'\n', b''):
30+ break
31
32 def _chunked_read(self, rfile, length=None, use_readline=False):
33 if self.should_send_hundred_continue:
34@@ -203,7 +209,7 @@ class Input:
35 raise ChunkReadError(err)
36 self.position = 0
37 if self.chunk_length == 0:
38- rfile.readline()
39+ self._discard_trailers(rfile)
40 except greenio.SSL.ZeroReturnError:
41 pass
42 return b''.join(response)
diff --git a/meta-python/recipes-devtools/python/python3-eventlet_0.36.1.bb b/meta-python/recipes-devtools/python/python3-eventlet_0.36.1.bb
index f70099ab94..72032c756c 100644
--- a/meta-python/recipes-devtools/python/python3-eventlet_0.36.1.bb
+++ b/meta-python/recipes-devtools/python/python3-eventlet_0.36.1.bb
@@ -6,6 +6,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=56472ad6de4caf50e05332a34b66e778"
6 6
7SRC_URI[sha256sum] = "d227fe76a63d9e6a6cef53beb8ad0b2dc40a5e7737c801f4b474cfae1db07bc5" 7SRC_URI[sha256sum] = "d227fe76a63d9e6a6cef53beb8ad0b2dc40a5e7737c801f4b474cfae1db07bc5"
8 8
9SRC_URI += "file://CVE-2025-58068.patch"
10
9inherit pypi setuptools3 11inherit pypi setuptools3
10 12
11RDEPENDS:${PN} += " \ 13RDEPENDS:${PN} += " \