From 865e2ec619c5a5feed5c0b5a5dc7b03038ea5411 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sun, 25 Aug 2024 11:59:27 +0100 Subject: [PATCH] nuclei: add patch for CVE-2024-40641 --- pkgs/tools/security/nuclei/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/tools/security/nuclei/default.nix b/pkgs/tools/security/nuclei/default.nix index 20dd582b4fac2..eba8a7f846c91 100644 --- a/pkgs/tools/security/nuclei/default.nix +++ b/pkgs/tools/security/nuclei/default.nix @@ -2,6 +2,7 @@ lib, buildGoModule, fetchFromGitHub, + fetchpatch, }: buildGoModule rec { @@ -17,6 +18,14 @@ buildGoModule rec { vendorHash = "sha256-DGNjDKjFZ0EJPOJxC7nTCCts8pisomfe4eru2WAHHow="; + patches = [ + (fetchpatch { + name = "CVE-2024-40641.patch"; + url = "https://github.com/projectdiscovery/nuclei/commit/1c51a6bef6a5d9a5b9c4967e4984595ef4bb48cd.patch"; + hash = "sha256-5yB37XIw7jUU80jHUCTtNHEOEw01CPyhB37eBleIe34="; + }) + ]; + subPackages = [ "cmd/nuclei/" ]; ldflags = [