From 658406b7eb57c0b226cb5bc2eb6491fd2b68e9a6 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sat, 17 Aug 2024 22:10:21 +0100 Subject: [PATCH] wget: add patch for CVE-2024-38428 --- pkgs/tools/networking/wget/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/networking/wget/default.nix b/pkgs/tools/networking/wget/default.nix index 0bdb6fab692a..0fbdd80332be 100644 --- a/pkgs/tools/networking/wget/default.nix +++ b/pkgs/tools/networking/wget/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, gettext, pkg-config, perlPackages +{ lib, stdenv, fetchurl, fetchpatch, gettext, pkg-config, perlPackages , libidn2, zlib, pcre, libuuid, libiconv, libintl , python3, lzip, darwin , withLibpsl ? false, libpsl @@ -16,6 +16,11 @@ stdenv.mkDerivation rec { patches = [ ./remove-runtime-dep-on-openssl-headers.patch + (fetchpatch { + name = "CVE-2024-38428.patch"; + url = "https://git.savannah.gnu.org/cgit/wget.git/patch/?id=ed0c7c7e0e8f7298352646b2fd6e06a11e242ace"; + hash = "sha256-4ZVPufgG/h0UkxF9hQBAtF6QAG4GEz9hHeqEsD47q4U="; + }) ]; preConfigure = ''