The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-7785

CVE-2026-7785: wireshark-mcp Command Injection Vulnerability

CVE-2026-7785 is an OS command injection vulnerability in wireshark-mcp affecting the quick_capture function in pyshark_mcp.py. This article covers technical details, exploitation risks, and mitigation strategies.

Published: May 7, 2026

CVE-2026-7785 Overview

CVE-2026-7785 is an operating system command injection vulnerability in the A-G-U-P-T-A wireshark-mcp project. The flaw resides in the quick_capture function within pyshark_mcp.py. Attackers can manipulate input passed to this function to inject arbitrary operating system commands. The attack is exploitable remotely and requires no authentication or user interaction. The exploit code has been disclosed publicly, increasing the risk of opportunistic abuse. Because the project follows a rolling release model, no fixed version identifiers exist for affected or patched commits beyond the referenced commit hashes edaf604416fbc94a201b4043092d4a1b09a12275 and 400c3da70074f22f3cce7ccb65304cafc7089c89. The maintainer was notified through a public issue but has not responded.

Critical Impact

Remote, unauthenticated attackers can inject operating system commands via the quick_capture function, leading to arbitrary command execution in the context of the wireshark-mcp service.

Affected Products

  • A-G-U-P-T-A wireshark-mcp (rolling release)
  • Commit edaf604416fbc94a201b4043092d4a1b09a12275
  • Commit 400c3da70074f22f3cce7ccb65304cafc7089c89

Discovery Timeline

  • 2026-05-05 - CVE-2026-7785 published to NVD
  • 2026-05-05 - Last updated in NVD database

Technical Details for CVE-2026-7785

Vulnerability Analysis

The vulnerability is classified as OS command injection [CWE-77]. It affects the quick_capture function defined in pyshark_mcp.py, a component of the wireshark-mcp project that wraps packet capture functionality and exposes it through a Model Context Protocol (MCP) server.

The quick_capture function accepts caller-supplied parameters that are incorporated into a shell command without sufficient sanitization or argument separation. When the constructed command is executed, an attacker-controlled value can break out of the intended argument boundary and append additional shell commands. Because MCP servers are commonly invoked by AI assistants and automation tooling, malicious values can flow from prompts, configuration files, or remote MCP clients into the vulnerable function.

The EPSS score is 1.039% with a percentile of 77.533, indicating elevated relative likelihood of exploitation attempts compared with the broader CVE population. Public availability of the exploit further raises operational risk.

Root Cause

The root cause is improper neutralization of special elements used in an OS command. User-controlled input passed to quick_capture is concatenated into a shell invocation rather than passed as a discrete argument list to a safe execution API such as subprocess.run([...], shell=False).

Attack Vector

The attack vector is network-based. An attacker capable of sending requests to the MCP interface, or influencing inputs that flow into quick_capture, can supply payloads containing shell metacharacters such as ;, &&, |, or backticks. The injected payload executes with the privileges of the process hosting the MCP server.

For technical specifics, see the GitHub PoC Repository, the GitHub Issue Discussion, and the VulDB Vulnerability Details.

Detection Methods for CVE-2026-7785

Indicators of Compromise

  • Unexpected child processes spawned by the Python interpreter running pyshark_mcp.py, particularly shells such as /bin/sh, /bin/bash, or cmd.exe.
  • Outbound network connections from the MCP host to unfamiliar destinations following capture requests.
  • MCP request payloads containing shell metacharacters (;, |, &&, `, $() inside arguments destined for quick_capture.

Detection Strategies

  • Inspect MCP request logs for arguments to quick_capture that contain shell metacharacters or chained commands.
  • Apply process-tree monitoring to flag any shell descendants of the pyshark_mcp.py process.
  • Correlate tshark/dumpcap invocations with subsequent execution of unrelated binaries from the same parent.

Monitoring Recommendations

  • Enable command-line auditing (auditd execve on Linux, Sysmon Event ID 1 on Windows) on hosts running wireshark-mcp.
  • Forward host telemetry to a centralized analytics platform and alert on anomalous child processes of the MCP service.
  • Monitor egress traffic from MCP hosts for connections that do not match the expected packet-capture workflow.

How to Mitigate CVE-2026-7785

Immediate Actions Required

  • Restrict network exposure of any wireshark-mcp instance so that only trusted local clients can reach the MCP endpoint.
  • Run the MCP service under a dedicated low-privileged account and within a container or sandbox.
  • Treat any inputs reaching quick_capture as untrusted, including those originating from AI assistants and shared configuration files.

Patch Information

No vendor patch is available. The project operates on a rolling release basis, and the maintainer has not yet responded to the public issue report. Track the GitHub Issue Discussion for updates.

Workarounds

  • Replace shell-based invocation in quick_capture with a parameterized call such as subprocess.run([...], shell=False) if maintaining a local fork.
  • Validate capture-related arguments against an allowlist of interface names and filter expressions before passing them to capture utilities.
  • Disable or remove the quick_capture tool registration from the MCP server until a fix is published.
bash
# Configuration example - run wireshark-mcp under a constrained user and bind to localhost only
useradd --system --shell /usr/sbin/nologin mcpsvc
sudo -u mcpsvc python3 pyshark_mcp.py --host 127.0.0.1 --port 8765

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechWireshark

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability1.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-77
  • Technical References
  • GitHub PoC Repository

  • GitHub Issue Discussion

  • VulDB Submission

  • VulDB Vulnerability Details

  • VulDB CTI Information
  • Related CVEs
  • CVE-2026-5402: Wireshark TLS Dissector RCE Vulnerability

  • CVE-2021-22191: Wireshark RCE Vulnerability

  • CVE-2026-6525: Wireshark IEEE 802.11 DOS Vulnerability

  • CVE-2026-5405: Wireshark RDP Dissector DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English