Skip to content

Commit 3a72434

Browse files
[Python] - GitPython - Patch Vulnerability - GHSA-2mqj-m65w-jghx (#953)
* [Python] - GitPython - Patch Vulnerability - GHSA-2mqj-m65w-jghx * Update src/python/.devcontainer/Dockerfile * Update src/python/.devcontainer/Dockerfile --------- Co-authored-by: Samruddhi Khandale <[email protected]>
1 parent 073e654 commit 3a72434

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/python/.devcontainer/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
66
# Remove imagemagick due to https://security-tracker.debian.org/tracker/CVE-2019-10131
77
&& apt-get purge -y imagemagick imagemagick-6-common
88

9-
# Temporary: Upgrade python packages due to https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-40897
9+
# Temporary: Upgrade python packages due to https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-40897 and https://github.com/advisories/GHSA-2mqj-m65w-jghx
1010
# They are installed by the base image (python) which does not have the patch.
11-
RUN python3 -m pip install --upgrade setuptools
11+
RUN python3 -m pip install --upgrade \
12+
setuptools==69.0.3 \
13+
gitpython==3.1.41
1214

1315
# [Optional] If your pip requirements rarely change, uncomment this section to add them to the image.
1416
# COPY requirements.txt /tmp/pip-tmp/

src/python/test-project/test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,9 @@ check "usr-local-etc-config-does-not-exist" test ! -f "/usr/local/etc/gitconfig"
4242
setuptools_version=$(python -c "import setuptools; print(setuptools.__version__)")
4343
check-version-ge "setuptools-requirement" "${setuptools_version}" "65.5.1"
4444

45+
# https://github.com/advisories/GHSA-2mqj-m65w-jghx
46+
gitpython_version=$(python -c "import git; print(git.__version__)")
47+
check-version-ge "gitpython-requirement" "${gitpython_version}" "3.1.41"
48+
4549
# Report result
4650
reportResults

0 commit comments

Comments
 (0)