Skip to content

Commit fbe23c4

Browse files
committed
Update Python packages to handle CVEs.
1 parent 2999b70 commit fbe23c4

4 files changed

Lines changed: 13 additions & 12 deletions

File tree

ML-Frameworks/pytorch-aarch64/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ ENV PATH="/home/$DOCKER_USER/.venv/bin:${PATH}"
4242
# Install uv for quicker package installations
4343
RUN pip install uv==0.9.29
4444

45-
# Update to newer pip/setuptools/wheel (setuptools >= 70.0.0 due to CVE-2024-6345
46-
# and CVE-2025-47273, wheel >= 0.38.0 due to CVE-2022-40898) and delete old system
47-
# version (we essentially use apt:python3-pip to bootstrap pip)
48-
RUN uv pip install --upgrade pip~=25.2 setuptools~=78.1.1 wheel~=0.45.1
45+
# Update to newer pip/setuptools/wheel:
46+
# - setuptools >= 70.0.0 due to CVE-2024-6345 and CVE-2025-47273
47+
# - wheel >= 0.38.0 due to CVE-2022-40898 and >= 0.46.2 due to CVE-2026-24049
48+
RUN uv pip install --upgrade pip~=26.0 setuptools~=78.1.1 wheel~=0.46.2
4949

5050
# Install non-torch requirements
5151
COPY --chown=$DOCKER_USER:$DOCKER_USER requirements.txt .

ML-Frameworks/pytorch-aarch64/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright 2024, 2025 Arm Limited and affiliates.
1+
# SPDX-FileCopyrightText: Copyright 2024-2026 Arm Limited and affiliates.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

@@ -37,4 +37,4 @@ tqdm~=4.66.5
3737
transformers~=4.55.2 # >= 4.50.0 due to CVE-2025-2099
3838
typing_extensions~=4.12.2
3939
tzdata==2024.2
40-
urllib3~=2.2.3
40+
urllib3~=2.6.3 # >= 2.6.3 due to CVE-2026-21441

ML-Frameworks/tensorflow-aarch64/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright 2020-2025 Arm Limited and affiliates.
1+
# SPDX-FileCopyrightText: Copyright 2020-2026 Arm Limited and affiliates.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

@@ -82,10 +82,10 @@ RUN python -m venv /home/$DOCKER_USER/.venv
8282
# Make the venv python/pip first on PATH for all subsequent layers and at runtime
8383
ENV PATH="/home/$DOCKER_USER/.venv/bin:$PATH"
8484

85-
# Update to newer pip/setuptools/wheel (setuptools >= 70.0.0 due to CVE-2024-6345
86-
# and CVE-2025-47273, wheel >= 0.38.0 due to CVE-2022-40898) and delete old system
87-
# version (we essentially use apt:python3-pip to bootstrap pip)
88-
RUN pip install --upgrade pip~=25.2 setuptools~=78.1.1 wheel~=0.45.1
85+
# Update to newer pip/setuptools/wheel:
86+
# - setuptools >= 70.0.0 due to CVE-2024-6345 and CVE-2025-47273
87+
# - wheel >= 0.38.0 due to CVE-2022-40898 and >= 0.46.2 due to CVE-2026-24049
88+
RUN pip install --upgrade pip~=26.0 setuptools~=78.1.1 wheel~=0.46.2
8989

9090
# Check TENSORFLOW_WHEEL was set and copy
9191
RUN test -n "$TENSORFLOW_WHEEL"

ML-Frameworks/tensorflow-aarch64/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright 2025 Arm Limited and affiliates.
1+
# SPDX-FileCopyrightText: Copyright 2025, 2026 Arm Limited and affiliates.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

@@ -18,3 +18,4 @@ tokenizers~=0.21.0
1818
tqdm~=4.67.1
1919
transformers~=4.53.0
2020
tzdata==2025.1
21+
urllib3~=2.6.3 # >= 2.6.0 due to CVE-2025-66418 and CVE-2025-66471, and >= 2.6.3 due to CVE-2026-21441

0 commit comments

Comments
 (0)