diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2026-02-07 11:33:52 +0100 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@oss.qualcomm.com> | 2026-02-12 13:38:12 +0530 |
| commit | ba968dda37d8cb1d60771fddeb0fcfb0a3a8dfb4 (patch) | |
| tree | 799703f32371c609dfa40147fa4f28480994a951 /meta-python/recipes-devtools/python | |
| parent | cd71a1e57c96bcfaaba7ed00f9fbd7be83cf09e8 (diff) | |
| download | meta-openembedded-ba968dda37d8cb1d60771fddeb0fcfb0a3a8dfb4.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/recipes-devtools/python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-aiohttp/CVE-2025-69228.patch | 48 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-aiohttp_3.9.5.bb | 1 |
2 files changed, 49 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..9a473b1328 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2025-69228.patch | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | From dd79eafcc7ad5429bb769de5fd5c0178e6064be7 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 3 | Date: Sat, 3 Jan 2026 02:48:45 +0000 | ||
| 4 | Subject: [PATCH] Enforce client_max_size over entire multipart form (#11889) | ||
| 5 | (#11908) | ||
| 6 | |||
| 7 | From: Sam Bull <git@sambull.org> | ||
| 8 | |||
| 9 | (cherry picked from commit ed90718fab5d34c127a283e10385f19440df7dd0) | ||
| 10 | |||
| 11 | CVE: CVE-2025-69228 | ||
| 12 | Upstream-Status: Backport [https://github.com/aio-libs/aiohttp/commit/b7dbd35375aedbcd712cbae8ad513d56d11cce60] | ||
| 13 | Signed-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 | |||
| 19 | diff --git a/aiohttp/web_request.py b/aiohttp/web_request.py | ||
| 20 | index d565557..b3d6141 100644 | ||
| 21 | --- a/aiohttp/web_request.py | ||
| 22 | +++ b/aiohttp/web_request.py | ||
| 23 | @@ -712,9 +712,9 @@ class BaseRequest(MutableMapping[str, Any], HeadersMixin): | ||
| 24 | multipart = await self.multipart() | ||
| 25 | max_size = self._client_max_size | ||
| 26 | |||
| 27 | + size = 0 | ||
| 28 | field = await multipart.next() | ||
| 29 | while field is not None: | ||
| 30 | - size = 0 | ||
| 31 | field_ct = field.headers.get(hdrs.CONTENT_TYPE) | ||
| 32 | |||
| 33 | if isinstance(field, BodyPartReader): | ||
| 34 | diff --git a/tests/test_web_functional.py b/tests/test_web_functional.py | ||
| 35 | index ee61537..96dcd1c 100644 | ||
| 36 | --- a/tests/test_web_functional.py | ||
| 37 | +++ b/tests/test_web_functional.py | ||
| 38 | @@ -1641,8 +1641,8 @@ async def test_app_max_client_size(aiohttp_client) -> None: | ||
| 39 | await resp.release() | ||
| 40 | |||
| 41 | |||
| 42 | -async def test_app_max_client_size_adjusted(aiohttp_client) -> None: | ||
| 43 | - async def handler(request): | ||
| 44 | +async def test_app_max_client_size_adjusted(aiohttp_client: AiohttpClient) -> None: | ||
| 45 | + async def handler(request: web.Request) -> web.Response: | ||
| 46 | await request.post() | ||
| 47 | return web.Response(body=b"ok") | ||
| 48 | |||
diff --git a/meta-python/recipes-devtools/python/python3-aiohttp_3.9.5.bb b/meta-python/recipes-devtools/python/python3-aiohttp_3.9.5.bb index f2332065ea..84a9f2e668 100644 --- a/meta-python/recipes-devtools/python/python3-aiohttp_3.9.5.bb +++ b/meta-python/recipes-devtools/python/python3-aiohttp_3.9.5.bb | |||
| @@ -10,6 +10,7 @@ SRC_URI += "file://CVE-2024-52304.patch \ | |||
| 10 | file://CVE-2025-53643.patch \ | 10 | file://CVE-2025-53643.patch \ |
| 11 | file://CVE-2025-69225.patch \ | 11 | file://CVE-2025-69225.patch \ |
| 12 | file://CVE-2025-69226.patch \ | 12 | file://CVE-2025-69226.patch \ |
| 13 | file://CVE-2025-69228.patch \ | ||
| 13 | " | 14 | " |
| 14 | 15 | ||
| 15 | PYPI_PACKAGE = "aiohttp" | 16 | PYPI_PACKAGE = "aiohttp" |
