summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-twisted/CVE-2022-24801-4.patch
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2026-01-14 08:34:35 +0100
committerGyorgy Sarvari <skandigraun@gmail.com>2026-01-20 18:22:07 +0100
commit12d4f40a4a5881d2e26741fbed672fd841f557f5 (patch)
tree4850ea52e9df531e65cda982ffb562048e518adb /meta-python/recipes-devtools/python/python3-twisted/CVE-2022-24801-4.patch
parentd29ee9b3878cbaee94b4f3b7db64adca38b67a22 (diff)
downloadmeta-openembedded-12d4f40a4a5881d2e26741fbed672fd841f557f5.tar.gz
python3-twisted: patch CVE-2022-24801
Details: https://nvd.nist.gov/vuln/detail/CVE-2022-24801 Pick the commits from the pull request that is referenced by the NVD report. (The full set is consisting of 13 patches, but the ones that only updated news/readme/typo fixes in comments were not backported) Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-twisted/CVE-2022-24801-4.patch')
-rw-r--r--meta-python/recipes-devtools/python/python3-twisted/CVE-2022-24801-4.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-twisted/CVE-2022-24801-4.patch b/meta-python/recipes-devtools/python/python3-twisted/CVE-2022-24801-4.patch
new file mode 100644
index 0000000000..94c4b9c550
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-twisted/CVE-2022-24801-4.patch
@@ -0,0 +1,25 @@
1From c6838374d0e323b78877ae546e1471c400e4652d Mon Sep 17 00:00:00 2001
2From: Tom Most <twm@freecog.net>
3Date: Mon, 7 Mar 2022 00:32:14 -0800
4Subject: [PATCH] Reject non-digit Content-Length
5
6Upstream-Status: Backport [https://github.com/twisted/twisted/commit/8ebfa8f6577431226e109ff98ba48f5152a2c416]
7CVE: CVE-2022-24801
8Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
9---
10 src/twisted/web/http.py | 2 ++
11 1 file changed, 2 insertions(+)
12
13diff --git a/src/twisted/web/http.py b/src/twisted/web/http.py
14index 262da0b..5316d81 100644
15--- a/src/twisted/web/http.py
16+++ b/src/twisted/web/http.py
17@@ -2274,6 +2274,8 @@ class HTTPChannel(basic.LineReceiver, policies.TimeoutMixin):
18
19 # Can this header determine the length?
20 if header == b"content-length":
21+ if not data.isdigit():
22+ return fail()
23 try:
24 length = int(data)
25 except ValueError: