Skip to content

Commit 8edb120

Browse files
[anaconda] Update tornado package due to CVE-2023-28370 (#593)
- Update Dockerfile to install the latest tornado package version; - Added test to verify tornado minimum version; - Updated manifest to include info about the tornado package;
1 parent 7b95b63 commit 8edb120

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

src/anaconda/.devcontainer/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ RUN python3 -m pip install \
5959
# https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32862
6060
nbconvert \
6161
# https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-32681
62-
requests
62+
requests \
63+
# https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-28370
64+
tornado
6365

6466
# Copy environment.yml (if found) to a temp location so we can update the environment. Also
6567
# copy "noop.txt" so the COPY instruction does not fail if no environment.yml exists.

src/anaconda/manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"py",
3838
"pyOpenssl",
3939
"werkzeug",
40-
"requests"
40+
"requests",
41+
"tornado"
4142
],
4243
"other": {
4344
"git": {},

src/anaconda/test-project/test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ checkPythonPackageVersion "werkzeug" "2.2.3"
4242
checkPythonPackageVersion "certifi" "2022.12.07"
4343
checkPythonPackageVersion "requests" "2.31.0"
4444

45+
# The `tornado` package doesn't have the `__version__` attribute so we can use the `version` attribute.
46+
tornado_version=$(python -c "import tornado; print(tornado.version)")
47+
check-version-ge "tornado-requirement" "${tornado_version}" "6.3.2"
48+
4549
check "conda-update-conda" bash -c "conda update -y conda"
4650
check "conda-install" bash -c "conda install -c conda-forge --yes tensorflow"
4751
check "conda-install" bash -c "conda install -c conda-forge --yes pytorch"

0 commit comments

Comments
 (0)