summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-pip_22.0.3.bb
diff options
context:
space:
mode:
authorJiaying Song <jiaying.song.cn@windriver.com>2024-11-25 15:46:11 +0800
committerSteve Sakoman <steve@sakoman.com>2024-12-02 06:23:20 -0800
commit53801adf752419eb84504f007af4fdbe0cd43ce1 (patch)
tree11c9f1717a91fef5800d9d6b50a263ebff215ec2 /meta/recipes-devtools/python/python3-pip_22.0.3.bb
parent4ec499266e90c103f8b764c4c998eb0302e11fc1 (diff)
downloadpoky-53801adf752419eb84504f007af4fdbe0cd43ce1.tar.gz
python3-pip: fix CVE-2023-5752
When installing a package from a Mercurial VCS URL (ie "pip install hg+...") with pip prior to v23.3, the specified Mercurial revision could be used to inject arbitrary configuration options to the "hg clone" call (ie "--config"). Controlling the Mercurial configuration can modify how and which repository is installed. This vulnerability does not affect users who aren't installing from Mercurial. References: https://nvd.nist.gov/vuln/detail/CVE-2023-5752 Upstream patches: https://github.com/pypa/pip/pull/12306/commits/389cb799d0da9a840749fcd14878928467ed49b4 (From OE-Core rev: 862c0338fba06077a26c775b49f993eac63762c9) Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-devtools/python/python3-pip_22.0.3.bb')
-rw-r--r--meta/recipes-devtools/python/python3-pip_22.0.3.bb8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/recipes-devtools/python/python3-pip_22.0.3.bb b/meta/recipes-devtools/python/python3-pip_22.0.3.bb
index 6e28b87ba3..28eab9c3de 100644
--- a/meta/recipes-devtools/python/python3-pip_22.0.3.bb
+++ b/meta/recipes-devtools/python/python3-pip_22.0.3.bb
@@ -34,9 +34,11 @@ LIC_FILES_CHKSUM = "\
34 34
35inherit pypi python_setuptools_build_meta 35inherit pypi python_setuptools_build_meta
36 36
37SRC_URI += "file://0001-change-shebang-to-python3.patch" 37SRC_URI += "file://0001-change-shebang-to-python3.patch \
38SRC_URI += "file://no_shebang_mangling.patch" 38 file://no_shebang_mangling.patch \
39SRC_URI += "file://reproducible.patch" 39 file://reproducible.patch \
40 file://CVE-2023-5752.patch \
41 "
40 42
41SRC_URI[sha256sum] = "f29d589df8c8ab99c060e68ad294c4a9ed896624f6368c5349d70aa581b333d0" 43SRC_URI[sha256sum] = "f29d589df8c8ab99c060e68ad294c4a9ed896624f6368c5349d70aa581b333d0"
42 44