@@ -36,7 +36,7 @@ RUN set -ex \
3636 postgresql-devel procps-ng python-configobj readline-devel rsync sgml-common \
3737 patch pkg-config procps python3-configobj llvm rsync sqlite-devel \
3838 subversion-perl tar tcl tk vim wget which xfsprogs xmlto xorg-x11-server-Xvfb xz-devel \
39- amazon-ecr-credential-helper git-lfs
39+ amazon-ecr-credential-helper git-lfs runc
4040
4141RUN useradd codebuild-user
4242
@@ -357,6 +357,10 @@ RUN set -ex \
357357 && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
358358 && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin \
359359 && rm docker.tgz \
360+ # replace runc package to resolve CVE-2024-21626
361+ && rm /usr/local/bin/runc \
362+ && ln -s /usr/sbin/runc /usr/local/bin/runc \
363+ && runc -v \
360364 && docker -v \
361365 # set up subuid/subgid so that "--userns-remap=default" works out-of-the-box
362366 && groupadd dockremap \
@@ -384,8 +388,8 @@ RUN set -ex \
384388FROM runtimes_2 AS runtimes_3
385389
386390# DotNet
387- ENV DOTNET_6_SDK_VERSION="6.0.417 "
388- ENV DOTNET_8_SDK_VERSION="8.0.100 "
391+ ENV DOTNET_6_SDK_VERSION="6.0.419 "
392+ ENV DOTNET_8_SDK_VERSION="8.0.201 "
389393ENV DOTNET_6_GLOBAL_JSON_SDK_VERSION="6.0.0"
390394ENV DOTNET_8_GLOBAL_JSON_SDK_VERSION="8.0.0"
391395ENV DOTNET_ROOT="/root/.dotnet"
0 commit comments