Skip to content

Commit 7784105

Browse files
authored
[pytorch] [build] [training] [ec2, sagemaker] Onboard PT2.6 to autopatch (#4953)
Onboard PT2.6 to autopatch and allowlist CVE 77740 due to sagemaker_training dependency requirement of protobuf being >=3.9.2,<=3.20.3
1 parent c934835 commit 7784105

8 files changed

+12
-6
lines changed

pytorch/training/buildspec-2-6-ec2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ framework: &FRAMEWORK pytorch
55
version: &VERSION 2.6.0
66
short_version: &SHORT_VERSION "2.6"
77
arch_type: x86
8-
# autopatch_build: "True"
8+
autopatch_build: "True"
99

1010
repository_info:
1111
training_repository: &TRAINING_REPOSITORY

pytorch/training/buildspec-2-6-sm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ framework: &FRAMEWORK pytorch
55
version: &VERSION 2.6.0
66
short_version: &SHORT_VERSION "2.6"
77
arch_type: x86
8-
# autopatch_build: "True"
8+
autopatch_build: "True"
99

1010
repository_info:
1111
training_repository: &TRAINING_REPOSITORY

pytorch/training/docker/2.6/py3/Dockerfile.ec2.cpu.core_packages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"version_specifier": ">=70.0.0"
4444
},
4545
"urllib3": {
46-
"version_specifier": "<2"
46+
"version_specifier": ">=2.5.0"
4747
},
4848
"awscli": {
4949
"version_specifier": "<2"

pytorch/training/docker/2.6/py3/Dockerfile.sagemaker.cpu.core_packages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"version_specifier": ">=70.0.0"
4444
},
4545
"urllib3": {
46-
"version_specifier": "<2"
46+
"version_specifier": ">=2.5.0"
4747
},
4848
"awscli": {
4949
"version_specifier": "<2"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"77740": "Affected versions of this package are vulnerable to a potential Denial of Service (DoS) attack due to unbounded recursion when parsing untrusted Protocol Buffers data. The pure-Python implementation fails to enforce recursion depth limits when processing recursive groups, recursive messages, or a series of SGROUP tags, leading to stack overflow conditions that can crash the application by exceeding Python's recursion limit."
3+
}

pytorch/training/docker/2.6/py3/cu126/Dockerfile.ec2.gpu.core_packages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"version_specifier": ">=70.0.0"
4848
},
4949
"urllib3": {
50-
"version_specifier": "<2"
50+
"version_specifier": ">=2.5.0"
5151
},
5252
"awscli": {
5353
"version_specifier": "<2"

pytorch/training/docker/2.6/py3/cu126/Dockerfile.sagemaker.gpu.core_packages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"version_specifier": ">=70.0.0"
4848
},
4949
"urllib3": {
50-
"version_specifier": "<2"
50+
"version_specifier": ">=2.5.0"
5151
},
5252
"awscli": {
5353
"version_specifier": "<2"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"77740": "Affected versions of this package are vulnerable to a potential Denial of Service (DoS) attack due to unbounded recursion when parsing untrusted Protocol Buffers data. The pure-Python implementation fails to enforce recursion depth limits when processing recursive groups, recursive messages, or a series of SGROUP tags, leading to stack overflow conditions that can crash the application by exceeding Python's recursion limit."
3+
}

0 commit comments

Comments
 (0)