Skip to content

Commit 8503935

Browse files
Remove wget from Debian-based image (#2839)
`wget` is only used to download `composer` as part of the Debian-based image build process. The version of `wget` embedded in a number of recent CDash releases is vulnerable to [CVE-2024-38428](https://nvd.nist.gov/vuln/detail/CVE-2024-38428), causing security scanners to flag our images unnecessarily. We already use `curl` for CDash itself, so we can simply replace all existing usages of `wget` with `curl` to resolve this issue.
1 parent 7aa5495 commit 8503935

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ RUN apt-get update && \
4242
nodejs \
4343
unzip \
4444
vim \
45-
wget \
4645
zip \
4746
&& \
4847
docker-php-ext-configure pgsql --with-pgsql=/usr/local/pgsql && \
@@ -57,8 +56,8 @@ RUN apt-get update && \
5756
xsl \
5857
opcache \
5958
&& \
60-
wget -q -O checksum https://composer.github.io/installer.sha384sum && \
61-
wget -q -O composer-setup.php https://getcomposer.org/installer && \
59+
curl -fsSL https://composer.github.io/installer.sha384sum > checksum && \
60+
curl -fsSL https://getcomposer.org/installer > composer-setup.php && \
6261
sha384sum -c checksum && \
6362
php composer-setup.php --install-dir=/usr/local/bin --filename=composer && \
6463
php -r "unlink('composer-setup.php');" && \

0 commit comments

Comments
 (0)