Skip to content

Commit c1bae9f

Browse files
[DotNet] - Powershell - v7.4.3 patched - CVE-2024-30045 (#1139)
1 parent a108063 commit c1bae9f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/dotnet/.devcontainer/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ ENV NUGET_XMLDOC_MODE=
88

99
# Temporary: Upgrade packages due to mentioned CVEs
1010
# They are installed by the base image (mcr.microsoft.com/dotnet/sdk) which does not have the patch.
11-
# https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-0057
11+
# https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-30045
1212
RUN if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
1313
apt-get update && \
1414
apt-get install -y wget && \
15-
POWERSHELL_FILE_NAME="powershell_7.4.1-1.deb_amd64.deb" && \
16-
wget https://github.com/PowerShell/PowerShell/releases/download/v7.4.1/${POWERSHELL_FILE_NAME} && \
15+
POWERSHELL_FILE_NAME="powershell_7.4.3-1.deb_amd64.deb" && \
16+
wget https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/${POWERSHELL_FILE_NAME} && \
1717
dpkg -i ${POWERSHELL_FILE_NAME} && \
1818
apt-get install -f && \
1919
rm ${POWERSHELL_FILE_NAME} ; \
@@ -23,7 +23,7 @@ RUN if [ "$(dpkg --print-architecture)" = "arm64" ]; then \
2323
apt-get update && \
2424
apt-get install -y curl tar && \
2525
POWERSHELL_FILE_PATH="/opt/microsoft/powershell/7" && \
26-
curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v7.4.1/powershell-7.4.1-linux-arm64.tar.gz && \
26+
curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/powershell-7.4.3-linux-arm64.tar.gz && \
2727
mkdir -p ${POWERSHELL_FILE_PATH} && \
2828
tar zxf /tmp/powershell.tar.gz -C ${POWERSHELL_FILE_PATH} && \
2929
chmod +x ${POWERSHELL_FILE_PATH}/pwsh && \

src/dotnet/test-project/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ check "gitconfig-contains-name" sh -c "cat /etc/gitconfig | grep 'name = devcont
2727

2828
check "usr-local-etc-config-does-not-exist" test ! -f "/usr/local/etc/gitconfig"
2929

30-
checkPackageVersion "pwsh" "7.4.1" "PowerShell"
30+
checkPackageVersion "pwsh" "7.4.3" "PowerShell"
3131

3232
# Report result
3333
reportResults

0 commit comments

Comments
 (0)