diff options
Diffstat (limited to 'meta-python/recipes-devtools/python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-configobj/CVE-2023-26112.patch | 25 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-configobj_5.0.8.bb | 2 |
2 files changed, 27 insertions, 0 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..f9bdcd31b0 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-configobj/CVE-2023-26112.patch | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | From dd9cf3579d90d1f8c6d06f293cd0958be5ca5518 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: cdcadman <mythirty@gmail.com> | ||
| 3 | Date: Wed, 17 May 2023 03:57:08 -0700 | ||
| 4 | Subject: [PATCH] Address CVE-2023-26112 ReDoS | ||
| 5 | |||
| 6 | CVE: CVE-2023-26112 | ||
| 7 | Upstream-Status: Backport [https://github.com/DiffSK/configobj/commit/a82ea8fb0338f2bd46cf627c4b763094448e6bd7] | ||
| 8 | Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com> | ||
| 9 | --- | ||
| 10 | src/configobj/validate.py | 2 +- | ||
| 11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 12 | |||
| 13 | diff --git a/src/configobj/validate.py b/src/configobj/validate.py | ||
| 14 | index 9267a3f..98d879f 100644 | ||
| 15 | --- a/src/configobj/validate.py | ||
| 16 | +++ b/src/configobj/validate.py | ||
| 17 | @@ -541,7 +541,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.8.bb b/meta-python/recipes-devtools/python/python3-configobj_5.0.8.bb index 8dc706fdfd..2f0d1e7203 100644 --- a/meta-python/recipes-devtools/python/python3-configobj_5.0.8.bb +++ b/meta-python/recipes-devtools/python/python3-configobj_5.0.8.bb | |||
| @@ -6,6 +6,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3d6f99b84d9a94610c62e48fa2e59e72" | |||
| 6 | PYPI_PACKAGE = "configobj" | 6 | PYPI_PACKAGE = "configobj" |
| 7 | SRC_URI[sha256sum] = "6f704434a07dc4f4dc7c9a745172c1cad449feb548febd9f7fe362629c627a97" | 7 | SRC_URI[sha256sum] = "6f704434a07dc4f4dc7c9a745172c1cad449feb548febd9f7fe362629c627a97" |
| 8 | 8 | ||
| 9 | SRC_URI += "file://CVE-2023-26112.patch" | ||
| 10 | |||
| 9 | inherit pypi setuptools3 | 11 | inherit pypi setuptools3 |
| 10 | 12 | ||
| 11 | RDEPENDS:${PN} += " \ | 13 | RDEPENDS:${PN} += " \ |
