diff --git a/pkgs/by-name/nt/ntopng/package.nix b/pkgs/by-name/nt/ntopng/package.nix index fad390040f40..66925afc51a2 100644 --- a/pkgs/by-name/nt/ntopng/package.nix +++ b/pkgs/by-name/nt/ntopng/package.nix @@ -24,6 +24,7 @@ which, zeromq, cmake, + fetchpatch, }: stdenv.mkDerivation (finalAttrs: { @@ -38,6 +39,15 @@ stdenv.mkDerivation (finalAttrs: { fetchSubmodules = true; }; + patches = [ + # Fix CVE-2026-86091 CVE-2026-86090 + (fetchpatch { + name = "CVE-2026-86090-CVE-2026-86091.patch"; + url = "https://github.com/ntop/ntopng/commit/7d830f31af367745431c5d92e2e82fc432f6bdd8.patch"; + hash = "sha256-8N0q/Ekd5ni1jxZh8Jatipz+z57r1jqu/77o/oI/FuE="; + }) + ]; + preConfigure = '' substituteInPlace Makefile.in \ --replace "/bin/rm" "rm"