From patchwork Tue Nov 24 05:09:31 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" X-Patchwork-Id: 105305 Received: from aer-iport-1.cisco.com (aer-iport-1.cisco.com [173.38.203.51]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.11751.1795496988092403056 for ; Mon, 23 Nov 2026 21:09:49 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: message contains an insecure body length tag" header.i=@cisco.com header.s=iport01 header.b=fIrZBfbF; spf=pass (domain: cisco.com, ip: 173.38.203.51, mailfrom: hthakar@cisco.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=24569; q=dns/txt; s=iport01; t=1795496989; x=1796706589; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=iEQgeAbs8R65I6ar/XB0YDneOPx7OdpnFUsJ/JvZvkI=; b=fIrZBfbFZWFpvLYddfKXYZjJqBJhzhyoQQkEiqRb8uEZTS6fvPyP/Ajz dpIeg1iu1FZKiDSobBF2Uh0fihsk+UGTBtknkbF5JapE3pSg/0JyHhKFx VPWDpiE40ztLQRB+U8a2UmwJZc+jDN2+mS6WtUIRp2Vjob85GNBu+MoZ+ Mklyt0oQQppUTxo+CBJUxr6F2xgJjbUYO1Sys4bfGWobxpTTv8x3Y/wuK /noFZP6bu4ClAJzKDsGpJWgY8dgb4pj3mM//vak69K9XD/m2BybmQb5Xu 0UvMeIQKhHrTSEUDlzZmrEdP4GyYAseDEjINKKg6N+uAbhAa2bpm+kKFh A==; X-CSE-ConnectionGUID: on0+qQjMTB2xz7AM4Or2Fw== X-CSE-MsgGUID: pJUaKCxKS9uN5bvyP08nuw== X-IPAS-Result: A0AbAABOGgVr/8pK/pBaHAEBAQEBAQcBARIBAQQEAQGBfAcBAQsBglZ1YUJJhFeIG4c4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3jldpXSsE07igiBMDmJsYb/3pn1zycVa9gSpHYSKKM7thdtNsyrpkSQbCEO pZfNmYpNkyaC/FMEg9/5JYWnPuoj3r2aRVTqUmeouw85G27IAlZjuKybIaEKoziqcN9hmSlr 0Ht70fCUww8adaB2ALdonSxmbqa9c/8cMdIfFGizdZtmFCVy2kZBREaWFf+rfSnh0qWX9NEN 1dS/TIjq6U3/kGnQtTxGRqirxa5UgU0UtdKVul/4waXx++MukCSB3MPSXhKb9lOWNIKeAHGH 2Shx7vBbQGDepXPIZ5B3t94dQ+PBBU= IronPort-HdrOrdr: A9a23:jENHxan46vh3rdanaYsL6gEQe/DpDfIO3DAbv31ZSRFFG/Fw8P re+8jztCWE7Ar5N0tPpTntAsS9qDbnhP1ICOoqTNKftXfd2VdARbsKheCJ/9SjIVydygc378 hdmsZFZOEYdWIbse/KpC+lDt0n3N6LtIqshevY0jNRaDsCUdAH0++8YTzranGfg2J9dOMEKK Y= X-Talos-CUID: 9a23:htOfKmOhNNcZme5DXy8/t1ctGOUZWCfN3ij5BhOfEzxHV+jA X-Talos-MUID: 9a23:cxdOegSt8/BHHJeLRXT0pgxrF+x4wJ//FWZQm4sXg5HUMzFvbmI= X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.27,229,1787011200"; d="scan'208";a="62744988" Received: from aer-l-core-01.cisco.com ([144.254.74.202]) by aer-iport-1.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 24 Nov 2026 05:09:44 +0000 Received: from sjc-ads-2020.cisco.com (sjc-ads-2020.cisco.com [171.70.61.208]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ciscoit-managed-infra-smtp-auth.cisco.com", Issuer "Internal Private TLS SubCA" (verified OK)) by aer-l-core-01.cisco.com (Postfix) with ESMTPS id 00B9D343F6 for ; Tue, 24 Nov 2026 05:09:44 +0000 (GMT) Received: by sjc-ads-2020.cisco.com (Postfix, from userid 1887505) id A3A2FCC124C; Mon, 23 Nov 2026 21:09:42 -0800 (PST) From: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" To: openembedded-devel@lists.openembedded.org Subject: [meta-python][scarthgap][PATCH 01/12] python3-virtualenv: fix CVE-2024-53899 Date: Mon, 23 Nov 2026 21:09:31 -0800 Message-Id: <20261124050942.1795310-2-hthakar@cisco.com> X-Mailer: git-send-email 2.35.6 In-Reply-To: <20261124050942.1795310-1-hthakar@cisco.com> References: <20261124050942.1795310-1-hthakar@cisco.com> MIME-Version: 1.0 X-Outbound-Client-TLS: VERIFIED;sjc-ads-2020.cisco.com [171.70.61.208];TLSv1.3;TLS_AES_256_GCM_SHA384;256;ciscoit-managed-infra-smtp-auth.cisco.com X-Outbound-SMTP-Client: 171.70.61.208, sjc-ads-2020.cisco.com X-Outbound-Node: aer-l-core-01.cisco.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 05:09:54 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132913 From: Hetvi Thakar Backport the virtualenv community fix from upstream commit 86dddeda7c991f8529e1995bbff280fb7b761972 to quote activation-template replacement values correctly. Include the activation scripts, interpreter-specific quoting methods and upstream test changes. Omit the changelog and Ruff configuration updates, and refresh the patch context for virtualenv 20.25.3. Carry the PowerShell delimiter correction from upstream 876c5ba473a311c14933eb767cc18f5d4ab3df7c in a separate embedded patch, including its adapted delimiter and activation tests. Signed-off-by: Hetvi Thakar --- .../python3-virtualenv/CVE-2024-53899.patch | 427 ++++++++++++++++++ .../powershell-curly-quotes.patch | 103 +++++ .../python/python3-virtualenv_20.25.3.bb | 5 +- 3 files changed, 534 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-virtualenv/CVE-2024-53899.patch create mode 100644 meta-python/recipes-devtools/python/python3-virtualenv/powershell-curly-quotes.patch diff --git a/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2024-53899.patch b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2024-53899.patch new file mode 100644 index 0000000000..6a43e2dc31 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2024-53899.patch @@ -0,0 +1,427 @@ +From 86dddeda7c991f8529e1995bbff280fb7b761972 Mon Sep 17 00:00:00 2001 +From: Y5 <124019959+y5c4l3@users.noreply.github.com> +Date: Fri, 27 Sep 2024 16:16:08 +0000 +Subject: [PATCH] Fix #2768: Quote template strings in activation scripts + (#2771) + +CVE: CVE-2024-53899 +Upstream-Status: Backport [https://github.com/pypa/virtualenv/commit/86dddeda7c991f8529e1995bbff280fb7b761972] + +Backport Changes: + - Omit docs/changelog/2768.bugfix.rst and pyproject.toml, which only update + release notes and lint metadata. + +Signed-off-by: Hetvi Thakar +--- + src/virtualenv/activation/bash/activate.sh | 8 ++++---- + src/virtualenv/activation/batch/__init__.py | 4 ++++ + src/virtualenv/activation/cshell/activate.csh | 8 ++++---- + src/virtualenv/activation/fish/activate.fish | 8 ++++---- + src/virtualenv/activation/nushell/__init__.py | 19 +++++++++++++++++++ + src/virtualenv/activation/nushell/activate.nu | 8 ++++---- + src/virtualenv/activation/powershell/__init__.py | 12 ++++++++++++ + src/virtualenv/activation/powershell/activate.ps1 | 6 +++--- + src/virtualenv/activation/python/__init__.py | 6 +++++- + src/virtualenv/activation/python/activate_this.py | 8 ++++---- + src/virtualenv/activation/via_template.py | 13 ++++++++++++- + tests/conftest.py | 6 +++++- + tests/unit/activation/conftest.py | 3 +-- + tests/unit/activation/test_batch.py | 10 +++++----- + tests/unit/activation/test_powershell.py | 21 +++++++++++++++------ + 15 files changed, 101 insertions(+), 39 deletions(-) + +diff --git a/src/virtualenv/activation/bash/activate.sh b/src/virtualenv/activation/bash/activate.sh +index b06e3fd33ac58101c2bfdbf47773d10ad3888a55..e412509b800a932ef3f0ea6f236ab078e13d2b55 100644 +--- a/src/virtualenv/activation/bash/activate.sh ++++ b/src/virtualenv/activation/bash/activate.sh +@@ -45,18 +45,18 @@ deactivate () { + # unset irrelevant variables + deactivate nondestructive + +-VIRTUAL_ENV='__VIRTUAL_ENV__' ++VIRTUAL_ENV=__VIRTUAL_ENV__ + if ([ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "msys" ]) && $(command -v cygpath &> /dev/null) ; then + VIRTUAL_ENV=$(cygpath -u "$VIRTUAL_ENV") + fi + export VIRTUAL_ENV + + _OLD_VIRTUAL_PATH="$PATH" +-PATH="$VIRTUAL_ENV/__BIN_NAME__:$PATH" ++PATH="$VIRTUAL_ENV/"__BIN_NAME__":$PATH" + export PATH + +-if [ "x__VIRTUAL_PROMPT__" != x ] ; then +- VIRTUAL_ENV_PROMPT="__VIRTUAL_PROMPT__" ++if [ "x"__VIRTUAL_PROMPT__ != x ] ; then ++ VIRTUAL_ENV_PROMPT=__VIRTUAL_PROMPT__ + else + VIRTUAL_ENV_PROMPT=$(basename "$VIRTUAL_ENV") + fi +diff --git a/src/virtualenv/activation/batch/__init__.py b/src/virtualenv/activation/batch/__init__.py +index a6d58ebb4f7122f3ad51215abc9fc0938f468111..3d74ba8350571c28aba60a6e1acea1ee661e6dcd 100644 +--- a/src/virtualenv/activation/batch/__init__.py ++++ b/src/virtualenv/activation/batch/__init__.py +@@ -15,6 +15,10 @@ class BatchActivator(ViaTemplateActivator): + yield "deactivate.bat" + yield "pydoc.bat" + ++ @staticmethod ++ def quote(string): ++ return string ++ + def instantiate_template(self, replacements, template, creator): + # ensure the text has all newlines as \r\n - required by batch + base = super().instantiate_template(replacements, template, creator) +diff --git a/src/virtualenv/activation/cshell/activate.csh b/src/virtualenv/activation/cshell/activate.csh +index f0c9cca96a10d2ae6e96f53709395bda1410f7f4..24de5508b9771284693dc5141909435f9b97304e 100644 +--- a/src/virtualenv/activation/cshell/activate.csh ++++ b/src/virtualenv/activation/cshell/activate.csh +@@ -10,15 +10,15 @@ alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PA + # Unset irrelevant variables. + deactivate nondestructive + +-setenv VIRTUAL_ENV '__VIRTUAL_ENV__' ++setenv VIRTUAL_ENV __VIRTUAL_ENV__ + + set _OLD_VIRTUAL_PATH="$PATH:q" +-setenv PATH "$VIRTUAL_ENV:q/__BIN_NAME__:$PATH:q" ++setenv PATH "$VIRTUAL_ENV:q/"__BIN_NAME__":$PATH:q" + + + +-if ('__VIRTUAL_PROMPT__' != "") then +- setenv VIRTUAL_ENV_PROMPT '__VIRTUAL_PROMPT__' ++if (__VIRTUAL_PROMPT__ != "") then ++ setenv VIRTUAL_ENV_PROMPT __VIRTUAL_PROMPT__ + else + setenv VIRTUAL_ENV_PROMPT "$VIRTUAL_ENV:t:q" + endif +diff --git a/src/virtualenv/activation/fish/activate.fish b/src/virtualenv/activation/fish/activate.fish +index c453caf9edae1bac76e5f8a0c37200b9eef27f48..f3cd1f2ab1451087e2a0f4f26cd46be52136548f 100644 +--- a/src/virtualenv/activation/fish/activate.fish ++++ b/src/virtualenv/activation/fish/activate.fish +@@ -58,7 +58,7 @@ end + # Unset irrelevant variables. + deactivate nondestructive + +-set -gx VIRTUAL_ENV '__VIRTUAL_ENV__' ++set -gx VIRTUAL_ENV __VIRTUAL_ENV__ + + # https://github.com/fish-shell/fish-shell/issues/436 altered PATH handling + if test (echo $FISH_VERSION | head -c 1) -lt 3 +@@ -66,12 +66,12 @@ if test (echo $FISH_VERSION | head -c 1) -lt 3 + else + set -gx _OLD_VIRTUAL_PATH $PATH + end +-set -gx PATH "$VIRTUAL_ENV"'/__BIN_NAME__' $PATH ++set -gx PATH "$VIRTUAL_ENV"'/'__BIN_NAME__ $PATH + + # Prompt override provided? + # If not, just use the environment name. +-if test -n '__VIRTUAL_PROMPT__' +- set -gx VIRTUAL_ENV_PROMPT '__VIRTUAL_PROMPT__' ++if test -n __VIRTUAL_PROMPT__ ++ set -gx VIRTUAL_ENV_PROMPT __VIRTUAL_PROMPT__ + else + set -gx VIRTUAL_ENV_PROMPT (basename "$VIRTUAL_ENV") + end +diff --git a/src/virtualenv/activation/nushell/__init__.py b/src/virtualenv/activation/nushell/__init__.py +index 68cd4a3b4aca0751139ae14e8709c7e8b1a00ef0..ef7a79a9c4237f07d754d3476707ffce1ff28df4 100644 +--- a/src/virtualenv/activation/nushell/__init__.py ++++ b/src/virtualenv/activation/nushell/__init__.py +@@ -7,6 +7,25 @@ class NushellActivator(ViaTemplateActivator): + def templates(self): + yield "activate.nu" + ++ @staticmethod ++ def quote(string): ++ """ ++ Nushell supports raw strings like: r###'this is a string'###. ++ ++ This method finds the maximum continuous sharps in the string and then ++ quote it with an extra sharp. ++ """ ++ max_sharps = 0 ++ current_sharps = 0 ++ for char in string: ++ if char == "#": ++ current_sharps += 1 ++ max_sharps = max(current_sharps, max_sharps) ++ else: ++ current_sharps = 0 ++ wrapping = "#" * (max_sharps + 1) ++ return f"r{wrapping}'{string}'{wrapping}" ++ + def replacements(self, creator, dest_folder): # noqa: ARG002 + return { + "__VIRTUAL_PROMPT__": "" if self.flag_prompt is None else self.flag_prompt, +diff --git a/src/virtualenv/activation/nushell/activate.nu b/src/virtualenv/activation/nushell/activate.nu +index 19d4fa1d776c2441ad8aebe003a5adb354cf1e98..00a41e0e81333885f688925e5c403f336b2dc2fc 100644 +--- a/src/virtualenv/activation/nushell/activate.nu ++++ b/src/virtualenv/activation/nushell/activate.nu +@@ -32,8 +32,8 @@ export-env { + } + } + +- let virtual_env = '__VIRTUAL_ENV__' +- let bin = '__BIN_NAME__' ++ let virtual_env = __VIRTUAL_ENV__ ++ let bin = __BIN_NAME__ + + let is_windows = ($nu.os-info.family) == 'windows' + let path_name = (if (has-env 'Path') { +@@ -47,10 +47,10 @@ export-env { + let new_path = ($env | get $path_name | prepend $venv_path) + + # If there is no default prompt, then use the env name instead +- let virtual_env_prompt = (if ('__VIRTUAL_PROMPT__' | is-empty) { ++ let virtual_env_prompt = (if (__VIRTUAL_PROMPT__ | is-empty) { + ($virtual_env | path basename) + } else { +- '__VIRTUAL_PROMPT__' ++ __VIRTUAL_PROMPT__ + }) + + let new_env = { +diff --git a/src/virtualenv/activation/powershell/__init__.py b/src/virtualenv/activation/powershell/__init__.py +index 1f6d0f4e4efcbb6f3b29dab93168d9dd43e21a7d..8489656cc7e9ffa6a6a03fa2694052a0f94aa76f 100644 +--- a/src/virtualenv/activation/powershell/__init__.py ++++ b/src/virtualenv/activation/powershell/__init__.py +@@ -7,6 +7,18 @@ class PowerShellActivator(ViaTemplateActivator): + def templates(self): + yield "activate.ps1" + ++ @staticmethod ++ def quote(string): ++ """ ++ This should satisfy PowerShell quoting rules [1], unless the quoted ++ string is passed directly to Windows native commands [2]. ++ ++ [1]: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_quoting_rules ++ [2]: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_parsing#passing-arguments-that-contain-quote-characters ++ """ # noqa: D205 ++ string = string.replace("'", "''") ++ return f"'{string}'" ++ + + __all__ = [ + "PowerShellActivator", +diff --git a/src/virtualenv/activation/powershell/activate.ps1 b/src/virtualenv/activation/powershell/activate.ps1 +index 5ccfe120c69ce03f0527afc1e011190fd4f1cdab..bd30e2eed53cb4167a62ea7769be6a4b7a3f63a8 100644 +--- a/src/virtualenv/activation/powershell/activate.ps1 ++++ b/src/virtualenv/activation/powershell/activate.ps1 +@@ -37,8 +37,8 @@ deactivate -nondestructive + $VIRTUAL_ENV = $BASE_DIR + $env:VIRTUAL_ENV = $VIRTUAL_ENV + +-if ("__VIRTUAL_PROMPT__" -ne "") { +- $env:VIRTUAL_ENV_PROMPT = "__VIRTUAL_PROMPT__" ++if (__VIRTUAL_PROMPT__ -ne "") { ++ $env:VIRTUAL_ENV_PROMPT = __VIRTUAL_PROMPT__ + } + else { + $env:VIRTUAL_ENV_PROMPT = $( Split-Path $env:VIRTUAL_ENV -Leaf ) +@@ -46,7 +46,7 @@ else { + + New-Variable -Scope global -Name _OLD_VIRTUAL_PATH -Value $env:PATH + +-$env:PATH = "$env:VIRTUAL_ENV/__BIN_NAME____PATH_SEP__" + $env:PATH ++$env:PATH = "$env:VIRTUAL_ENV/" + __BIN_NAME__ + __PATH_SEP__ + $env:PATH + if (!$env:VIRTUAL_ENV_DISABLE_PROMPT) { + function global:_old_virtual_prompt { + "" +diff --git a/src/virtualenv/activation/python/__init__.py b/src/virtualenv/activation/python/__init__.py +index 3126a39f2d476740fa894252d479c426d1e60bb9..e900f7ec9a871d79c5ba896d864bc457d10904fa 100644 +--- a/src/virtualenv/activation/python/__init__.py ++++ b/src/virtualenv/activation/python/__init__.py +@@ -10,10 +10,14 @@ class PythonActivator(ViaTemplateActivator): + def templates(self): + yield "activate_this.py" + ++ @staticmethod ++ def quote(string): ++ return repr(string) ++ + def replacements(self, creator, dest_folder): + replacements = super().replacements(creator, dest_folder) + lib_folders = OrderedDict((os.path.relpath(str(i), str(dest_folder)), None) for i in creator.libs) +- lib_folders = os.pathsep.join(lib_folders.keys()).replace("\\", "\\\\") # escape Windows path characters ++ lib_folders = os.pathsep.join(lib_folders.keys()) + replacements.update( + { + "__LIB_FOLDERS__": lib_folders, +diff --git a/src/virtualenv/activation/python/activate_this.py b/src/virtualenv/activation/python/activate_this.py +index befe8f405cb795b122fadacd417f4a27d55424a9..f297cae35849fe3f31fbc88e105f871a661ded67 100644 +--- a/src/virtualenv/activation/python/activate_this.py ++++ b/src/virtualenv/activation/python/activate_this.py +@@ -19,18 +19,18 @@ except NameError as exc: + raise AssertionError(msg) from exc + + bin_dir = os.path.dirname(abs_file) +-base = bin_dir[: -len("__BIN_NAME__") - 1] # strip away the bin part from the __file__, plus the path separator ++base = bin_dir[: -len(__BIN_NAME__) - 1] # strip away the bin part from the __file__, plus the path separator + + # prepend bin to PATH (this file is inside the bin directory) + os.environ["PATH"] = os.pathsep.join([bin_dir, *os.environ.get("PATH", "").split(os.pathsep)]) + os.environ["VIRTUAL_ENV"] = base # virtual env is right above bin directory +-os.environ["VIRTUAL_ENV_PROMPT"] = "__VIRTUAL_PROMPT__" or os.path.basename(base) # noqa: SIM222 ++os.environ["VIRTUAL_ENV_PROMPT"] = __VIRTUAL_PROMPT__ or os.path.basename(base) + + # add the virtual environments libraries to the host python import mechanism + prev_length = len(sys.path) +-for lib in "__LIB_FOLDERS__".split(os.pathsep): ++for lib in __LIB_FOLDERS__.split(os.pathsep): + path = os.path.realpath(os.path.join(bin_dir, lib)) +- site.addsitedir(path.decode("utf-8") if "__DECODE_PATH__" else path) ++ site.addsitedir(path.decode("utf-8") if __DECODE_PATH__ else path) + sys.path[:] = sys.path[prev_length:] + sys.path[0:prev_length] + + sys.real_prefix = sys.prefix +diff --git a/src/virtualenv/activation/via_template.py b/src/virtualenv/activation/via_template.py +index 373316cf586d5703b838990447f6a7270b5a1f57..1f532213c3a915a113b780cc0ee1a0cdb0f841a2 100644 +--- a/src/virtualenv/activation/via_template.py ++++ b/src/virtualenv/activation/via_template.py +@@ -1,6 +1,7 @@ + from __future__ import annotations + + import os ++import shlex + import sys + from abc import ABC, abstractmethod + +@@ -21,6 +22,16 @@ class ViaTemplateActivator(Activator, ABC): + def templates(self): + raise NotImplementedError + ++ @staticmethod ++ def quote(string): ++ """ ++ Quote strings in the activation script. ++ ++ :param string: the string to quote ++ :return: quoted string that works in the activation script ++ """ ++ return shlex.quote(string) ++ + def generate(self, creator): + dest_folder = creator.bin_dir + replacements = self.replacements(creator, dest_folder) +@@ -63,7 +74,7 @@ class ViaTemplateActivator(Activator, ABC): + text = binary.decode("utf-8", errors="strict") + for key, value in replacements.items(): + value_uni = self._repr_unicode(creator, value) +- text = text.replace(key, value_uni) ++ text = text.replace(key, self.quote(value_uni)) + return text + + @staticmethod +diff --git a/tests/conftest.py b/tests/conftest.py +index 03f808faee8a5507c6346025e4fa47be7803e71c..b67c295688a9c000f2e817d93486bdfb5ee302e2 100644 +--- a/tests/conftest.py ++++ b/tests/conftest.py +@@ -275,7 +275,11 @@ def is_inside_ci(): + + @pytest.fixture(scope="session") + def special_char_name(): +- base = "e-$ èрт From patchwork Tue Nov 24 05:09:32 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" X-Patchwork-Id: 105299 Received: from aer-iport-1.cisco.com (aer-iport-1.cisco.com [173.38.203.51]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.11751.1795496988092403056 for ; Mon, 23 Nov 2026 21:09:48 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: message contains an insecure body length tag" header.i=@cisco.com header.s=iport01 header.b=JSjqLnPi; spf=pass (domain: cisco.com, ip: 173.38.203.51, mailfrom: hthakar@cisco.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=8336; q=dns/txt; s=iport01; t=1795496988; x=1796706588; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=/15FUcI2x2paAYbuKnfI1SEY1fc4hQtDA/m4m0JsX0g=; b=JSjqLnPiimOsxfz7ogweZ5Usi/8MibG11PAxY0D0Fl/kyx5PrLwJoEUt +OPSX/aoa4hJNXE/IdN1A70AQT2hGLzdLHOGK+sUXs8psK4oTHpeopLZR M+J7NIVCn7Js7rJn6QRmDv4F+BdyrKB2FDtn5WvdmFDYt7m8Ce+5a4bdO UHKV/WiiEWFakMGSI1F9ZjyCI7SxiI89b9sJMu/E/7YuEcm1jAqFNiD3K +wjtHMTHCpZ4Lh5Kp4BV8gJxXJUyBmrf1jsyzhLtESFRAkm3w12snbc7E Cq8dlOXd21mnigXy0eyd9YL/LBqG3Gn4x6Gzz8Bchgky+PQkoh0Az9rhm Q==; X-CSE-ConnectionGUID: wC1xHJ74RlKm2UCVMxiNGQ== X-CSE-M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Uy NcmDSAMSD+60rfeLLKTEoGAh+wqIdOuOMYUvWttiGmES/0nWpvEBa7N4Le03h9p2pwIR6uCI ZVFL2A3MnwsYDUXUrsTIJIinO6rj2PXeDxDo1XTrq0yi4TW5FIrj+SxYYqKEjCMbYYP3Ryhv WnHxlXwACsAb5+vliCDrW3504cjmgu+Aur+DoaQ8eZnhlCWzGEfBBAaEFe2v/S9okq/QM5Eb UsM9ywjqKI/+ECmQp/6RRLQnZKflhcRQZ9UVuY98gzIkveS6AeCDW9CRTlEADA7iPILqfUR/ gfht7vU6fZH6dV5lVr1Gm+okA6P IronPort-HdrOrdr: A9a23:gYMATqkuOOuDg8RHIruav/YMSmHpDfIO3DAbv31ZSRFFG/Fw8P re+8jztCWE7Ar5N0tPpTntAsS9qDbnhP1ICOoqTNKftXfd2VdARbsKheCJ/9SjIVydygc378 hdmsZFZOEYdWIbse/KpC+lDt0n3N6LtIqshevY0jNRaDsCUdAH0++8YTzranGfg2J9dOMEKK Y= X-Talos-CUID: 9a23:H0k3CGtKEEFD7Ga3n0I6sRo26Is6WSTN7FWPf3W8KmMzdZarbE+R3oxdxp8= X-Talos-MUID: 9a23:kYZHtw4vC36E3EA5+wlDoJiNxowruef0MVsGkKw3ssu+L3czC2iHimuoF9o= X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.27,229,1787011200"; d="scan'208";a="62744987" Received: from aer-l-core-05.cisco.com ([144.254.74.206]) by aer-iport-1.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 24 Nov 2026 05:09:44 +0000 Received: from sjc-ads-2020.cisco.com (sjc-ads-2020.cisco.com [171.70.61.208]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ciscoit-managed-infra-smtp-auth.cisco.com", Issuer "Internal Private TLS SubCA" (verified OK)) by aer-l-core-05.cisco.com (Postfix) with ESMTPS id 0388118000231 for ; Tue, 24 Nov 2026 05:09:44 +0000 (GMT) Received: by sjc-ads-2020.cisco.com (Postfix, from userid 1887505) id A6852CC124D; Mon, 23 Nov 2026 21:09:42 -0800 (PST) From: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" To: openembedded-devel@lists.openembedded.org Subject: [meta-python][scarthgap][PATCH 02/12] python3-virtualenv: fix CVE-2026-113776 Date: Mon, 23 Nov 2026 21:09:32 -0800 Message-Id: <20261124050942.1795310-3-hthakar@cisco.com> X-Mailer: git-send-email 2.35.6 In-Reply-To: <20261124050942.1795310-1-hthakar@cisco.com> References: <20261124050942.1795310-1-hthakar@cisco.com> MIME-Version: 1.0 X-Outbound-Client-TLS: VERIFIED;sjc-ads-2020.cisco.com [171.70.61.208];TLSv1.3;TLS_AES_256_GCM_SHA384;256;ciscoit-managed-infra-smtp-auth.cisco.com X-Outbound-SMTP-Client: 171.70.61.208, sjc-ads-2020.cisco.com X-Outbound-Node: aer-l-core-05.cisco.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 05:09:52 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132909 From: Hetvi Thakar Backport upstream commit 602b26623a724827ff171bf11fef4ad186d01f74 to substitute activation-template placeholders in one pass. This keeps placeholder names inside already quoted values unchanged. Retain renderer checks and Bash/Python activation coverage for literal placeholder names, adapted to virtualenv 20.25.3. Signed-off-by: Hetvi Thakar --- .../python3-virtualenv/CVE-2026-113776.patch | 148 ++++++++++++++++++ .../python/python3-virtualenv_20.25.3.bb | 1 + 2 files changed, 149 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113776.patch diff --git a/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113776.patch b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113776.patch new file mode 100644 index 0000000000..c956aaa0f8 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113776.patch @@ -0,0 +1,148 @@ +From 602b26623a724827ff171bf11fef4ad186d01f74 Mon Sep 17 00:00:00 2001 +From: Bernát Gábor +Date: Wed, 30 Sep 2026 23:01:05 -0700 +Subject: [PATCH] Merge commit from fork + +instantiate_template replaced one placeholder at a time across the whole +template, so a placeholder name inside an already quoted value, such as a +parent directory named __VIRTUAL_NAME__, was rewritten from inside the +finished literal. The second value's quotes closed the first, and the rest +of the path ran as code in bash, fish, xonsh and activate_this.py; in csh +the prompt display tokens broke activate.csh the same way. + +Build every token's final text first and substitute them in one regex pass, +with the csh display tokens joining that pass through substitutions(). + +CVE: CVE-2026-113776 +Upstream-Status: Backport [https://github.com/pypa/virtualenv/commit/602b26623a724827ff171bf11fef4ad186d01f74] + +Backport Changes: + - Retain the untyped 20.25.3 method signatures. Omit the newer C shell + display-token override, whose tokens and helpers are absent here. + - Exercise literal placeholder names through unittest renderer and actual + Bash/Python activation checks for the older test layout. + +Signed-off-by: Hetvi Thakar +--- + src/virtualenv/activation/via_template.py | 21 ++++++-- + tests/unit/activation/test_cve_2026_113776.py | 73 +++++++++++++++++++++++++++ + 2 files changed, 90 insertions(+), 4 deletions(-) + +diff --git a/src/virtualenv/activation/via_template.py b/src/virtualenv/activation/via_template.py +index 1f532213c3a915a113b780cc0ee1a0cdb0f841a2..a1c7b5b62a0062a1ffc8591bf05ba2254dcccc7e 100644 +--- a/src/virtualenv/activation/via_template.py ++++ b/src/virtualenv/activation/via_template.py +@@ -1,6 +1,7 @@ + from __future__ import annotations + + import os ++import re + import shlex + import sys + from abc import ABC, abstractmethod +@@ -72,10 +73,22 @@ class ViaTemplateActivator(Activator, ABC): + # read content as binary to avoid platform specific line normalization (\n -> \r\n) + binary = read_binary(self.__module__, template) + text = binary.decode("utf-8", errors="strict") +- for key, value in replacements.items(): +- value_uni = self._repr_unicode(creator, value) +- text = text.replace(key, self.quote(value_uni)) +- return text ++ substitutions = self.substitutions(replacements, creator) ++ # one pass over the template, so a placeholder name inside an already quoted value (a path component named ++ # __VIRTUAL_NAME__) stays data instead of being rewritten by a later key from inside the finished literal ++ pattern = re.compile("|".join(re.escape(key) for key in sorted(substitutions, key=len, reverse=True))) ++ return pattern.sub(lambda match: substitutions[match.group()], text) ++ ++ def substitutions(self, replacements, creator): ++ """Map each placeholder to the final text that replaces it in the template. ++ ++ :param replacements: the raw placeholder values ++ :param creator: the creator of the environment ++ ++ :returns: the placeholder to substituted text mapping ++ ++ """ ++ return {key: self.quote(self._repr_unicode(creator, value)) for key, value in replacements.items()} + + @staticmethod + def _repr_unicode(creator, value): # noqa: ARG004 +diff --git a/tests/unit/activation/test_cve_2026_113776.py b/tests/unit/activation/test_cve_2026_113776.py +new file mode 100644 +index 0000000000000000000000000000000000000000..3a767dd44a92882b9705d7ff847928dc1e7a2b78 +--- /dev/null ++++ b/tests/unit/activation/test_cve_2026_113776.py +@@ -0,0 +1,73 @@ ++"""Keep placeholder names in activation values as literal data.""" ++from __future__ import annotations ++ ++import json ++import os ++from pathlib import Path ++import shutil ++import subprocess ++import sys ++import tempfile ++from types import SimpleNamespace ++import unittest ++from unittest.mock import patch ++ ++from virtualenv.activation import BashActivator, PythonActivator ++from virtualenv.run import cli_run ++ ++ ++class TemplateSubstitutionTests(unittest.TestCase): ++ def test_replacement_values_are_not_rescanned(self): ++ values = { ++ "__VIRTUAL_ENV__": "/parent__VIRTUAL_NAME__/owner's env", ++ "__VIRTUAL_NAME__": "plain", ++ "__VIRTUAL_PROMPT__": "show __VIRTUAL_ENV__ literally", ++ } ++ template = "\n".join(values).encode() ++ for activator_type in (BashActivator, PythonActivator): ++ activator = activator_type(SimpleNamespace(prompt=None)) ++ expected = "\n".join(activator.quote(value) for value in values.values()) ++ for order in (list(values), list(reversed(values))): ++ with self.subTest(activator=activator_type.__name__, order=order), patch( ++ "virtualenv.activation.via_template.read_binary", return_value=template ++ ): ++ result = activator.instantiate_template({key: values[key] for key in order}, "template", None) ++ self.assertEqual(result, expected) ++ ++ def test_longest_token_is_matched_first(self): ++ activator = BashActivator(SimpleNamespace(prompt=None)) ++ with patch("virtualenv.activation.via_template.read_binary", return_value=b"__TOKEN__LONG __UNKNOWN__"): ++ result = activator.instantiate_template({"__TOKEN__": "short", "__TOKEN__LONG": "long"}, "template", None) ++ self.assertEqual(result, "long __UNKNOWN__") ++ ++ def test_activation_preserves_placeholder_names_in_path_and_prompt(self): ++ bash = shutil.which("bash") ++ if bash is None: ++ self.skipTest("bash is not installed") ++ with tempfile.TemporaryDirectory() as directory: ++ dest = Path(directory) / "parent__VIRTUAL_NAME__" / "owner's env" ++ prompt = "plain __VIRTUAL_ENV__ and __VIRTUAL_NAME__" ++ cli_run([ ++ "--without-pip", "--no-periodic-update", "--activators", "bash,python", ++ "--prompt", prompt, str(dest), ++ ]) ++ result = subprocess.run( ++ [bash, "--noprofile", "--norc", "-c", ++ '. "$1"; printf "%s\\n%s\\n" "$VIRTUAL_ENV" "$VIRTUAL_ENV_PROMPT"', ++ "activation-check", str(dest / "bin/activate")], ++ check=True, capture_output=True, text=True, ++ ) ++ self.assertEqual(result.stdout.splitlines(), [str(dest), prompt]) ++ code = ( ++ "import json, os, runpy, sys; runpy.run_path(sys.argv[1]); " ++ "print(json.dumps([os.environ['VIRTUAL_ENV'], os.environ['VIRTUAL_ENV_PROMPT']]))" ++ ) ++ result = subprocess.run( ++ [sys.executable, "-c", code, str(dest / "bin/activate_this.py")], ++ check=True, capture_output=True, text=True, env=os.environ.copy(), ++ ) ++ self.assertEqual(json.loads(result.stdout), [str(dest), prompt]) ++ ++ ++if __name__ == "__main__": ++ unittest.main() diff --git a/meta-python/recipes-devtools/python/python3-virtualenv_20.25.3.bb b/meta-python/recipes-devtools/python/python3-virtualenv_20.25.3.bb index c9aad9fc3c..c13c1b96ba 100644 --- a/meta-python/recipes-devtools/python/python3-virtualenv_20.25.3.bb +++ b/meta-python/recipes-devtools/python/python3-virtualenv_20.25.3.bb @@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=0ce089158cf60a8ab6abb452b6405538" SRC_URI += "file://CVE-2026-22702.patch \ file://CVE-2024-53899.patch \ + file://CVE-2026-113776.patch \ file://powershell-curly-quotes.patch \ " SRC_URI[sha256sum] = "7bb554bbdfeaacc3349fa614ea5bff6ac300fc7c335e9facf3a3bcfc703f45be" From patchwork Tue Nov 24 05:09:33 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" X-Patchwork-Id: 105304 Received: from aer-iport-6.cisco.com (aer-iport-6.cisco.com [173.38.203.68]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.11752.1795496988276601818 for ; Mon, 23 Nov 2026 21:09:48 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: message contains an insecure body length tag" header.i=@cisco.com header.s=iport01 header.b=eNS9h2Ft; spf=pass (domain: cisco.com, ip: 173.38.203.68, mailfrom: hthakar@cisco.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=11907; q=dns/txt; s=iport01; t=1795496988; x=1796706588; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=RV6LiT1s6kuCt3DNjy5n2p4GaPIrvlzAyO2XdhVyOHI=; b=eNS9h2FtaASJYD5Us8eTkuGH4QZspO6hW/XWFFSgAebuHznlKnkzXGb2 EnF0G/piYATxqcnjWHql8gvAOEfBMa6MrdKbIA5t/HU8B2G1WzYza3hhy crFyVcYAv+OsWyNzPe2QwE0WYdD0+ojyr7WLQT8lgimyZXF386NfWNcJk xkYX3RNAVUZGw6SvXPLqTu32w0020hgendbtycmGc/wNQZrNu5GD6A09e 2Qgn7+Y+iIXd11BApQmn7spnKjkiWmUl0Ik6qxFP5JK3j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T1LPuvyF9JI4SI6i3M0z5TuF8dsamR /zOxa2O5WjQ+REgELuNyt4XpWVTH9Y+lSDX4pZnc/DKbipq/0Te4Y5nXBYoUnq7vh3S9zxHJ HqhgrTrIeshFvWkdO3wyHC0GQkmVUFN0OevzXRSLaV/wmWeG0YAzcmCA2ltY6dF+/5FL11y+ Kw4NhYJXwyCjsiPlefTpulE3qzPLeHiMZlavjRryivUSK9+B5vCWK7No9Rf2V/chOgXQaqYP ZdFL2UzKk6ZOnWjOX9PYH46tOe0hnD8eidwo1OOrq1x6G/WpOB0+OW8YYeIJ4LSLSlTtnuZi lP3uHr7OFZANs6b8Tee32/9nvCayEsXX6pXTtVU7MVCh0WewGEWAhAaWVa35PW0lEO6c9ZeM FAPvC02oK4/8UamQtXwU1u/unHsg/IHc9NdCag+rQqK0KeRul7fDWkfRTkHY9sj3CMreQEXO payt4uBLVRSXHe9EBpxKp/8QeuOBBUo IronPort-HdrOrdr: A9a23:qFaAHKwzUZqXLOojFCWpKrPwDr1zdoMgy1knxilNoHtuA6ulfq GV7ZAmPHDP5gr5NEtMpTnEAtjifZq+z+8R3WBuB9aftWDd0QPCRr2Kr7GSoQEIcBeQygcy78 tdmtBFaOHYPBxdkdvw5hW+HpILxdmK973tuMLlpk0dKz2Dr8pbnn9E4sHxKDwOeDV7 X-Talos-CUID: 9a23:dwomT2kBI2c+x06acfPHY5w5yqzXOSaD5irRO32WNVpkGJ2Lb1uh5KJtufM7zg== X-Talos-MUID: 9a23:5h8RlQUH8XvlENbq/ALtqABTc9lq2eP0ClIJqZgdltTVLTMlbg== X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.27,229,1787011200"; d="scan'208";a="59955560" Received: from aer-l-core-10.cisco.com ([144.254.74.211]) by aer-iport-6.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 24 Nov 2026 05:09:44 +0000 Received: from sjc-ads-2020.cisco.com (sjc-ads-2020.cisco.com [171.70.61.208]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ciscoit-managed-infra-smtp-auth.cisco.com", Issuer "Internal Private TLS SubCA" (verified OK)) by aer-l-core-10.cisco.com (Postfix) with ESMTPS id 0921B180001D1 for ; Tue, 24 Nov 2026 05:09:44 +0000 (GMT) Received: by sjc-ads-2020.cisco.com (Postfix, from userid 1887505) id AC019CC124E; Mon, 23 Nov 2026 21:09:42 -0800 (PST) From: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" To: openembedded-devel@lists.openembedded.org Subject: [meta-python][scarthgap][PATCH 03/12] python3-virtualenv: fix CVE-2026-113732 Date: Mon, 23 Nov 2026 21:09:33 -0800 Message-Id: <20261124050942.1795310-4-hthakar@cisco.com> X-Mailer: git-send-email 2.35.6 In-Reply-To: <20261124050942.1795310-1-hthakar@cisco.com> References: <20261124050942.1795310-1-hthakar@cisco.com> MIME-Version: 1.0 X-Outbound-Client-TLS: VERIFIED;sjc-ads-2020.cisco.com [171.70.61.208];TLSv1.3;TLS_AES_256_GCM_SHA384;256;ciscoit-managed-infra-smtp-auth.cisco.com X-Outbound-SMTP-Client: 171.70.61.208, sjc-ads-2020.cisco.com X-Outbound-Node: aer-l-core-10.cisco.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 05:09:54 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132912 From: Hetvi Thakar This patch backports the upstream fix in [1], identified by the upstream security advisory in [2], to virtualenv 20.25.3. [1] https://github.com/pypa/virtualenv/commit/3bddeaf8d02c3ee7f576503efb082f8f494cfcab [2] https://github.com/pypa/virtualenv/security/advisories/GHSA-c947-3pg5-gm8q Include the corrected Fish 3 multibyte and legacy-locale quoting from upstream 685435d7fb53da12da99e195ee2753f5ca083249, with activation-level path and prompt coverage. Package each additional upstream prerequisite or correction in its own embedded patch with its own upstream metadata. Signed-off-by: Hetvi Thakar --- .../python3-virtualenv/CVE-2026-113732.patch | 66 +++++++ .../fish3-multibyte-quoting.patch | 165 ++++++++++++++++++ .../python/python3-virtualenv_20.25.3.bb | 2 + 3 files changed, 233 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113732.patch create mode 100644 meta-python/recipes-devtools/python/python3-virtualenv/fish3-multibyte-quoting.patch diff --git a/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113732.patch b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113732.patch new file mode 100644 index 0000000000..452c69432a --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113732.patch @@ -0,0 +1,66 @@ +From 3bddeaf8d02c3ee7f576503efb082f8f494cfcab Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= +Date: Wed, 30 Sep 2026 22:59:45 -0700 +Subject: [PATCH] Merge commit from fork + +FishActivator inherited shlex.quote, whose POSIX rules leave a backslash +literal inside single quotes. fish reads \' there as an escaped quote, so a +path or --prompt with a backslash before a quote ended the literal early and +ran the rest as commands, without any error from fish. + +Give FishActivator its own quote() that escapes backslashes and quotes. + +CVE: CVE-2026-113732 +Upstream-Status: Backport [https://github.com/pypa/virtualenv/commit/3bddeaf8d02c3ee7f576503efb082f8f494cfcab] + +Backport Changes: + - Adapt the quoting method to the older untyped FishActivator interface. + - Replace the newer upstream fixtures with quote-value checks for this + test layout; the older source has no Tcl/Tk activation paths. + +Signed-off-by: Hetvi Thakar +--- + src/virtualenv/activation/fish/__init__.py | 6 ++++++ + tests/unit/activation/test_fish.py | 12 ++++++++++++ + 2 files changed, 18 insertions(+) + +diff --git a/src/virtualenv/activation/fish/__init__.py b/src/virtualenv/activation/fish/__init__.py +index 57f790f47382be6c1ed5d10a9e627e71be562e42..a402ce1d4483f1ea329d736405136d22e41eb543 100644 +--- a/src/virtualenv/activation/fish/__init__.py ++++ b/src/virtualenv/activation/fish/__init__.py +@@ -7,6 +7,12 @@ class FishActivator(ViaTemplateActivator): + def templates(self): + yield "activate.fish" + ++ @staticmethod ++ def quote(string): ++ # fish reads \\ and \' as escapes inside single quotes, unlike POSIX sh, so shlex.quote's output lets a ++ # backslash before a quote end the literal early ++ return "'" + string.replace("\\", "\\\\").replace("'", "\\'") + "'" ++ + + __all__ = [ + "FishActivator", +diff --git a/tests/unit/activation/test_fish.py b/tests/unit/activation/test_fish.py +index 6a92a27909077d18eeb4674594dd878fe49899a5..8a9397ea5fb15d600082ed27f873f4264a908c18 100644 +--- a/tests/unit/activation/test_fish.py ++++ b/tests/unit/activation/test_fish.py +@@ -6,6 +6,18 @@ from virtualenv.activation import FishActivator + from virtualenv.info import IS_WIN + + ++@pytest.mark.parametrize( ++ ("value", "expected"), ++ [ ++ ("", "''"), ++ ("plain path", "'plain path'"), ++ ("a\\b'c", "'a\\\\b\\'c'"), ++ ], ++) ++def test_fish_quote(value, expected): ++ assert FishActivator.quote(value) == expected ++ ++ + @pytest.mark.skipif(IS_WIN, reason="we have not setup fish in CI yet") + def test_fish(activation_tester_class, activation_tester, monkeypatch, tmp_path): + monkeypatch.setenv("HOME", str(tmp_path)) diff --git a/meta-python/recipes-devtools/python/python3-virtualenv/fish3-multibyte-quoting.patch b/meta-python/recipes-devtools/python/python3-virtualenv/fish3-multibyte-quoting.patch new file mode 100644 index 0000000000..20ed6cb465 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-virtualenv/fish3-multibyte-quoting.patch @@ -0,0 +1,165 @@ +From 685435d7fb53da12da99e195ee2753f5ca083249 Mon Sep 17 00:00:00 2001 +From: Bernát Gábor +Date: Sat, 17 Oct 2026 02:08:22 -0700 +Subject: [PATCH] From patchwork Tue Nov 24 05:09:34 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" X-Patchwork-Id: 105303 Received: from aer-iport-8.cisco.com (aer-iport-8.cisco.com [173.38.203.70]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.11968.1795496988177392376 for ; Mon, 23 Nov 2026 21:09:48 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: message contains an insecure body length tag" header.i=@cisco.com header.s=iport01 header.b=T9FAjmyY; spf=pass (domain: cisco.com, ip: 173.38.203.70, mailfrom: hthakar@cisco.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=9105; q=dns/txt; s=iport01; t=1795496988; x=1796706588; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=hetm4kJQYvcJxKtacAz+W9e72orNo43zIfmxKLaPpzk=; b=T9FAjmyYQ+SJFMtbkT81By4us7ruCunfA9G0fSDJmIsU22hCibKmv7gW YAF7jGDjOuTNfoLKmvXjaf6x3tdfg/iSfvq+Fhzr2x61cJDc6Rn/XHKXP v5F7kfbtlrAp6jJKjBlisDJTnEjud5fl+VnfDersXpLukvSBqN76BMWh3 qXimcReXD8MpJWHggGOA/W449yAL7YtTQZBdF6KHDD1U0IpHl+i8anRar a//anJvGApl+UabidEzQbL7K53sPJ+7fckSzKvsLUtqdsy9S6+tqMZFjx Agg8DZDcQCJx+M2KoeOPgsf5l9EbjLPyNUG8iOy9BI9aCtxa5AcAeSC/g g==; X-CSE-ConnectionGUID: tlazWadWStmvtbYzUw/Qbw== X-CSE-MsgGUID: xeNJQNUMTuSDamhvQbtKhw== X-IPAS-Result: A0DRAgBXGwVr/9JK/pBaHgEBCxIMggULgld1YUJJA4RUj1OCIQOLZpJDgX4PAQEBD0QNBAEBhD9GAo4iAiY1CA4BAgQDAgMBAQEBAQEBAQEBAQEKAQEFAQEBAgEHBYEOE4ZPDZASAQIBAyMPAR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/UQUEBAQWF6xrPW1h0L7V99BJ kg8/is1sbN081SmSNT4VRC0rHOI+BkGVLJt//YS4QyXj66R6AGDCy1cH3hKaccts4k9QjlCO kK1ou4FzAdH6NW9IU9xPJ/Nxd9uEUD59VM/WBI= IronPort-HdrOrdr: A9a23:MWM4D6g+nDXrTU9p8whNU6IwSXBQXvgji2hC6mlwRA09TyX+rb HIoB17726RtN9/Yh8dcLy7VZVoBEmslqKdgrNhWItKIjOGhILAFugLhuHfKn/bak/DH4Vmup uIHZITNDSJNzhHpPe/xhWkGNA9x9TC2qWpieDCi0pJd2hRGsddB8MTMHfiLqWwLzM2fKYEKA == X-Talos-CUID: 9a23:5lEddWyvysGrOvRMCDCnBgUIHsk3TXTR80zMJlGkA1d7daLScFWPrfY= X-Talos-MUID: 9a23:9LSk9AsywdL+RvTzmM2nlDxEFv5O3oGSFXshmJAGpfCOKQ9wJGLI X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.27,229,1787011200"; d="scan'208";a="60147492" Received: from aer-l-core-09.cisco.com ([144.254.74.210]) by aer-iport-8.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 24 Nov 2026 05:09:44 +0000 Received: from sjc-ads-2020.cisco.com (sjc-ads-2020.cisco.com [171.70.61.208]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ciscoit-managed-infra-smtp-auth.cisco.com", Issuer "Internal Private TLS SubCA" (verified OK)) by aer-l-core-09.cisco.com (Postfix) with ESMTPS id 0BFCB18000138 for ; Tue, 24 Nov 2026 05:09:44 +0000 (GMT) Received: by sjc-ads-2020.cisco.com (Postfix, from userid 1887505) id B1B72CC124F; Mon, 23 Nov 2026 21:09:42 -0800 (PST) From: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" To: openembedded-devel@lists.openembedded.org Subject: [meta-python][scarthgap][PATCH 04/12] python3-virtualenv: fix CVE-2026-113726 Date: Mon, 23 Nov 2026 21:09:34 -0800 Message-Id: <20261124050942.1795310-5-hthakar@cisco.com> X-Mailer: git-send-email 2.35.6 In-Reply-To: <20261124050942.1795310-1-hthakar@cisco.com> References: <20261124050942.1795310-1-hthakar@cisco.com> MIME-Version: 1.0 X-Outbound-Client-TLS: VERIFIED;sjc-ads-2020.cisco.com [171.70.61.208];TLSv1.3;TLS_AES_256_GCM_SHA384;256;ciscoit-managed-infra-smtp-auth.cisco.com X-Outbound-SMTP-Client: 171.70.61.208, sjc-ads-2020.cisco.com X-Outbound-Node: aer-l-core-09.cisco.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 05:09:54 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132911 From: Hetvi Thakar This patch backports the upstream fix in [1], identified by the upstream security advisory in [2], to virtualenv 20.25.3. [1] https://github.com/pypa/virtualenv/commit/5b915367da82bd024b2a0d28d2f98007034b4aa2 [2] https://github.com/pypa/virtualenv/security/advisories/GHSA-5vjq-rrrf-7h2q Package each additional upstream prerequisite or correction in its own embedded patch with its own upstream metadata. Signed-off-by: Hetvi Thakar --- .../python3-virtualenv/CVE-2026-113726.patch | 97 +++++++++++++++++++ .../bash-prompt-escaping-prerequisite.patch | 42 ++++++++ .../python/python3-virtualenv_20.25.3.bb | 2 + 3 files changed, 141 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113726.patch create mode 100644 meta-python/recipes-devtools/python/python3-virtualenv/bash-prompt-escaping-prerequisite.patch diff --git a/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113726.patch b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113726.patch new file mode 100644 index 0000000000..42f7eb3df8 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113726.patch @@ -0,0 +1,97 @@ +From 5b915367da82bd024b2a0d28d2f98007034b4aa2 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= +Date: Fri, 2 Oct 2026 06:40:23 -0700 +Subject: [PATCH] Merge commit from fork + +The bash activate script, which zsh also sources, escaped backslashes, +dollar signs and backticks in the environment name only under bash. +zsh with PROMPT_SUBST re-expands PS1 at every prompt draw, so a name +such as x$(touch PWNED)y ran as a command each time the prompt showed. + +Apply the same escaping under zsh, also when PROMPT_SUBST is off since +it can be set after activation, and double % so zsh shows the name +instead of reading it as prompt escapes. The prompt tests now render +PS1 through zsh as well as bash. + +CVE: CVE-2026-113726 +Upstream-Status: Backport [https://github.com/pypa/virtualenv/commit/5b915367da82bd024b2a0d28d2f98007034b4aa2] + +Backport Changes: + - Apply after bash-prompt-escaping-prerequisite.patch and retain the + older activation block's layout and explicit PS1 export. + - Replace newer upstream test fixtures with prompt-rendering checks for + the older test layout. + +Signed-off-by: Hetvi Thakar +--- + src/virtualenv/activation/bash/activate.sh | 11 +++++++--- + tests/unit/activation/test_bash.py | 33 ++++++++++++++++++++++++++++++ + 2 files changed, 41 insertions(+), 3 deletions(-) + +diff --git a/src/virtualenv/activation/bash/activate.sh b/src/virtualenv/activation/bash/activate.sh +index ced5f5d0e86b79975a70a1cfb596dd7f74ceb297..24a840867374e0f20f04449e2b81f14c1cd54b41 100644 +--- a/src/virtualenv/activation/bash/activate.sh ++++ b/src/virtualenv/activation/bash/activate.sh +@@ -71,13 +71,18 @@ fi + if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT-}" ] ; then + _OLD_VIRTUAL_PS1="${PS1-}" + _VIRTUAL_PROMPT="${VIRTUAL_ENV_PROMPT}" +- # bash re-expands backslashes, dollar signs and backticks in PS1 on every redraw; the guard keeps the +- # bash-only substitution away from POSIX shells such as dash, which reject it with "Bad substitution" +- if [ -n "${BASH_VERSION-}" ]; then ++ # bash, and zsh under PROMPT_SUBST, re-expand backslashes, dollar signs and backticks in PS1 on every redraw; ++ # zsh gets the escaping even without the option, since a user can set it after activation. The guards keep ++ # the substitution away from POSIX shells such as dash, which reject it with "Bad substitution" ++ if [ -n "${BASH_VERSION-}${ZSH_VERSION-}" ]; then + _VIRTUAL_PROMPT="${_VIRTUAL_PROMPT//\\/\\\\}" + _VIRTUAL_PROMPT="${_VIRTUAL_PROMPT//\$/\\\$}" + _VIRTUAL_PROMPT="${_VIRTUAL_PROMPT//\`/\\\`}" + fi ++ # zsh expands % sequences in PS1 as prompt escapes ++ if [ -n "${ZSH_VERSION-}" ]; then ++ _VIRTUAL_PROMPT="${_VIRTUAL_PROMPT//\%/%%}" ++ fi + PS1="(${_VIRTUAL_PROMPT}) ${PS1-}" + unset _VIRTUAL_PROMPT + export PS1 +diff --git a/tests/unit/activation/test_bash.py b/tests/unit/activation/test_bash.py +index 4c92b733c03f9be6f2be1f2e4f5df77dfb064450..6ee96e424bfa482ecd6aa3efd913e46151c9c234 100644 +--- a/tests/unit/activation/test_bash.py ++++ b/tests/unit/activation/test_bash.py +@@ -23,3 +23,36 @@ def test_bash(raise_on_non_source_class, activation_tester): + return self.print_os_env_var("PS1") + + activation_tester(Bash) ++ ++ ++@pytest.mark.skipif(IS_WIN, reason="requires POSIX shell activation") ++@pytest.mark.parametrize("shell", ["zsh"]) ++@pytest.mark.parametrize("prompt", ["plain", r"a\$HOME%tail", r"doubled\\slashes"]) ++def test_prompt_is_rendered_literally(tmp_path, shell, prompt): ++ """Shell prompt decoding must preserve characters supplied as prompt data.""" ++ import os ++ import shlex ++ import shutil ++ import subprocess ++ from pathlib import Path ++ ++ executable = shutil.which(shell) ++ if executable is None: ++ pytest.skip(f"{shell} is not available") ++ template = Path(__file__).resolve().parents[3] / "src/virtualenv/activation/bash/activate.sh" ++ script = template.read_text(encoding="utf-8") ++ script = script.replace("__VIRTUAL_ENV__", shlex.quote(str(tmp_path / "env"))) ++ script = script.replace("__BIN_NAME__", shlex.quote("bin")) ++ script = script.replace("__VIRTUAL_PROMPT__", shlex.quote(prompt)) ++ activation = tmp_path / "activate" ++ activation.write_text(script, encoding="utf-8") ++ options = ["--noprofile", "--norc", "-i"] if shell == "bash" else ["-f", "-i"] ++ setup = "setopt promptsubst\n" if shell == "zsh" else "" ++ commands = setup + "PS1='BASE>'\nsource " + shlex.quote(str(activation)) + "\nexit\n" ++ env = {**os.environ, "TERM": "dumb"} ++ env.pop("VIRTUAL_ENV_DISABLE_PROMPT", None) ++ result = subprocess.run( ++ [executable, *options], input=commands, text=True, capture_output=True, ++ env=env, timeout=10, check=True, ++ ) ++ assert f"({prompt}) BASE>" in result.stderr diff --git a/meta-python/recipes-devtools/python/python3-virtualenv/bash-prompt-escaping-prerequisite.patch b/meta-python/recipes-devtools/python/python3-virtualenv/bash-prompt-escaping-prerequisite.patch new file mode 100644 index 0000000000..889d1bf274 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-virtualenv/bash-prompt-escaping-prerequisite.patch @@ -0,0 +1,42 @@ +From a70c1dac43e2ee7e618132b572072395af5d8a9b Mon Sep 17 00:00:00 2001 +From: Bernát Gábor +Date: Sat, 26 Sep 2026 09:35:09 -0700 +Subject: [PATCH] From patchwork Tue Nov 24 05:09:35 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" X-Patchwork-Id: 105308 Received: from aer-iport-2.cisco.com (aer-iport-2.cisco.com [173.38.203.52]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.11753.1795496989459483492 for ; Mon, 23 Nov 2026 21:09:49 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: message contains an insecure body length tag" header.i=@cisco.com header.s=iport01 header.b=IZVk5izB; spf=pass (domain: cisco.com, ip: 173.38.203.52, mailfrom: hthakar@cisco.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=6020; q=dns/txt; s=iport01; t=1795496989; x=1796706589; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=nud8C6MfAhO70e/JeCx9O4ul2+4Yr47TI6CaL9bZfeI=; b=IZVk5izBe8ur678CQjdRnIa7axg1rZMUXL2+LEbLJqqavKC1cHpwXDin PIQC7isapqfy/dbU0UsxcSIkL/reb4idMICyrr21+xP1U4xohpFHy6caQ 6nPJFgibMSz/xxlU92UNindUQb10gsoOTJdbyk54jqGkPTfzGd0Hp/pz4 bHs/TRd3Yv08IJJ0WUm1qRccxYpsa9jY8JY5wk6nf2H+IDLjFtS3GqfJM AnRkivANTS9yeZ/ux3iQPIQehOtF72msUx85FQJo7uxwbVyEzSweChnd7 cjzNvuPC3J1h0bjXsI1dwrVOeKH3G/zXvp53ZkPXALksrHxBS9T7QjFIk g==; X-CSE-ConnectionGUID: EeA7SiCYRoGviaJ2iVaX/w== X-CSE-MsgGUID: 5IpJldl8RZmImq6/OgaADw== X-IPAS-Result: A0BPAgBXGwVr/8tK/pBaglmCV3VhQkkDhFSPU4IhA4tmkkOBfg8BAQEPRA0EAQGEP0YCjiICJjQJDgECBAMCAwEBAQEBAQEBAQEBAQoBAQUBAQECAQcFgQ4Thk8NkBIBAgEDIw8BGAEeAgoTCRMDAQIDAiYCAiALIwgQCYMCAYI6AzcCARGfaJskeoEygQGDKQGBVNhMDYJaAQsUAYEKLoVCgwAgAYUDXRgBhH0nGxuBcoEVg2qBBYEaQgKBKoQSgmoEgiJ6EoFUHox5AoFPiElIgQIcA1ksAVUTDQoLBwWBaAM1EioVbjIdgSM7Fy9YGwYFgRyBHoESgQNdgSsoXiGBCIF2AoJRggACAUlBDgdFUwklQxJHJCIIEgkBExosCoEaNTwJJj8VDGcLGgVhCAINDHQ5EDAeJC8FGiY+GwqBDCcfHhsOAh8QBhYhCxsYDUgRLDcVGQQ9AW4HlBSCeiBhHg8BK4E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ID: 9a23:8z1RXWz8KuqxCfAharfEBgU5F+l6SXz2/U3XDFG5AEQzSYOceRiPrfY= X-Talos-MUID: 9a23:Rrvh7wbqQl05buBT6h70pjVuMJdS0aGPDVlT1rIJsuCoKnkl X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.27,230,1787011200"; d="scan'208";a="62741267" Received: from aer-l-core-02.cisco.com ([144.254.74.203]) by aer-iport-2.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 24 Nov 2026 05:09:45 +0000 Received: from sjc-ads-2020.cisco.com (sjc-ads-2020.cisco.com [171.70.61.208]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ciscoit-managed-infra-smtp-auth.cisco.com", Issuer "Internal Private TLS SubCA" (verified OK)) by aer-l-core-02.cisco.com (Postfix) with ESMTPS id 833871800017B for ; Tue, 24 Nov 2026 05:09:45 +0000 (GMT) Received: by sjc-ads-2020.cisco.com (Postfix, from userid 1887505) id B6852CC1250; Mon, 23 Nov 2026 21:09:42 -0800 (PST) From: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" To: openembedded-devel@lists.openembedded.org Subject: [meta-python][scarthgap][PATCH 05/12] python3-virtualenv: fix CVE-2026-113725 Date: Mon, 23 Nov 2026 21:09:35 -0800 Message-Id: <20261124050942.1795310-6-hthakar@cisco.com> X-Mailer: git-send-email 2.35.6 In-Reply-To: <20261124050942.1795310-1-hthakar@cisco.com> References: <20261124050942.1795310-1-hthakar@cisco.com> MIME-Version: 1.0 X-Outbound-Client-TLS: VERIFIED;sjc-ads-2020.cisco.com [171.70.61.208];TLSv1.3;TLS_AES_256_GCM_SHA384;256;ciscoit-managed-infra-smtp-auth.cisco.com X-Outbound-SMTP-Client: 171.70.61.208, sjc-ads-2020.cisco.com X-Outbound-Node: aer-l-core-02.cisco.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 05:09:54 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132916 From: Hetvi Thakar This patch backports the upstream fix in [1], identified by the upstream security advisory in [2], to virtualenv 20.25.3. Apply after the separately packaged Bash prompt-escaping prerequisite. [1] https://github.com/pypa/virtualenv/commit/c3104e02474b652832a9bbaae79f6e1696296932 [2] https://github.com/pypa/virtualenv/security/advisories/GHSA-vxj4-q4g9-crj7 Signed-off-by: Hetvi Thakar --- .../python3-virtualenv/CVE-2026-113725.patch | 76 +++++++++++++++++++ .../python/python3-virtualenv_20.25.3.bb | 1 + 2 files changed, 77 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113725.patch diff --git a/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113725.patch b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113725.patch new file mode 100644 index 0000000000..f6eae79dbd --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113725.patch @@ -0,0 +1,76 @@ +From c3104e02474b652832a9bbaae79f6e1696296932 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= +Date: Sun, 11 Oct 2026 17:36:53 -0700 +Subject: [PATCH] From patchwork Tue Nov 24 05:09:36 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" X-Patchwork-Id: 105302 Received: from aer-iport-4.cisco.com (aer-iport-4.cisco.com [173.38.203.54]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.11969.1795496989552880003 for ; Mon, 23 Nov 2026 21:09:50 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: message contains an insecure body length tag" header.i=@cisco.com header.s=iport01 header.b=MPqlv05n; spf=pass (domain: cisco.com, ip: 173.38.203.54, mailfrom: hthakar@cisco.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=6314; q=dns/txt; s=iport01; t=1795496989; x=1796706589; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=GXDlbuHh72KJG62mhfI1N19xmowcOI7RmtDeMu94q+g=; b=MPqlv05nAH8UUD39tSdQDJAMivYyWENzf1bY99JqYqLD5y8YBBdDjJBl nns6IYw/rzvciP4/VI5uabbbA2Ypzb1rxpjSrqb5Zs6Cq05ouZmtbWJmu lE+5x1Kx1pGe2Ox58RNdFF7cql6mIMedpjmQCQIyg6JS4C2GJue0IM2AF rCyeEU6sEOkxkn5iXLGyNTt4ozs0PE1OwDw8Ud/zwGd/VWUL46CXt3RR+ skmxMI4wO0hbLXiK1KybK79u2Kag1DqN+01KhwN2VuALIVhgQUjGgboau xJlfbpFVdYAUG1TKbB2OdGaxW+QCyeg8NDOL0dKGKNtTwcWPA7y7WkIoB g==; X-CSE-ConnectionGUID: 8fRn5ix+QCqky/XOK/SdwA== X-CSE-MsgGUID: Vyni0Ok/QGWq/mQojHf2Xg== X-IPAS-Result: A0BOAgBXGwVr/8pK/pBaglmCV3VhQkkDhFSPU4IhA4tmkkOBfg8BAQEPRA0EAQGEP0YCjiICJjQJDgECBAMCAwEBAQEBAQEBAQEBAQoBAQUBAQECAQcFgQ4Thk8NkBIBAgEDIw8BGAE9CRMDAQIDAiYCAiALHQEFCBAJgwIBgjoDNwIBEZ9omyR6gTKBAYMpAYFU2EwNgloBCxQBgQouhUKDACABhQNdGAFEhDknGxuBcoEVg2qBBYEaQgKFPIJqBIIiehKBVI0XAoFPiElIgQIcA1ksAVUTDQoLBwWBaAM1EioVbjIdgSM7Fy9YGwYFgRyBHoESgQNdgSsoXiGBCIF2AoJRggACAUlBDgdFUwklQ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N0tPpTntAsS9qDbnhP1ICOoqTNKftXfd2VdARbsKheCJ/9SjIVydygc378 hdmsZFZOEYdWIbse/KpC+lDt0n3N6LtIqshevY0jNRaDsCUdAH0++8YTzranGfg2J9dOMEKK Y= X-Talos-CUID: 9a23:aOCa42ukFvjgG/vXGB37evEm6It1fEfbkXbAYHaTEGV4D42yahir9LxNxp8= X-Talos-MUID: 9a23:5c8wRAwQNbpAqoHTiCRQqE9SQfeaqJq/DkFVtpZBgua7LGt1AjCfrDrtcoByfw== X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.27,230,1787011200"; d="scan'208";a="62682780" Received: from aer-l-core-01.cisco.com ([144.254.74.202]) by aer-iport-4.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 24 Nov 2026 05:09:45 +0000 Received: from sjc-ads-2020.cisco.com (sjc-ads-2020.cisco.com [171.70.61.208]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ciscoit-managed-infra-smtp-auth.cisco.com", Issuer "Internal Private TLS SubCA" (verified OK)) by aer-l-core-01.cisco.com (Postfix) with ESMTPS id 844B8343F5 for ; Tue, 24 Nov 2026 05:09:45 +0000 (GMT) Received: by sjc-ads-2020.cisco.com (Postfix, from userid 1887505) id BB499CC2EF2; Mon, 23 Nov 2026 21:09:42 -0800 (PST) From: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" To: openembedded-devel@lists.openembedded.org Subject: [meta-python][scarthgap][PATCH 06/12] python3-virtualenv: fix CVE-2026-113715 Date: Mon, 23 Nov 2026 21:09:36 -0800 Message-Id: <20261124050942.1795310-7-hthakar@cisco.com> X-Mailer: git-send-email 2.35.6 In-Reply-To: <20261124050942.1795310-1-hthakar@cisco.com> References: <20261124050942.1795310-1-hthakar@cisco.com> MIME-Version: 1.0 X-Outbound-Client-TLS: VERIFIED;sjc-ads-2020.cisco.com [171.70.61.208];TLSv1.3;TLS_AES_256_GCM_SHA384;256;ciscoit-managed-infra-smtp-auth.cisco.com X-Outbound-SMTP-Client: 171.70.61.208, sjc-ads-2020.cisco.com X-Outbound-Node: aer-l-core-01.cisco.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 05:09:53 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132918 From: Hetvi Thakar This patch backports the upstream fix in [1], identified by the upstream security advisory in [2], to virtualenv 20.25.3. [1] https://github.com/pypa/virtualenv/commit/b0008a58885ded9227faf8f910c6c402712c750a [2] https://github.com/pypa/virtualenv/security/advisories/GHSA-qmx5-4p3x-wvqf Signed-off-by: Hetvi Thakar --- .../python3-virtualenv/CVE-2026-113715.patch | 107 ++++++++++++++++++ .../python/python3-virtualenv_20.25.3.bb | 1 + 2 files changed, 108 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113715.patch diff --git a/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113715.patch b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113715.patch new file mode 100644 index 0000000000..823bab9b64 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113715.patch @@ -0,0 +1,107 @@ +From b0008a58885ded9227faf8f910c6c402712c750a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= +Date: Sat, 17 Oct 2026 02:56:02 -0700 +Subject: [PATCH] From patchwork Tue Nov 24 05:09:37 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" X-Patchwork-Id: 105300 Received: from aer-iport-2.cisco.com (aer-iport-2.cisco.com [173.38.203.52]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.11753.1795496989459483492 for ; Mon, 23 Nov 2026 21:09:50 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: message contains an insecure body length tag" header.i=@cisco.com header.s=iport01 header.b=JVLQQpZq; spf=pass (domain: cisco.com, ip: 173.38.203.52, mailfrom: hthakar@cisco.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=11285; q=dns/txt; s=iport01; t=1795496990; x=1796706590; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=JMZCTINYzag/mJjwQPUUUFuOWr6Rh0fHSwuk89pxWe8=; b=JVLQQpZqFd4nMP7zGapvaGwu0+CQFASrVfy/MfgLutk8jc6qiaM4FPW2 7zOKtGyvMvE7+FJdSf6ZuNKf3GLzCpFNTqyoyPVauku/WPxniDSXA7Eo7 iulamETGxnmyNw2NNoAZsKUqrW5iD5xJCR1UpWzsZrwzx/HfFCvMB5aYb +pVHcDO+dTxIr4AzmlV+oTYtQT6FspWFdI6+poOwfk+2vXt/vxrnYFz1K ZtwMtBRDhUFVaLAZU0GIxYucEmVM6dADIFGwAmFkvIclS077I8QWecEYv nSXWGNvh1omb9xOoxjGR84csbEvXbBIJ6XdD0eKTE7Xg7IMYk6yH0hQez g==; X-CSE-ConnectionGUID: ZNTa1S8TQLKmfV2cDXvIyA== X-CSE-MsgGUID: uuTCYhQVT8+XWm+ZoTuF+g== X-IPAS-Result: A0BNAgBXGwVr/81K/pBaglmCV3VhQkkDhFSPU4IhA4ETilOSQ4F+DwEBAQ9EDQQBAYQ/RgKOIgImNAkOAQIEAwIDAQEBAQEBAQEBAQEBCgEBBQEBAQIBBwWBDhOGTw2QEgECAQMjDwEYAT0JEwMBAgMCJgICIAsjCBAJgwIBgjoDNwIBEZ9omyR6gTKBAYMpAYFU2EwNgloBCxQBgQouhUKDACABhQNdGAGEfScbG4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l7FQGMFVTVGLtchsafaWAAX6 7NApPuxbRQHjVFfYSj1Gmu8xd9qBRUoEA== IronPort-HdrOrdr: A9a23:mIhmFqmda+soPuLwqyjmBjBE3Q3pDfIO3DAbv31ZSRFFG/Fw8P re+8jztCWE7Ar5N0tPpTntAsS9qDbnhP1ICOoqTNKftXfd2VdARbsKheCJ/9SjIVydygc378 hdmsZFZOEYdWIbse/KpC+lDt0n3N6LtIqshevY0jNRaDsCUdAH0++8YTzranGfg2J9dOMEKK Y= X-Talos-CUID: 9a23:7WOJf27FKHDsRH5nhtssxmgoE5keIkHk6FTVLXHiAkpZVpyEYArF X-Talos-MUID: 9a23:ve4L0AQkqewXhVFeRXTxmQ1JBcdR3Zj+S3AylNY0vPWZG29/bmI= X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.27,230,1787011200"; d="scan'208";a="62741268" Received: from aer-l-core-04.cisco.com ([144.254.74.205]) by aer-iport-2.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 24 Nov 2026 05:09:45 +0000 Received: from sjc-ads-2020.cisco.com (sjc-ads-2020.cisco.com [171.70.61.208]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ciscoit-managed-infra-smtp-auth.cisco.com", Issuer "Internal Private TLS SubCA" (verified OK)) by aer-l-core-04.cisco.com (Postfix) with ESMTPS id 87374180001F8 for ; Tue, 24 Nov 2026 05:09:45 +0000 (GMT) Received: by sjc-ads-2020.cisco.com (Postfix, from userid 1887505) id BFDCECC2EF3; Mon, 23 Nov 2026 21:09:42 -0800 (PST) From: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" To: openembedded-devel@lists.openembedded.org Subject: [meta-python][scarthgap][PATCH 07/12] python3-virtualenv: fix CVE-2026-113716 Date: Mon, 23 Nov 2026 21:09:37 -0800 Message-Id: <20261124050942.1795310-8-hthakar@cisco.com> X-Mailer: git-send-email 2.35.6 In-Reply-To: <20261124050942.1795310-1-hthakar@cisco.com> References: <20261124050942.1795310-1-hthakar@cisco.com> MIME-Version: 1.0 X-Outbound-Client-TLS: VERIFIED;sjc-ads-2020.cisco.com [171.70.61.208];TLSv1.3;TLS_AES_256_GCM_SHA384;256;ciscoit-managed-infra-smtp-auth.cisco.com X-Outbound-SMTP-Client: 171.70.61.208, sjc-ads-2020.cisco.com X-Outbound-Node: aer-l-core-04.cisco.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 05:09:53 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132920 From: Hetvi Thakar This patch backports the upstream fix in [1], identified by the upstream security advisory in [2], to virtualenv 20.25.3. The backport also includes the required directory handling helper. [1] https://github.com/pypa/virtualenv/commit/554d9f9d4f7758f5cf53f993031e29787f1f74c5 [2] https://github.com/pypa/virtualenv/security/advisories/GHSA-cw65-gx24-rc82 Package each additional upstream prerequisite or correction in its own embedded patch with its own upstream metadata. Signed-off-by: Hetvi Thakar --- .../python3-virtualenv/CVE-2026-113716.patch | 117 ++++++++++++++++++ .../ensure-within-prerequisite.patch | 107 ++++++++++++++++ .../python/python3-virtualenv_20.25.3.bb | 2 + 3 files changed, 226 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113716.patch create mode 100644 meta-python/recipes-devtools/python/python3-virtualenv/ensure-within-prerequisite.patch diff --git a/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113716.patch b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113716.patch new file mode 100644 index 0000000000..8708bc0f2c --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113716.patch @@ -0,0 +1,117 @@ +From 554d9f9d4f7758f5cf53f993031e29787f1f74c5 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= +Date: Sat, 17 Oct 2026 03:36:11 -0700 +Subject: [PATCH] From patchwork Tue Nov 24 05:09:38 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" X-Patchwork-Id: 105301 Received: from aer-iport-4.cisco.com (aer-iport-4.cisco.com [173.38.203.54]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.11969.1795496989552880003 for ; Mon, 23 Nov 2026 21:09:51 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: message contains an insecure body length tag" header.i=@cisco.com header.s=iport01 header.b=X1TaIGE8; spf=pass (domain: cisco.com, ip: 173.38.203.54, mailfrom: hthakar@cisco.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=15032; q=dns/txt; s=iport01; t=1795496990; x=1796706590; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=fbEjA4SO6Asje/G3JC4bFCVYXxyNEeC+NUhsGsBMkMo=; b=X1TaIGE8s/nSLfQvSTkBlzLZFRJjjn7Jb7r0KbEU+ic34Qg1gBwb52ep EGYLq7mNX3E5uAJ4eBieypIMAimLy2iQrO7Crvko+KxmSD2K3RjZoAZ85 DoKyv44yJBOnhFlztjuBeH7Uwb036uTc0xmww7cBspTNpGQTKEk6Yp/kR RGzDo9p9YNpKUaR9/KPRl+HqsiAOGz9viWz7U42O3BRxzunDU+8sq3VTc fNDZ/MX2WtuCjy1Ee+Byb6BKqZ6r+pe3IVuaSrA4GZ5KPD2gdgreKlOJ+ N5OJ/VDuW6Si/ORYKbY6pgSR3DUEqQ2p8RCWePDKe+lxXaQRXLrcrklmt w==; X-CSE-ConnectionGUID: HaDwIonNSf+dYj7+A9J7Qg== X-CSE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kdO3wyHC0GQkmVUFN0OevzXRSLaV/wmWeG0YAzcmCA2kWNKEH2+FxJ1pAt vApKm9OR0Gh2Nu5lefTpulE3qzPLeHiMZlavjRryivUSK54B5vCWK7No9Rf2V/chOgXQaqYP ZdFL2UzKk6YPHWjOX9PYH46tOe0hnD8eidwo1OOrq1x6G/WpOB0+Oa3boqPJYzTLSlTtnTAt mPqxWeiO0g9LsWE+TWO7miMhPCayEsXX6pXTtVU7MVCh0WewGEWAhAaWVa35PW0lEO6c9ZeM FAPvC02oK4/8UamQtXwU1u/unHsg/IHc9NdCag+rQqK0KeRu1jfDWkfRTkHY9sj3CMreQEXO payt4uBLVRSXHe9ExpxKp/8QeuOBBUo IronPort-HdrOrdr: A9a23:qPYfDKmtI8M9y2ws9gJL7mMZrNPpDfIO3DAbv31ZSRFFG/Fw8P re+8jztCWE7Ar5N0tPpTntAsS9qDbnhP1ICOoqTNKftXfd2VdARbsKheCJ/9SjIVydygc378 hdmsZFZOEYdWIbse/KpC+lDt0n3N6LtIqshevY0jNRaDsCUdAH0++8YTzranGfg2J9dOMEKK Y= X-Talos-CUID: 9a23:P9zXLGvcIzyM2666GblI3G086IsFe1HC7XDWBXS2SmpYSuLWYA6yp5prxp8= X-Talos-MUID: 9a23:J6cXFAmFzIeoVNzACZg0dnpQbNdpz56tU3lUto8foPmLPjBqGzWC2WE= X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.27,230,1787011200"; d="scan'208";a="62682781" Received: from aer-l-core-06.cisco.com ([144.254.74.207]) by aer-iport-4.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 24 Nov 2026 05:09:46 +0000 Received: from sjc-ads-2020.cisco.com (sjc-ads-2020.cisco.com [171.70.61.208]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ciscoit-managed-infra-smtp-auth.cisco.com", Issuer "Internal Private TLS SubCA" (verified OK)) by aer-l-core-06.cisco.com (Postfix) with ESMTPS id 8BB4A180001F6 for ; Tue, 24 Nov 2026 05:09:45 +0000 (GMT) Received: by sjc-ads-2020.cisco.com (Postfix, from userid 1887505) id C67FECC2EF4; Mon, 23 Nov 2026 21:09:42 -0800 (PST) From: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" To: openembedded-devel@lists.openembedded.org Subject: [meta-python][scarthgap][PATCH 08/12] python3-virtualenv: fix CVE-2026-113723 Date: Mon, 23 Nov 2026 21:09:38 -0800 Message-Id: <20261124050942.1795310-9-hthakar@cisco.com> X-Mailer: git-send-email 2.35.6 In-Reply-To: <20261124050942.1795310-1-hthakar@cisco.com> References: <20261124050942.1795310-1-hthakar@cisco.com> MIME-Version: 1.0 X-Outbound-Client-TLS: VERIFIED;sjc-ads-2020.cisco.com [171.70.61.208];TLSv1.3;TLS_AES_256_GCM_SHA384;256;ciscoit-managed-infra-smtp-auth.cisco.com X-Outbound-SMTP-Client: 171.70.61.208, sjc-ads-2020.cisco.com X-Outbound-Node: aer-l-core-06.cisco.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 05:09:53 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132921 From: Hetvi Thakar This patch applies the upstream fix as referenced in [2], using the commit shown in [1]. Include the prompt-state correction in [3] to avoid introducing the known follow-up regression when Bash prompt options change. [1] https://github.com/pypa/virtualenv/commit/5f48d711731311428aebfae61d46957762155b22 [2] https://github.com/pypa/virtualenv/security/advisories/GHSA-6w3r-xr62-4xcp [3] https://github.com/pypa/virtualenv/commit/3598e201f6f044e389136b2347a8a919ac03c5f4 Package each additional upstream prerequisite or correction in its own embedded patch with its own upstream metadata. Signed-off-by: Hetvi Thakar --- .../python3-virtualenv/CVE-2026-113723.patch | 96 +++++++++++ .../bash-prompt-state-followup.patch | 160 ++++++++++++++++++ .../python/python3-virtualenv_20.25.3.bb | 2 + 3 files changed, 258 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113723.patch create mode 100644 meta-python/recipes-devtools/python/python3-virtualenv/bash-prompt-state-followup.patch diff --git a/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113723.patch b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113723.patch new file mode 100644 index 0000000000..cba08d5cc2 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113723.patch @@ -0,0 +1,96 @@ +From 5f48d711731311428aebfae61d46957762155b22 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= +Date: Sat, 17 Oct 2026 02:35:17 -0700 +Subject: [PATCH] From patchwork Tue Nov 24 05:09:39 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" X-Patchwork-Id: 105309 Received: from aer-iport-1.cisco.com (aer-iport-1.cisco.com [173.38.203.51]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.11754.1795496989540783888 for ; Mon, 23 Nov 2026 21:09:50 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: message contains an insecure body length tag" header.i=@cisco.com header.s=iport01 header.b=VMuFd8zk; spf=pass (domain: cisco.com, ip: 173.38.203.51, mailfrom: hthakar@cisco.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=6730; q=dns/txt; s=iport01; t=1795496989; x=1796706589; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=B9Ej6SQNW7zL+c46wNVC4s/5dp9o4ZTn/F7EcryFw5w=; b=VMuFd8zkZoa3daFf+0HkWQmdgw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27,229,1787011200"; d="scan'208";a="62744991" Received: from aer-l-core-12.cisco.com ([144.254.74.213]) by aer-iport-1.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 24 Nov 2026 05:09:45 +0000 Received: from sjc-ads-2020.cisco.com (sjc-ads-2020.cisco.com [171.70.61.208]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ciscoit-managed-infra-smtp-auth.cisco.com", Issuer "Internal Private TLS SubCA" (verified OK)) by aer-l-core-12.cisco.com (Postfix) with ESMTPS id 8E59018000210 for ; Tue, 24 Nov 2026 05:09:45 +0000 (GMT) Received: by sjc-ads-2020.cisco.com (Postfix, from userid 1887505) id CC094CC51C0; Mon, 23 Nov 2026 21:09:42 -0800 (PST) From: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" To: openembedded-devel@lists.openembedded.org Subject: [meta-python][scarthgap][PATCH 09/12] python3-virtualenv: fix CVE-2026-113720 Date: Mon, 23 Nov 2026 21:09:39 -0800 Message-Id: <20261124050942.1795310-10-hthakar@cisco.com> X-Mailer: git-send-email 2.35.6 In-Reply-To: <20261124050942.1795310-1-hthakar@cisco.com> References: <20261124050942.1795310-1-hthakar@cisco.com> MIME-Version: 1.0 X-Outbound-Client-TLS: VERIFIED;sjc-ads-2020.cisco.com [171.70.61.208];TLSv1.3;TLS_AES_256_GCM_SHA384;256;ciscoit-managed-infra-smtp-auth.cisco.com X-Outbound-SMTP-Client: 171.70.61.208, sjc-ads-2020.cisco.com X-Outbound-Node: aer-l-core-12.cisco.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 05:09:54 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132917 From: Hetvi Thakar This patch applies the upstream fix as referenced in [2], using the commit shown in [1]. Adapt the copy helpers to virtualenv 20.25.3 and apply current permissions instead of preserving permissive cache modes. [1] https://github.com/pypa/virtualenv/commit/35f0b33562790176dd186d0a3c517af3acc7a0e1 [2] https://github.com/pypa/virtualenv/security/advisories/GHSA-fc2g-4w5p-6whm Signed-off-by: Hetvi Thakar --- .../python3-virtualenv/CVE-2026-113720.patch | 135 ++++++++++++++++++ .../python/python3-virtualenv_20.25.3.bb | 1 + 2 files changed, 136 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113720.patch diff --git a/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113720.patch b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113720.patch new file mode 100644 index 0000000000..4b702ab9ca --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113720.patch @@ -0,0 +1,135 @@ +From 35f0b33562790176dd186d0a3c517af3acc7a0e1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= +Date: Sat, 17 Oct 2026 02:57:36 -0700 +Subject: [PATCH] From patchwork Tue Nov 24 05:09:40 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" X-Patchwork-Id: 105310 Received: from aer-iport-1.cisco.com (aer-iport-1.cisco.com [173.38.203.51]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.11751.1795496988092403056 for ; Mon, 23 Nov 2026 21:09:50 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: message contains an insecure body length tag" header.i=@cisco.com header.s=iport01 header.b=LXIvqjKz; spf=pass (domain: cisco.com, ip: 173.38.203.51, mailfrom: hthakar@cisco.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=7843; q=dns/txt; s=iport01; t=1795496990; x=1796706590; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=Mwljbu8l08wRCWcivJwwEsG16q4mkDxvmKenpHgr02A=; b=LXIvqjKzs1FK96vGEtNzkMktUeEglq80dVZ+CUU6jxKN8OtaUyBQhcM7 UB4J0wNnMhXcE2jeqWslDDyix4Zi+mXCF5IxDgnzgBPJxCNRLzPxJSlQs Av6mnzfas5OQpVAzkEaGgPfLbZHBuAKBkdA7vRSBjz766ooVQqfxKWxxj FK4WGxnXlHNXkuZkx5DPkxDRZuhabYAJvSVVsc8YLsXP/8hrcCh87Thzh RkBDherZkQdMt+hjep02aeK0RGvaetI2DlCanivsI5av2E5WeXtGoqP+R 3AcUZW5MQiZULcI6JeuSpKetgcslFMGKYIpDBKWvlW1xA6Ve783xDJUXb g==; X-CSE-ConnectionGUID: peFoDlUxT2e1cSfjy0rrKg== X-CSE-MsgGUID: ETj/RiBpR5qj4BTMMAgzpA== X-IPAS-Result: A0BNAgBOGgVr/8xK/pBaHgEBCxIMggULgld1YUJJA4RUj1OCIQOBE4pTkkOBfg8BAQEPRA0EAQGEP0YCjiICJjQJDgECBAMCAwEBAQEBAQEBAQEBAQoBAQUBAQECAQcFgQ4Thk8NkBIBAgEDIw8BGAE9CRMDAQIDAiYCAiALIwgQCYMCAYI6AzcCARGfZZskeoEygQGDKQGBVNhMDYJaAQsUAYEKLoVCgwAgAYUDXRgBRIQ5JxsbgXKBFYEXgV12gQWBGkICgSeEFYJqBIIiehKBVI0XAoFPiElIgQIcA1ksAVUTDQoLBwWBaAM1EioVbjIdgSM7Fy9YGwYFgRyBHoESgQNdgSsoXiGBCIF2AoJRggACAUlBDgdFUwklQxJHJCIIEgkBExosCoEaNTwJJj8VDGcLGgVhCAINDHQ5EDAeJC8FGiY+GwqBDCcfHhsOAh8QBhYhCxsYDUgRLDcVGQQ9AW4HlBSDGmABLQEII1AGRVERCAMkEaNDgiGgIHEKKIN5jCSPPoV8G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yEF7web87xfAs0LdVHZ8WfseULhAl1nSqzNU0Wz9/Yx X-Talos-MUID: 9a23:/wFJ0w1WXkFsKLNOF6qMBP1lmDUjzpisT3oMu4085tCGaQZMHhK0gyava9py X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.27,229,1787011200"; d="scan'208";a="62744992" Received: from aer-l-core-03.cisco.com ([144.254.74.204]) by aer-iport-1.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 24 Nov 2026 05:09:46 +0000 Received: from sjc-ads-2020.cisco.com (sjc-ads-2020.cisco.com [171.70.61.208]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ciscoit-managed-infra-smtp-auth.cisco.com", Issuer "Internal Private TLS SubCA" (verified OK)) by aer-l-core-03.cisco.com (Postfix) with ESMTPS id 8E1C9180006C5 for ; Tue, 24 Nov 2026 05:09:45 +0000 (GMT) Received: by sjc-ads-2020.cisco.com (Postfix, from userid 1887505) id D137ACC51C1; Mon, 23 Nov 2026 21:09:42 -0800 (PST) From: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" To: openembedded-devel@lists.openembedded.org Subject: [meta-python][scarthgap][PATCH 10/12] python3-virtualenv: fix CVE-2026-113719 Date: Mon, 23 Nov 2026 21:09:40 -0800 Message-Id: <20261124050942.1795310-11-hthakar@cisco.com> X-Mailer: git-send-email 2.35.6 In-Reply-To: <20261124050942.1795310-1-hthakar@cisco.com> References: <20261124050942.1795310-1-hthakar@cisco.com> MIME-Version: 1.0 X-Outbound-Client-TLS: VERIFIED;sjc-ads-2020.cisco.com [171.70.61.208];TLSv1.3;TLS_AES_256_GCM_SHA384;256;ciscoit-managed-infra-smtp-auth.cisco.com X-Outbound-SMTP-Client: 171.70.61.208, sjc-ads-2020.cisco.com X-Outbound-Node: aer-l-core-03.cisco.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 05:09:54 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132919 From: Hetvi Thakar This patch applies the upstream fix as referenced in [2], using the commit shown in [1]. Adapt metadata cleanup to virtualenv 20.25.3 and keep deletion within the environment while preserving metadata parent directories. [1] https://github.com/pypa/virtualenv/commit/e3cea6fa10a50fa29cf1fdddd772458fba076d5f [2] https://github.com/pypa/virtualenv/security/advisories/GHSA-hhxq-47xx-j5xx Signed-off-by: Hetvi Thakar --- .../python3-virtualenv/CVE-2026-113719.patch | 141 ++++++++++++++++++ .../python/python3-virtualenv_20.25.3.bb | 1 + 2 files changed, 142 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113719.patch diff --git a/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113719.patch b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113719.patch new file mode 100644 index 0000000000..646679ddfa --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113719.patch @@ -0,0 +1,141 @@ +From e3cea6fa10a50fa29cf1fdddd772458fba076d5f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= +Date: Sat, 17 Oct 2026 03:19:58 -0700 +Subject: [PATCH] From patchwork Tue Nov 24 05:09:41 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" X-Patchwork-Id: 105306 Received: from aer-iport-8.cisco.com (aer-iport-8.cisco.com [173.38.203.70]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.11968.1795496988177392376 for ; Mon, 23 Nov 2026 21:09:49 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: message contains an insecure body length tag" header.i=@cisco.com header.s=iport01 header.b=QPw6ZL9O; spf=pass (domain: cisco.com, ip: 173.38.203.70, mailfrom: hthakar@cisco.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=14465; q=dns/txt; s=iport01; t=1795496989; x=1796706589; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=uKEbtjvp09Mn4u4mJ7tcqJAzNzExbn7lJLV3mgMzw/8=; b=QPw6ZL9OQ6z9WT4Qxz+m6GhMnTSuSNlTVOu/7WuksjEB0DW06X7idg43 AbDgTd1yqNoHV/lWdR1enFNaIa7r/TU006PRtJ/xJ6lL5cQji8CGtxTAh EExJBtWU9X1p6RTtMN8u0UnWDq2Jxa/nbmRoZyihFZK29WF3OwOhBfIg3 D7W2nDiXluyKMgQGEI/W3NfihBjILBsOanZCtONZaUyw745yNAQY6PX40 ggJxVHVNpercZIHHcz0in6/ha9B2Rc9alvk6HTITB220JfppxMuwr8Al6 VaZMYJ5YCrJO5nGxRNf9dPZxOcsgbbprkjph2QKzeex03tGRrE4SWHRUg Q==; X-CSE-ConnectionGUID: 6sgH02eCSA29CV+dmLXjig== X-CSE-MsgGUID: Kyh/LlYkRga4AE21sVLfSw== X-IPAS-Result: A0BrAgBXGwVr/9BK/pBaglmCV3VhQkkDhFSPU4IhA4ETggmISoVqjFkUgQcDYA8BAQEPRA0EAQGEP0YCjiICJjQJDgECBAMCAwEBAQEBAQEBAQEBAQoBAQUBAQECAQcFgQ4Thk8NkBIBAgEDIwQLARgBPQkTAwECAwImAgIgCx0BBQgQCYMCAYI6AzcCAREGn2KbJHp/M4EBgykBMQWBHthMDYJaAQsUAYEKLoVCgwAgAYUDXRgBhH0nGxuBcoEVgReBXXaBBYEaQgIBAYFEg3aCagSCInoSgVSNFwKBT4hJSIECHANZLAFVEw0KCwcFgWgDNRIqFW4yHYEjOxcvWBsGBYEcgR6BEoEDXYEr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rOrdr: A9a23:oB+6KqgoEyrncJNUiBMxdY/jNXBQXvgji2hC6mlwRA09TyX+rb HIoB17726RtN9/Yh8dcLy7VZVoBEmslqKdgrNhWItKIjOGhILAFugLhuHfKn/bak/DH4Vmup uIHZITNDSJNzhHpPe/xhWkGNA9x9TC2qWpieDCi0pJd2hRGsddB8MTMHfiLqWwLzM2fKYEKA == X-Talos-CUID: 9a23:Bf8oCGF3RHXPkMtKqmI570E0QpooWUb0lib7HQy0DEJZSryaHAo= X-Talos-MUID: 9a23:RxktiAS43xRSCTpSRXTPlTElEMNZ4J6hARwkvM9foPegOxdvbmI= X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.27,229,1787011200"; d="scan'208";a="60147495" Received: from aer-l-core-07.cisco.com ([144.254.74.208]) by aer-iport-8.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 24 Nov 2026 05:09:46 +0000 Received: from sjc-ads-2020.cisco.com (sjc-ads-2020.cisco.com [171.70.61.208]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ciscoit-managed-infra-smtp-auth.cisco.com", Issuer "Internal Private TLS SubCA" (verified OK)) by aer-l-core-07.cisco.com (Postfix) with ESMTPS id 9173218000242 for ; Tue, 24 Nov 2026 05:09:45 +0000 (GMT) Received: by sjc-ads-2020.cisco.com (Postfix, from userid 1887505) id D7616CC51C2; Mon, 23 Nov 2026 21:09:42 -0800 (PST) From: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" To: openembedded-devel@lists.openembedded.org Subject: [meta-python][scarthgap][PATCH 11/12] python3-virtualenv: fix CVE-2026-113721 Date: Mon, 23 Nov 2026 21:09:41 -0800 Message-Id: <20261124050942.1795310-12-hthakar@cisco.com> X-Mailer: git-send-email 2.35.6 In-Reply-To: <20261124050942.1795310-1-hthakar@cisco.com> References: <20261124050942.1795310-1-hthakar@cisco.com> MIME-Version: 1.0 X-Outbound-Client-TLS: VERIFIED;sjc-ads-2020.cisco.com [171.70.61.208];TLSv1.3;TLS_AES_256_GCM_SHA384;256;ciscoit-managed-infra-smtp-auth.cisco.com X-Outbound-SMTP-Client: 171.70.61.208, sjc-ads-2020.cisco.com X-Outbound-Node: aer-l-core-07.cisco.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 05:09:54 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132914 From: Hetvi Thakar This patch applies the upstream fix as referenced in [2], using the commit shown in [1]. Reuse the existing directory helper and backport exclusive generated-file writes and final-entry link replacement to virtualenv 20.25.3. [1] https://github.com/pypa/virtualenv/commit/d25f28699eefb1fc34a251e5adf2b5de844c36cd [2] https://github.com/pypa/virtualenv/security/advisories/GHSA-558c-9hv2-4prj Signed-off-by: Hetvi Thakar --- .../python3-virtualenv/CVE-2026-113721.patch | 294 ++++++++++++++++++ .../python/python3-virtualenv_20.25.3.bb | 1 + 2 files changed, 295 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113721.patch diff --git a/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113721.patch b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113721.patch new file mode 100644 index 0000000000..0456066cbe --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113721.patch @@ -0,0 +1,294 @@ +From d25f28699eefb1fc34a251e5adf2b5de844c36cd Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= +Date: Sat, 17 Oct 2026 03:25:09 -0700 +Subject: [PATCH] From patchwork Tue Nov 24 05:09:42 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" X-Patchwork-Id: 105307 Received: from aer-iport-6.cisco.com (aer-iport-6.cisco.com [173.38.203.68]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.11752.1795496988276601818 for ; Mon, 23 Nov 2026 21:09:49 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: message contains an insecure body length tag" header.i=@cisco.com header.s=iport01 header.b=g03GvipL; spf=pass (domain: cisco.com, ip: 173.38.203.68, mailfrom: hthakar@cisco.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=14004; q=dns/txt; s=iport01; t=1795496989; x=1796706589; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=b1COx5h4CA3w0xTEkqCQkkPV7OxSsH3i7w9jJRplATM=; b=g03GvipLrSPFLOrFaBwpIEP3qlamVnMVP+9qpdsTfsU3tXR/JRHu3vnz k26XuFwJkEnbX3/nVnPGzI3U9J/7CFwM8ZXv5oktRxkxmI4tISapfrwW0 otySSD0Dxbt7f2FSWNuH8uISXB5BNqp1/R6ypGoOz2qlEzW69g0pglgjA ZdpOhH/ofPmppCa3xpE2Agy69jLhSH8IlPFDZiGYlypu7nOghhYLjF7Jl xONozXHLwSaAaZTeQW9KwZOBFZl76rWoq4NEz4tGQ14bYLcC3cJZ8Tt7r goojFaPiHZ2XPsyc2GKsq+hhmtMPaZ4xdIuNfVE+bOX1Yc4/cWkDJDA2a w==; X-CSE-ConnectionGUID: lMQl8eFxTpmIpWzL2G4ofw== X-CSE-MsgGUID: AswWtJ9/QZSWA7kbAAi5LA== X-IPAS-Result: A0AaAAADGgVr/89K/pBaHAEBAQEBAQcBARIBAQQEAQGBfAcBAQsBglZ1YUJJA4RUiBuHOIIhA4tmkkOBGwNgDwEBAQ9EDQQBAYQ/RgKOIgImNAkOAQIEAwIDAQEBAQEBAQEBAQEBCgEBBQ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gjeWwboC9ltqibN5KoVq69 yX/zV/GK04ZPvW2yGeh2yf57gPItWahMG4IL5W/7vNsjViZy2AfBRFTWValrP2Rjk+lR8kZL FQZ/Ccrp6U++EGnCN7nUHWFTGWstxMGHt4VGOog5UTVlOzf4h2SAS4PSTsphMEaifLajAcCj jeh9+4FzxQ12FFJYRpxLoupkA4= IronPort-HdrOrdr: A9a23:ErCqDKH5EZ4p5/tbpLqEyseALOsnbusQ8zAXPidKOHtom62j5q STdZsguyMc5Ax9ZJhko6HiBEDiewK4yXcK2+gs1N6ZNWGM0ldAbrsSj7cKqAeOJ8SRzIJgPN 9bE5RWOZnXEUVwi9r87U2TFtYtx8TCzYWT7N2uqUuEiWpRGtldB8ATMHfjLnFL X-Talos-CUID: 9a23:ir4LkG42dLS3OZrEVtss8GstHpAoXG3h1HLxO3CqLTxGFLqbVgrF X-Talos-MUID: 9a23:CQFPpguyMeFKdwItNM2nrSp9C9tKsuOXOnsyuMoFseCtNHFUEmLI X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.27,229,1787011200"; d="scan'208";a="59955562" Received: from aer-l-core-06.cisco.com ([144.254.74.207]) by aer-iport-6.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 24 Nov 2026 05:09:46 +0000 Received: from sjc-ads-2020.cisco.com (sjc-ads-2020.cisco.com [171.70.61.208]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ciscoit-managed-infra-smtp-auth.cisco.com", Issuer "Internal Private TLS SubCA" (verified OK)) by aer-l-core-06.cisco.com (Postfix) with ESMTPS id 968F318000486 for ; Tue, 24 Nov 2026 05:09:45 +0000 (GMT) Received: by sjc-ads-2020.cisco.com (Postfix, from userid 1887505) id DCBFACC51C3; Mon, 23 Nov 2026 21:09:42 -0800 (PST) From: "Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)" To: openembedded-devel@lists.openembedded.org Subject: [meta-python][scarthgap][PATCH 12/12] python3-virtualenv: fix CVE-2026-113722 Date: Mon, 23 Nov 2026 21:09:42 -0800 Message-Id: <20261124050942.1795310-13-hthakar@cisco.com> X-Mailer: git-send-email 2.35.6 In-Reply-To: <20261124050942.1795310-1-hthakar@cisco.com> References: <20261124050942.1795310-1-hthakar@cisco.com> MIME-Version: 1.0 X-Outbound-Client-TLS: VERIFIED;sjc-ads-2020.cisco.com [171.70.61.208];TLSv1.3;TLS_AES_256_GCM_SHA384;256;ciscoit-managed-infra-smtp-auth.cisco.com X-Outbound-SMTP-Client: 171.70.61.208, sjc-ads-2020.cisco.com X-Outbound-Node: aer-l-core-06.cisco.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 05:09:54 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132915 From: Hetvi Thakar This patch applies the upstream fix as referenced in [2], using the commit shown in [1]. Adapt launcher generation and pip-seeder repair to virtualenv 20.25.3. Include the safe RECORD-writing correction from [3], using the helper provided by the CVE-2026-113721 backport. [1] https://github.com/pypa/virtualenv/commit/2519941bed33ee0d3ac99277f67913e439e476a9 [2] https://github.com/pypa/virtualenv/security/advisories/GHSA-c978-59m8-c77v [3] https://github.com/pypa/virtualenv/commit/3598e201f6f044e389136b2347a8a919ac03c5f4 Package each additional upstream prerequisite or correction in its own embedded patch with its own upstream metadata. Signed-off-by: Hetvi Thakar --- .../python3-virtualenv/CVE-2026-113722.patch | 207 ++++++++++++++++++ .../seed-record-exclusive-write.patch | 48 ++++ .../python/python3-virtualenv_20.25.3.bb | 2 + 3 files changed, 257 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113722.patch create mode 100644 meta-python/recipes-devtools/python/python3-virtualenv/seed-record-exclusive-write.patch diff --git a/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113722.patch b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113722.patch new file mode 100644 index 0000000000..b70f63a60c --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-virtualenv/CVE-2026-113722.patch @@ -0,0 +1,207 @@ +From 2519941bed33ee0d3ac99277f67913e439e476a9 Mon Sep 17 00:00:00 2001 +From: Bernát Gábor +Date: Sat, 17 Oct 2026 03:41:16 -0700 +Subject: [PATCH]