Skip to content

Commit e1eb9f1

Browse files
committed
Patch anthoscli CVEs and upgrade to v1.9.3
1 parent 9dc45e4 commit e1eb9f1

4 files changed

Lines changed: 20 additions & 4 deletions

File tree

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM alpine AS text-embeddings-inference
22

33
RUN mkdir -p /text-embeddings-inference
4-
ADD https://github.com/huggingface/text-embeddings-inference/archive/refs/tags/v1.9.2.tar.gz /text-embeddings-inference/sources.tar.gz
4+
ADD https://github.com/huggingface/text-embeddings-inference/archive/refs/tags/v1.9.3.tar.gz /text-embeddings-inference/sources.tar.gz
55
RUN tar -C /text-embeddings-inference -xf /text-embeddings-inference/sources.tar.gz --strip-components=1
66

77
FROM lukemathwalker/cargo-chef:latest-rust-1.92-bookworm AS chef
@@ -94,6 +94,14 @@ RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.
9494
apt-get clean autoremove --yes && \
9595
rm -rf /var/lib/{apt,dpkg,cache,log}
9696

97-
COPY --chmod=775 containers/tei/cpu/1.9.2/entrypoint.sh entrypoint.sh
97+
# NOTE: anthoscli is not required for the intended use of gcloud SDK within this
98+
# context, hence we're safe to remove it, preventing the following CVEs:
99+
# - CVE-2025-68121
100+
# - CVE-2026-27143
101+
# - CVE-2026-33186
102+
# Which are originated due to the bundled Go version in the pre-compiled anthoscli
103+
RUN rm -rf /usr/lib/google-cloud-sdk/bin/anthoscli
104+
105+
COPY --chmod=775 containers/tei/cpu/1.9.3/entrypoint.sh entrypoint.sh
98106
ENTRYPOINT ["./entrypoint.sh"]
99107
CMD ["--json-output"]
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM alpine AS text-embeddings-inference
22

33
RUN mkdir -p /text-embeddings-inference
4-
ADD https://github.com/huggingface/text-embeddings-inference/archive/refs/tags/v1.9.2.tar.gz /text-embeddings-inference/sources.tar.gz
4+
ADD https://github.com/huggingface/text-embeddings-inference/archive/refs/tags/v1.9.3.tar.gz /text-embeddings-inference/sources.tar.gz
55
RUN tar -C /text-embeddings-inference -xf /text-embeddings-inference/sources.tar.gz --strip-components=1
66

77
FROM nvidia/cuda:12.9.1-devel-ubuntu24.04 AS base-builder
@@ -137,6 +137,14 @@ RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.
137137
apt-get clean autoremove --yes && \
138138
rm -rf /var/lib/{apt,dpkg,cache,log}
139139

140-
COPY --chmod=775 containers/tei/gpu/1.9.2/entrypoint.sh entrypoint.sh
140+
# NOTE: anthoscli is not required for the intended use of gcloud SDK within this
141+
# context, hence we're safe to remove it, preventing the following CVEs:
142+
# - CVE-2025-68121
143+
# - CVE-2026-27143
144+
# - CVE-2026-33186
145+
# Which are originated due to the bundled Go version in the pre-compiled anthoscli
146+
RUN rm -rf /usr/lib/google-cloud-sdk/bin/anthoscli
147+
148+
COPY --chmod=775 containers/tei/gpu/1.9.3/entrypoint.sh entrypoint.sh
141149
ENTRYPOINT ["./entrypoint.sh"]
142150
CMD ["--json-output"]

0 commit comments

Comments
 (0)