summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2026-01-05 09:32:00 +0100
committerGyorgy Sarvari <skandigraun@gmail.com>2026-01-08 22:03:03 +0100
commit2e557033bddcd52d5bee404d3cc9cf692fd94887 (patch)
tree248e32dea12a4280b1da793d846655ed39d20d59 /meta-python
parentcc53827cc3f8df8daf0931edc8be2ac17c678e3e (diff)
downloadmeta-openembedded-2e557033bddcd52d5bee404d3cc9cf692fd94887.tar.gz
python3-configobj: patch CVE-2023-26112
Details: https://nvd.nist.gov/vuln/detail/CVE-2023-26112 Pick the patch that resolves the issue referenced in the NVD report. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/recipes-devtools/python/python3-configobj/CVE-2023-26112.patch25
-rw-r--r--meta-python/recipes-devtools/python/python3-configobj_5.0.6.bb3
2 files changed, 27 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python3-configobj/CVE-2023-26112.patch b/meta-python/recipes-devtools/python/python3-configobj/CVE-2023-26112.patch
new file mode 100644
index 0000000000..35d8ea77cf
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-configobj/CVE-2023-26112.patch
@@ -0,0 +1,25 @@
1From 76dd27ec0dbde6c852f412390ac4e2cfefa8af76 Mon Sep 17 00:00:00 2001
2From: cdcadman <mythirty@gmail.com>
3Date: Wed, 17 May 2023 03:57:08 -0700
4Subject: [PATCH] Address CVE-2023-26112 ReDoS
5
6CVE: CVE-2023-26112
7Upstream-Status: Backport [https://github.com/DiffSK/configobj/commit/7c618b0bbaff6ecaca51a6f05b29795d1377a4a5]
8Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
9---
10 validate.py | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/validate.py b/validate.py
14index b7a964c..af76898 100644
15--- a/validate.py
16+++ b/validate.py
17@@ -542,7 +542,7 @@ class Validator(object):
18 """
19
20 # this regex does the initial parsing of the checks
21- _func_re = re.compile(r'(.+?)\((.*)\)', re.DOTALL)
22+ _func_re = re.compile(r'([^\(\)]+?)\((.*)\)', re.DOTALL)
23
24 # this regex takes apart keyword arguments
25 _key_arg = re.compile(r'^([a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*(.*)$', re.DOTALL)
diff --git a/meta-python/recipes-devtools/python/python3-configobj_5.0.6.bb b/meta-python/recipes-devtools/python/python3-configobj_5.0.6.bb
index 1125a6389d..589ad6f1d9 100644
--- a/meta-python/recipes-devtools/python/python3-configobj_5.0.6.bb
+++ b/meta-python/recipes-devtools/python/python3-configobj_5.0.6.bb
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://configobj.py;md5=a7c3968dd866dfd23e91e125b669ab21"
6PYPI_PACKAGE = "configobj" 6PYPI_PACKAGE = "configobj"
7SRC_URI[sha256sum] = "a2f5650770e1c87fb335af19a9b7eb73fc05ccf22144eb68db7d00cd2bcb0902" 7SRC_URI[sha256sum] = "a2f5650770e1c87fb335af19a9b7eb73fc05ccf22144eb68db7d00cd2bcb0902"
8 8
9SRC_URI += "file://0001-Switch-from-using-distutils-to-setuptools.patch" 9SRC_URI += "file://0001-Switch-from-using-distutils-to-setuptools.patch \
10 file://CVE-2023-26112.patch"
10 11
11inherit pypi setuptools3 12inherit pypi setuptools3