summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2026-02-04 17:29:20 +0100
committerAnuj Mittal <anuj.mittal@oss.qualcomm.com>2026-02-05 06:59:41 +0530
commit6ac033a2272e70bfb6b017b7ee61bd0c9ffc5039 (patch)
treecc10eea65e13e285507610f8bb8f20a01cebed1e /meta-python
parent0ea6c04dde4902016de86120de99c16ea7d91df6 (diff)
downloadmeta-openembedded-6ac033a2272e70bfb6b017b7ee61bd0c9ffc5039.tar.gz
python3-aiohttp: patch CVE-2025-69228
Details: https://nvd.nist.gov/vuln/detail/CVE-2025-69228 Backport the patch that is referenced by the NVD advisory. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/recipes-devtools/python/python3-aiohttp/CVE-2025-69228.patch47
-rw-r--r--meta-python/recipes-devtools/python/python3-aiohttp_3.12.15.bb1
2 files changed, 48 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2025-69228.patch b/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2025-69228.patch
new file mode 100644
index 0000000000..74e383ea1b
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2025-69228.patch
@@ -0,0 +1,47 @@
1From 8426e0e6df8a3481c7482d4fbce749bfe77e2e44 Mon Sep 17 00:00:00 2001
2From: Gyorgy Sarvari <skandigraun@gmail.com>
3Date: Sat, 3 Jan 2026 02:48:45 +0000
4Subject: [PATCH] Enforce client_max_size over entire multipart form (#11889)
5 (#11908)
6
7From: Sam Bull <git@sambull.org>
8
9(cherry picked from commit ed90718fab5d34c127a283e10385f19440df7dd0)
10
11CVE: CVE-2025-69228
12Upstream-Status: Backport [https://github.com/aio-libs/aiohttp/commit/b7dbd35375aedbcd712cbae8ad513d56d11cce60]
13Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
14---
15 aiohttp/web_request.py | 2 +-
16 tests/test_web_functional.py | 4 ++--
17 2 files changed, 3 insertions(+), 3 deletions(-)
18
19diff --git a/aiohttp/web_request.py b/aiohttp/web_request.py
20index 96222b0..b5fa40c 100644
21--- a/aiohttp/web_request.py
22+++ b/aiohttp/web_request.py
23@@ -721,8 +721,8 @@ class BaseRequest(MutableMapping[str, Any], HeadersMixin):
24 multipart = await self.multipart()
25 max_size = self._client_max_size
26
27+ size = 0
28 while (field := await multipart.next()) is not None:
29- size = 0
30 field_ct = field.headers.get(hdrs.CONTENT_TYPE)
31
32 if isinstance(field, BodyPartReader):
33diff --git a/tests/test_web_functional.py b/tests/test_web_functional.py
34index c33b3ce..8ec237b 100644
35--- a/tests/test_web_functional.py
36+++ b/tests/test_web_functional.py
37@@ -1705,8 +1705,8 @@ async def test_app_max_client_size(aiohttp_client) -> None:
38 await resp.release()
39
40
41-async def test_app_max_client_size_adjusted(aiohttp_client) -> None:
42- async def handler(request):
43+async def test_app_max_client_size_adjusted(aiohttp_client: AiohttpClient) -> None:
44+ async def handler(request: web.Request) -> web.Response:
45 await request.post()
46 return web.Response(body=b"ok")
47
diff --git a/meta-python/recipes-devtools/python/python3-aiohttp_3.12.15.bb b/meta-python/recipes-devtools/python/python3-aiohttp_3.12.15.bb
index 644c07153d..55ff57d05c 100644
--- a/meta-python/recipes-devtools/python/python3-aiohttp_3.12.15.bb
+++ b/meta-python/recipes-devtools/python/python3-aiohttp_3.12.15.bb
@@ -8,6 +8,7 @@ SRC_URI += "file://CVE-2025-69224.patch \
8 file://CVE-2025-69225.patch \ 8 file://CVE-2025-69225.patch \
9 file://CVE-2025-69226.patch \ 9 file://CVE-2025-69226.patch \
10 file://CVE-2025-69227.patch \ 10 file://CVE-2025-69227.patch \
11 file://CVE-2025-69228.patch \
11" 12"
12SRC_URI[sha256sum] = "4fc61385e9c98d72fcdf47e6dd81833f47b2f77c114c29cd64a361be57a763a2" 13SRC_URI[sha256sum] = "4fc61385e9c98d72fcdf47e6dd81833f47b2f77c114c29cd64a361be57a763a2"
13 14