Skip to content

Commit e10c1e5

Browse files
Anaconda: Update 'mistune' python package due CVE-2022-34749 (#247)
* Anaconda: Patch * Patch * cyprography patch * Update link * Anaconda: Update 'mistune' python package due CVE-2022-34749
1 parent 0e0206c commit e10c1e5

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

src/anaconda/.devcontainer/Dockerfile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
5252
&& usermod -aG conda ${USERNAME} \
5353
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts/add-notice.sh
5454

55-
# Temporary: Upgrade 'joblib' due to https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-21797
56-
# 'joblib' is installed by the base image (continuumio/anaconda3) which does not have the patch.
57-
RUN python3 -m pip install --upgrade joblib
58-
59-
# Temporary: Upgrade 'cookiecutter' due to https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24065
60-
# 'cookiecutter' is installed by the base image (continuumio/anaconda3) which does not have the patch.
61-
RUN python3 -m pip install --upgrade cookiecutter
62-
63-
# Temporary: Upgrade 'cryptography' due to https://github.com/advisories/GHSA-39hc-v87j-747x
64-
# 'cryptography' is installed by the base image (continuumio/anaconda3) which does not have the patch.
65-
RUN python3 -m pip install --upgrade cryptography
55+
# Temporary: Upgrade python packages due to mentioned CVEs
56+
# They are installed by the base image (continuumio/anaconda3) which does not have the patch.
57+
RUN python3 -m pip install \
58+
# https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-21797
59+
--upgrade joblib \
60+
# https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24065
61+
cookiecutter \
62+
# https://github.com/advisories/GHSA-39hc-v87j-747x
63+
cryptography \
64+
# https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-34749
65+
mistune
6666

6767
# Copy environment.yml (if found) to a temp locaition so we update the environment. Also
6868
# 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
@@ -26,7 +26,8 @@
2626
"pip": [
2727
"joblib",
2828
"cookiecutter",
29-
"cryptography"
29+
"cryptography",
30+
"mistune"
3031
],
3132
"other": {
3233
"conda": {

src/anaconda/test-project/test.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,19 @@ check "pycodestyle" pycodestyle --version
1818
check "nvm" bash -c ". /usr/local/share/nvm/nvm.sh && nvm --version"
1919

2020
git_version=$(git --version)
21-
check "git" bash -c "echo ${git_version}"
2221
check-version-ge "git-requirement" "${git_version}" "git version 2.38.1"
2322

2423
joblib_version=$(python -c "import joblib; print(joblib.__version__)")
25-
check "joblib" bash -c "echo ${joblib_version}"
2624
check-version-ge "joblib-requirement" "${joblib_version}" "1.2.0"
2725

2826
cookiecutter_version=$(python -c "import cookiecutter; print(cookiecutter.__version__)")
29-
check "cookiecutter" bash -c "echo ${cookiecutter}"
3027
check-version-ge "cookiecutter-requirement" "${cookiecutter_version}" "2.1.1"
3128

3229
cryptography_version=$(python -c "import cryptography; print(cryptography.__version__)")
33-
check "cryptography" bash -c "echo ${cryptography}"
3430
check-version-ge "cryptography-requirement" "${cryptography_version}" "38.0.3"
3531

32+
mistune_version=$(python -c "import mistune; print(mistune.__version__)")
33+
check-version-ge "mistune-requirement" "${mistune_version}" "2.0.3"
34+
3635
# Report result
3736
reportResults

0 commit comments

Comments
 (0)