Skip to content

Commit 3396a94

Browse files
authored
Patch PyTorch 2.9 training images (#5620)
* Patch PyTorch 2.9 training images
1 parent 70cb645 commit 3396a94

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

pytorch/training/docker/2.9/py3/Dockerfile.cpu

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,14 +186,16 @@ RUN pip install --no-cache-dir \
186186
"idna>=3.7" \
187187
"tqdm>=4.66.3" \
188188
"requests>=2.32.0" \
189-
"setuptools>=70.0.0" \
189+
"setuptools>=80.10.1" \
190190
"urllib3>=2.5.0" \
191191
"awscli" \
192192
opencv-python==4.11.0.86 \
193193
mpi4py \
194194
jinja2>=3.1.6 \
195195
tornado>=6.5.1 \
196-
"filelock>=3.20.1"
196+
"filelock>=3.20.1" \
197+
pytz \
198+
tzdata
197199

198200
# Install PyTorch
199201
RUN pip install --no-cache-dir -U torch==${PYTORCH_VERSION} \
@@ -283,7 +285,7 @@ WORKDIR /
283285
# Install SM packages
284286
RUN pip install --no-cache-dir -U \
285287
smclarify \
286-
"sagemaker==2.254.1" \
288+
"sagemaker>=2.254.1,<3" \
287289
sagemaker-experiments \
288290
sagemaker-pytorch-training \
289291
sagemaker-training
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"85151": "[pkg: protobuf] advisory='Affected versions of the protobuf package are vulnerable to Denial of Service (DoS) due to missing recursion depth accounting that allows the max_recursion_depth limit to be bypassed. The google.protobuf.json_format.ParseDict() parser fails to increment or enforce max_recursion_depth when traversing nested google.protobuf.Any messages in its internal Any-handling logic, allowing attacker-controlled JSON to recurse far deeper than intended.', reason_to_ignore='N/A', spec='<=6.33.4'"
3+
}

pytorch/training/docker/2.9/py3/cu130/Dockerfile.gpu

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,16 @@ RUN pip install --no-cache-dir \
105105
"idna>=3.7" \
106106
"tqdm>=4.66.3" \
107107
"requests>=2.32.0" \
108-
"setuptools>=70.0.0" \
108+
"setuptools>=80.10.1" \
109109
"urllib3>=2.5.0" \
110110
ninja \
111111
opencv-python==4.11.0.86 \
112112
mpi4py \
113113
jinja2>=3.1.6 \
114114
tornado>=6.5.1 \
115-
"filelock>=3.20.1"
115+
"filelock>=3.20.1" \
116+
pytz \
117+
tzdata
116118

117119
# Install PyTorch
118120
RUN pip install --no-cache-dir -U torch==${PYTORCH_VERSION} \
@@ -250,7 +252,7 @@ WORKDIR /
250252
# Install SM packages
251253
RUN pip install --no-cache-dir -U \
252254
smclarify \
253-
"sagemaker==2.254.1" \
255+
"sagemaker>=2.254.1,<3" \
254256
sagemaker-experiments \
255257
sagemaker-pytorch-training \
256258
sagemaker-training
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"85151": "[pkg: protobuf] advisory='Affected versions of the protobuf package are vulnerable to Denial of Service (DoS) due to missing recursion depth accounting that allows the max_recursion_depth limit to be bypassed. The google.protobuf.json_format.ParseDict() parser fails to increment or enforce max_recursion_depth when traversing nested google.protobuf.Any messages in its internal Any-handling logic, allowing attacker-controlled JSON to recurse far deeper than intended.', reason_to_ignore='N/A', spec='<=6.33.4'"
3+
}

0 commit comments

Comments
 (0)