Skip to content

Commit e81718b

Browse files
sireeshajonnalagaddaabdurriqCopilot
authored
[anaconda]-Fix for vulnerability issue CVE-2024-52338 and CVE-2025-6176 (#1742)
* Update vulnerable package versions in security patch script and manifest * Add 'brotli' to the list of packages that should always pin to the required version * bumping up the manifest version * Remove 'protobuf' from the list of packages that should always pin to the required version * Apply suggestion from @Copilot Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Abdurrahmaan Iqbal <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 02294e7 commit e81718b

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/anaconda/.devcontainer/apply_security_patches.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# werkzeug - [GHSA-f9vj-2wh5-fj8j]
55

66
vulnerable_packages=( "mistune=3.0.1" "aiohttp=3.10.11" "cryptography=44.0.1" "h11=0.16.0" "jinja2=3.1.6" "jupyter_core=5.8.1" "protobuf=5.29.5" "requests=2.32.4" "setuptools=78.1.1" "transformers=4.53.0" "urllib3=2.5.0" "Werkzeug=3.0.6" "jupyter-lsp=2.2.2" "scrapy=2.11.2" \
7-
"zipp=3.19.1" "tornado=6.4.2" "jupyterlab=4.4.8" "imagecodecs=2024.9.22" "fonttools=4.60.2")
7+
"zipp=3.19.1" "tornado=6.4.2" "jupyterlab=4.4.8" "imagecodecs=2024.9.22" "fonttools=4.60.2" "pyarrow=17.0.0" "brotli=1.2.0" )
88

99
# Define the number of rows (based on the length of vulnerable_packages)
1010
rows=${#vulnerable_packages[@]}
@@ -26,7 +26,7 @@ done
2626

2727
# Add an array for packages that should always pin to the provided version,
2828
# even if higher version is available in conda channel
29-
pin_to_required_version=("protobuf" "transformers" "imagecodecs")
29+
pin_to_required_version=("transformers" "imagecodecs" "brotli")
3030

3131
# Function to check if a package is in the pin_to_required_version array
3232
function is_pin_to_required_version() {

src/anaconda/test-project/test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ checkPythonPackageVersion "mpmath" "1.3.0"
4747
checkPythonPackageVersion "aiohttp" "3.10.2"
4848
checkPythonPackageVersion "tornado" "6.4.2"
4949
checkPythonPackageVersion "jupyter_server" "2.14.1"
50-
checkPythonPackageVersion "pyarrow" "14.0.1"
50+
checkPythonPackageVersion "pyarrow" "17.0.0"
5151
checkPythonPackageVersion "pillow" "10.3.0"
5252
checkPythonPackageVersion "jupyterlab" "4.4.8"
5353
checkPythonPackageVersion "notebook" "7.2.2"
@@ -60,14 +60,15 @@ checkPythonPackageVersion "requests" "2.32.4"
6060
checkPythonPackageVersion "scikit-learn" "1.5.0"
6161
checkPythonPackageVersion "zipp" "3.19.1"
6262
checkPythonPackageVersion "imagecodecs" "2023.9.18"
63+
checkPythonPackageVersion "brotli" "1.2.0"
6364
checkPythonPackageVersion "fonttools" "4.60.2"
6465

6566
checkCondaPackageVersion "pyopenssl" "24.2.1"
6667
checkCondaPackageVersion "requests" "2.32.4"
6768
checkCondaPackageVersion "pygments" "2.15.1"
6869
checkCondaPackageVersion "mpmath" "1.3.0"
6970
checkCondaPackageVersion "urllib3" "2.5.0"
70-
checkCondaPackageVersion "pyarrow" "14.0.1"
71+
checkCondaPackageVersion "pyarrow" "17.0.0"
7172
checkCondaPackageVersion "pydantic" "2.5.3"
7273
checkCondaPackageVersion "tqdm" "4.66.4"
7374
checkCondaPackageVersion "black" "24.4.2"

0 commit comments

Comments
 (0)