Skip to content

Commit 2027439

Browse files
authored
CVE-2023-5752 pip installation (#188)
Installs necessary minimum version of pip upstream in the docker build
1 parent 2ac0de1 commit 2027439

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

docker/Dockerfile.base

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ RUN apt update && \
4646
man \
4747
--no-install-recommends tzdata \
4848
patchelf \
49-
python3-pip \
49+
# Workaround for CVE-2023-5752 will install upstream pip as user
50+
# python3-pip \
5051
software-properties-common \
5152
sudo \
5253
unzip \

docker/Dockerfile.toolkit

+13
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,19 @@ RUN chown -R $UNAME:$UNAME $HOME/he-toolkit
2626
# Switch user to $UNAME
2727
USER $UNAME
2828

29+
###################################################
30+
# CVE-2023-5752
31+
# Install upstream pip (version >=23.3.1) as user
32+
RUN mkdir -p $HOME/pip-install-package \
33+
$HOME/.local/bin \
34+
$HOME/.local/lib
35+
WORKDIR $HOME/pip-install-package
36+
RUN wget https://bootstrap.pypa.io/get-pip.py && \
37+
python get-pip.py && \
38+
source $HOME/.profile && \
39+
pip install pip --upgrade
40+
###################################################
41+
2942
# Change directories to $HOME/Intel-HE-Toolkit
3043
WORKDIR $HOME/he-toolkit
3144

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pip~=22.0.0
1+
pip~=23.3.1
22
numpy~=1.22.0
33
urllib3~=1.26.6
44
scikit-learn~=1.1.1

0 commit comments

Comments
 (0)