Skip to content

Commit f112bdd

Browse files
KeijiBranshiclaude
andcommitted
fix: bump colab base to 20260716 to remediate image-scanning CVEs
Bumps the Colab base image from release-colab-external-images_20260514-060047_RC00 to release-colab-external-images_20260716-060051_RC00, which clears 20 of the 32 P1 image-scanning CVEs blocking b/548519812. The bump alone resolves: - All GO_STDLIB findings. Every Go binary in the image is now built with go1.26.0 or newer (git-lfs, fzf, gcloud-crc32c, gh, wandb-core). - go-billy 5.8.0 -> 5.9.0 (wandb-core), rsync .22.04.4 -> .22.04.6, litellm 1.82.4 -> 1.85.7, langsmith 0.7.34 -> 0.10.2, pyjwt 2.12.1 -> 2.13.0, gradio 5.50 -> 6.20.0, python-multipart 0.0.26 -> 0.0.32, gitpython 3.1.47 -> 3.1.51. Also stops `apt-get install -y git-lfs`. The base image ships a working git-lfs 3.7.1 built with go1.26.0, but Ubuntu's git-lfs 3.0.2 package was overwriting it with a go1.18.1 build, which is what the GO_STDLIB scanners were actually flagging. Without this the base bump would not have fixed those findings. Pins pillow>=12.2 (b/541575345) and urllib3>=2.7 (b/541071828); the new base still ships pillow 11.3 and urllib3 2.5. Both resolve cleanly with no conflicts. torchcodec is bumped 0.10.0 -> 0.11.0 because the new base ships torch 2.11, and torchcodec must stay compatible with the torch version. Remaining open, all base/upstream-owned with no clean fix from this Dockerfile: npm minimatch/tar (bundled in node v20.19.0), netty 4.1.118.Final, zookeeper 3.9.3 and jackson-core 2.12.7 shaded in hadoop-client-runtime (pyspark 4.0.3 jars), and jupyterlab 3.6.8 (capped by our jupyter-lsp==1.5.1 pin, b/276358430). Both CPU and GPU images build clean with --no-cache. Test suite not yet run. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 78aaa43 commit f112bdd

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

Dockerfile.tmpl

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{ if eq .Accelerator "gpu" }}
2-
FROM us-docker.pkg.dev/colab-images/public/runtime:release-colab-external-images_20260514-060047_RC00
2+
FROM us-docker.pkg.dev/colab-images/public/runtime:release-colab-external-images_20260716-060051_RC00
33
{{ else }}
4-
FROM us-docker.pkg.dev/colab-images/public/cpu-runtime:release-colab-external-images_20260514-060047_RC00
4+
FROM us-docker.pkg.dev/colab-images/public/cpu-runtime:release-colab-external-images_20260716-060051_RC00
55
{{ end}}
66

77
ADD kaggle_requirements.txt /kaggle_requirements.txt
@@ -82,9 +82,12 @@ RUN mkdir -p /usr/share/nltk_data && \
8282
twitter_samples udhr2 udhr unicode_samples universal_tagset universal_treebanks_v20 \
8383
vader_lexicon verbnet webtext word2vec_sample wordnet wordnet_ic words ycoe
8484

85-
RUN apt-get install -y git-lfs && \
86-
# vtk dependencies
87-
apt-get install -y libgl1-mesa-glx && \
85+
# b/541577154 and related: don't `apt-get install git-lfs` here. The base image
86+
# already ships git-lfs 3.7.1 built with a current Go toolchain, and Ubuntu's
87+
# git-lfs 3.0.2 package overwrites it with a go1.18.1 build that trips the
88+
# GO_STDLIB image scanners.
89+
# vtk dependencies
90+
RUN apt-get install -y libgl1-mesa-glx && \
8891
# xvfbwrapper dependencies
8992
apt-get install -y xvfb && \
9093
/tmp/clean-layer.sh

kaggle_requirements.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ papermill
100100
path
101101
path.py
102102
pdf2image
103+
# b/541575345: CVE-2026-40192. The Colab base image ships pillow 11.3; pin up to
104+
# a patched release. Remove once the base image ships >=12.2 itself.
105+
pillow>=12.2
103106
plotly-express
104107
pudb
105108
pyLDAvis
@@ -127,11 +130,14 @@ git+https://github.com/facebookresearch/segment-anything.git
127130
squarify
128131
tensorflow-io
129132
# Must be compatible with torch version: https://github.com/meta-pytorch/torchcodec?tab=readme-ov-file#installing-torchcodec
130-
torchcodec==0.10.0
133+
torchcodec==0.11.0
131134
torchinfo
132135
torchmetrics
133136
torchtune
134137
transformers>=5.0.0
138+
# b/541071828: CVE-2026-44431. The Colab base image ships urllib3 2.5; pin up to
139+
# a patched release. Remove once the base image ships >=2.7 itself.
140+
urllib3>=2.7
135141
vtk
136142
wavio
137143
xvfbwrapper

0 commit comments

Comments
 (0)