Skip to content

Commit f5bcb5a

Browse files
authored
chore: upgrade sandbox dependencies and fix vulnerabilities (NVIDIA#23)
* chore: upgrade Python to 3.13, openclaw to 2026.3.11, and fix transitive tar vulnerabilities - base: replace Ubuntu Noble's Python 3.12 with Python 3.13 from deadsnakes PPA - openclaw: pin [email protected] to fix GHSA-5wcw-8jjv-m286 (WebSocket hijacking) - nemoclaw: force-upgrade nested tar copies to 7.5.11 (GHSA-qffp-2rhf-9h96 et al.) * fix: pin @hono/[email protected] to fix authorization bypass (GHSA-wc8c-qw6v-h7f6) * chore: add openssh-sftp-server, procps, and [email protected] to base image Incorporates changes from PR NVIDIA#22: - openssh-sftp-server and procps are required for VS Code / Cursor remote SSH connections (SFTP file transfer, process inspection) - [email protected] in the base image fixes 6 CVEs at the earliest layer * fix: drop npm internal tar update that fails on missing @npmcli/docs npm's bundled node_modules cannot be safely updated via --prefix; the update resolves @npmcli/docs@^1.0.0 which does not exist on the registry. The global [email protected] install and the openclaw-scoped update are sufficient.
1 parent 9286f7d commit f5bcb5a

3 files changed

Lines changed: 32 additions & 6 deletions

File tree

‎sandboxes/base/Dockerfile‎

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
2020
WORKDIR /sandbox
2121

2222
# Core system dependencies
23-
# python3 + pip: agent scripting and SDK usage
23+
# python3.13 + pip: agent scripting and SDK usage (deadsnakes PPA for Noble)
2424
# iproute2: network namespace management (ip netns, veth pairs)
2525
# dnsutils: dig, nslookup
2626
RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -31,10 +31,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3131
iputils-ping \
3232
net-tools \
3333
netcat-openbsd \
34-
python3 \
35-
python3-pip \
36-
python3-venv \
34+
openssh-sftp-server \
35+
procps \
36+
software-properties-common \
3737
traceroute \
38+
&& add-apt-repository -y ppa:deadsnakes/ppa \
39+
&& apt-get update \
40+
&& apt-get install -y --no-install-recommends \
41+
python3.13 \
42+
python3.13-venv \
43+
&& curl -sS https://bootstrap.pypa.io/get-pip.py | python3.13 \
44+
&& update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.13 1 \
45+
&& update-alternatives --install /usr/bin/python python /usr/bin/python3.13 1 \
3846
&& rm -rf /var/lib/apt/lists/*
3947

4048
# Create supervisor and sandbox users/groups
@@ -54,6 +62,11 @@ RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
5462
nano \
5563
&& rm -rf /var/lib/apt/lists/*
5664

65+
# Fix transitive tar vulnerabilities (GHSA-qffp-2rhf-9h96,
66+
# GHSA-9ppj-qmqm-q256, GHSA-8qq5-rm4j-mr97, GHSA-r6q2-hw4h-h46w,
67+
# GHSA-34x7-hfp2-rc4v, GHSA-83g3-92jg-28cx).
68+
RUN npm install -g [email protected]
69+
5770
# GitHub CLI
5871
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \
5972
-o /usr/share/keyrings/githubcli-archive-keyring.gpg && \

‎sandboxes/nemoclaw/Dockerfile‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ COPY policy-proxy.js /usr/local/lib/policy-proxy.js
2727
COPY proto/ /usr/local/lib/nemoclaw-proto/
2828
RUN npm install -g @grpc/grpc-js @grpc/proto-loader js-yaml
2929

30+
# Fix @hono/node-server authorization bypass (GHSA-wc8c-qw6v-h7f6)
31+
RUN npm install -g @hono/[email protected]
32+
3033
# Allow the sandbox user to read the default policy (the startup script
3134
# copies it to a writable location; this chown covers non-Landlock envs)
3235
RUN chown -R sandbox:sandbox /etc/navigator
@@ -56,4 +59,13 @@ RUN set -e; \
5659
npm uninstall -g esbuild; \
5760
rm -rf /opt/nemoclaw-devx/node_modules
5861

62+
# Fix transitive tar vulnerabilities (GHSA-qffp-2rhf-9h96,
63+
# GHSA-9ppj-qmqm-q256, GHSA-8qq5-rm4j-mr97, GHSA-r6q2-hw4h-h46w,
64+
# GHSA-34x7-hfp2-rc4v, GHSA-83g3-92jg-28cx).
65+
# The base image pins [email protected] globally, but openclaw ships older nested
66+
# copies; force-upgrade them. (npm's own bundled tar is not updatable via
67+
# --prefix without pulling missing internal deps like @npmcli/docs.)
68+
RUN npm install -g [email protected] && \
69+
npm --prefix "$(npm root -g)/openclaw" update tar
70+
5971
ENTRYPOINT ["/bin/bash"]

‎sandboxes/openclaw/Dockerfile‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ FROM ${BASE_IMAGE}
1414

1515
USER root
1616

17-
# Install OpenClaw CLI
18-
RUN npm install -g openclaw
17+
# Install OpenClaw CLI (pinned to fix GHSA-rchv-x836-w7xp, GHSA-6mgf-v5j7-45cr,
18+
# GHSA-5wcw-8jjv-m286)
19+
RUN npm install -g [email protected]
1920

2021
# Copy sandbox policy
2122
COPY policy.yaml /etc/navigator/policy.yaml

0 commit comments

Comments
 (0)