Skip to navigation

Threat reportVulnerabilityTL-2026-0877

Splunk AI Toolkit OS Command Injection in btool Configuration Helper (CVE-2026-20266)

criticalACTIVE

Splunk AI Toolkit versions below 5.7.4 contain a critical OS command injection flaw (CWE-78, CVSS 9.1) in the btool configuration helper, which builds OS command strings from dynamic parameters without disabling shell interpretation. An authenticated user holding the Splunk admin role can inject and execute arbitrary OS commands on the host running Splunk Enterprise.

By

Key facts

IdentifiersTL-2026-0877, CVE-2026-20266, CVE-2026-20265
Also known asSVD-2026-0614, CERTFR-2026-AVI-0774, VULN-65723
SeverityCRITICAL
CVSS9.1 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H)
Exploitation statusLinked CVE exploited in the wild; Listed in CISA KEV: CVE-2026-20265
EPSSCVE-2026-20266: 0.6% (48.7th percentile); CVE-2026-20265: 0.2% (11.1th percentile)
Affected productsSplunk (Cisco) Splunk AI Toolkit
Weaknesses (CWE)CWE-78
MITRE ATT&CK techniquesT1005 Data from Local System, T1021 Remote Services, T1059 Command and Scripting Interpreter, T1068 Exploitation for Privilege Escalation, T1070 Indicator Removal, T1078 Valid Accounts, T1082 System Information Discovery, T1083 File and Directory Discovery, T1190 Exploit Public-Facing Application, T1489 Service Stop, T1505 Server Software Component, T1543 Create or Modify System Process and 3 more in the attack flow
MotivationUNKNOWN
Target sectorstechnology, financial, government, healthcare, telecommunications, managed-security-services
Target regionsGlobal
Detection rules9 (1 shown free)
Sources8 cited sources

Detection coverage

As of 2026-06-19, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-0877 across Splunk SPL, Microsoft KQL and Sigma, covering 16 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: splunkd Service Spawning OS Shell — Post-Exploitation (CVE-2026-20266)

Detects the Splunk service process (splunkd) or its Python interpreter spawning a command shell (cmd.exe, powershell.exe, /bin/sh, /bin/bash, dash). This child-process pattern is the primary host-level indicator of successful btool command injection (CVE-2026-20266): OS commands execute in the splunkd security context. splunkd legitimately almost never spawns an interactive/command shell.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1059, T1059.003, T1059.004, T1059.006
  • Data sources: sysmon, windows_security, edr_process_events
  • Severity: critical
  • Confidence: high

Splunk SPL

index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1 (ParentImage="*\\splunkd.exe" OR ParentImage="*\\python.exe" OR ParentImage="*/splunkd" OR ParentImage="*/python*")
| where like(Image,"%\\cmd.exe") OR like(Image,"%\\powershell.exe") OR like(Image,"%/sh") OR like(Image,"%/bash") OR like(Image,"%/dash")
| stats count min(_time) as firstTime max(_time) as lastTime values(Image) as shell_image values(CommandLine) as child_cmdline by host, ParentImage, user
| convert ctime(firstTime) ctime(lastTime)
| table host user ParentImage shell_image child_cmdline count firstTime lastTime

Microsoft KQL

DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName in~ ("splunkd.exe","splunkd","python.exe","python","python3")
| where FileName in~ ("cmd.exe","powershell.exe","sh","bash","dash")
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, FileName, ProcessCommandLine
| order by Timestamp desc

Sigma

title: Splunk Service Spawning OS Shell (CVE-2026-20266 btool Injection)
id: 1b9d7e22-3a4c-4f88-bc10-7e6f5a4d3c20
status: experimental
description: Detects splunkd or its python interpreter spawning a command shell, consistent with post-exploitation of the CVE-2026-20266 btool OS command injection.
references:
    - https://advisory.splunk.com/advisories/SVD-2026-0614
author: Threadlinqs Team
date: 2026/06/19
tags:
    - attack.execution
    - attack.t1059
    - attack.t1059.003
    - attack.t1059.004
    - cve.2026.20266
logsource:
    category: process_creation
detection:
    parent:
        ParentImage|endswith:
            - '\splunkd.exe'
            - '/splunkd'
            - '/python'
            - '/python3'
    child_win:
        Image|endswith:
            - '\cmd.exe'
            - '\powershell.exe'
    child_nix:
        Image|endswith:
            - '/sh'
            - '/bash'
            - '/dash'
    condition: parent and (child_win or child_nix)
falsepositives:
    - Splunk scripted inputs or modular inputs that legitimately invoke a shell wrapper
level: high

Known false positives:

  • Splunk scripted/modular inputs that legitimately wrap a shell command
  • Add-ons that invoke shell-based collection scripts under splunkd

Tuning notes: Inventory and allowlist legitimate scripted-input shell wrappers by command line. Exclude known modular-input scripts. Prioritize alerts where the child shell command line contains discovery (whoami/id/uname) or network primitives.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account)
  • btool Command Injection via Shell Metacharacters — Exploitation (CVE-2026-20266) · unlock with TL Creds
  • splunkd / Python Spawning Shell with Discovery Commands — Post-Exploitation (CVE-2026-20266) · unlock with TL Creds
  • Anomalous Outbound Connection from Splunk Service — C2 / Exfiltration (CVE-2026-20266) · unlock with TL Creds
  • Python shell=True Subprocess Under SPLUNK_HOME — Root-Cause Exploitation (CVE-2026-20266) · unlock with TL Creds
  • Unexpected File Write / Persistence Under AI Toolkit App Path — Post-Exploitation (CVE-2026-20266) · unlock with TL Creds
  • Admin AI Toolkit Endpoint Access Correlated with Host Shell / Credential Access — C2 (CVE-2026-20266) · unlock with TL Creds
  • Splunk btool Invocation Containing Shell Metacharacters — Exploitation (CVE-2026-20266) · unlock with TL Creds
  • Reverse Shell / Outbound Egress from Splunk Host — C2 (CVE-2026-20266) · unlock with TL Creds

Indicators of compromise

As of 2026-06-19, Threadlinqs Intelligence tracks 16 indicators of compromise for TL-2026-0877.

16 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

Fixed in AI Toolkit 5.7.4.

CVE-2026-20266 is an OS command injection vulnerability in the btool configuration helper of the Splunk AI Toolkit, disclosed by Splunk in advisory SVD-2026-0614 on 2026-06-17 and credited to Splunk's own Gabriel Nitu. The btool helper is used by the toolkit to read and validate Splunk configuration (.conf) state. The vulnerable code path constructs an OS command string by interpolating dynamic, user-influenced input parameters and then executes it with shell interpretation enabled (an unsafe shell-execution pattern, e.g. invoking a subprocess with shell=True or passing an unescaped string to a system shell). Because special shell metacharacters in the dynamic parameters are neither neutralized nor escaped, an attacker can break out of the intended btool command and append arbitrary commands (using `;`, `|`, `&&`, `$(...)`, backticks, etc.), which the shell then executes in the security context of the Splunk service process.

The vulnerability is reachable over the network (AV:N) through the authenticated Splunk web/REST surface and requires high privileges (PR:H): the attacker must already hold the Splunk "admin" role. No user interaction is required (UI:N), attack complexity is low (AC:L), and the scope is changed (S:C) because the injected command executes outside the application sandbox at the operating-system level, on the host running the Splunk Enterprise instance. Successful exploitation yields complete compromise of confidentiality, integrity, and availability (C:H/I:H/A:H): the attacker can read or modify any data accessible to the Splunk service account, disrupt the Splunk service, establish persistence, and pivot laterally to other systems reachable from the Splunk host.

The issue is fixed in Splunk AI Toolkit 5.7.4, which corrects the unsafe shell execution (parameterized/escaped invocation rather than string-built shell commands). Where upgrading is not immediately feasible, Splunk recommends uninstalling the AI Toolkit add-on to eliminate the exposed code path. A related lower-severity issue, CVE-2026-20265 (CVSS 4.3), was patched in the same 5.7.4 release: it concerns an insecure default domain allowlist that allowed admin/power-role users to trigger unauthorized outbound HTTP requests; it is mitigated by defining approved domains under `[ai:AllowedDomains]` in mlspl.conf and enabling `enforce_domain_validation`. At the time of publication there was no evidence of public proof-of-concept exploit code and no observed in-the-wild exploitation, and no network IOCs (C2 infrastructure, malware hashes, domains/IPs) are associated with this vulnerability; detection therefore focuses on host-level behavioral indicators of shell execution spawned by the Splunk service.

MITRE ATT&CK techniques by tactic:

Collection

T1005 Data from Local System

Lateral Movement

T1021 Remote Services

Execution

T1059 Command and Scripting Interpreter

Privilege Escalation

T1068 Exploitation for Privilege Escalation; T1548 Abuse Elevation Control Mechanism

Defense Evasion

T1070 Indicator Removal

Initial Access

T1078 Valid Accounts; T1190 Exploit Public-Facing Application

Discovery

T1082 System Information Discovery; T1083 File and Directory Discovery

Impact

T1489 Service Stop

Persistence

T1505 Server Software Component; T1543 Create or Modify System Process

Credential Access

T1552 Unsecured Credentials

Exfiltration

T1567 Exfiltration Over Web Service

Remediation

Patches

  • Splunk AI Toolkit 5.7.4 (fixes CVE-2026-20266 and CVE-2026-20265) per advisory SVD-2026-0614.

Immediate actions

  • Upgrade Splunk AI Toolkit to version 5.7.4 or higher on all Splunk Enterprise instances where it is installed.
  • If upgrading is not immediately feasible, uninstall the Splunk AI Toolkit add-on to remove the vulnerable btool helper code path.
  • Audit and restrict the Splunk 'admin' role to a minimal set of trusted users; remove unnecessary admin grants.

Workarounds

  • Uninstall the Splunk AI Toolkit if 5.7.4 cannot be deployed.
  • For the related CVE-2026-20265, define approved domains under [ai:AllowedDomains] in mlspl.conf and set enforce_domain_validation.

Longer-term hardening

  • Apply least-privilege across Splunk roles and capabilities; avoid using admin accounts for routine operations.
  • Run Splunk as an unprivileged service account and apply OS-level hardening (no shell for the service account where practical, restricted PATH).
  • Deploy host/EDR monitoring on Splunk servers to alert on shell processes spawned by the Splunk service (splunkd / python) and on outbound connections from the Splunk host.
  • Enable and review Splunk audit logging for configuration and toolkit actions; alert on btool invocations containing shell metacharacters.

Affected and fixed versions

  • Splunk (Cisco) — Splunk AI Toolkit
    Vulnerable versions: < 5.7.4; 5.7.0; 5.7.1; 5.7.2; 5.7.3
    Fixed in: 5.7.4

Timeline

  • Splunk assigns internal bug identifier VULN-65723 to the issue in SVD-2026-0614 and notes that no vendor detection signatures are available for CVE-2026-20266.
  • Security press (Cyber Security News, GBHackers, SecurityWeek, Cyberpress) report the critical AI Toolkit command-injection flaw.
  • NVD record for CVE-2026-20266 last modified at 20:17 UTC on the same day.
  • CVE-2026-20266 published in the NVD at 18:17 UTC with CVSS:3.1 9.1 (CRITICAL) and CWE-78; status 'Undergoing Analysis'.
  • Fix released in Splunk AI Toolkit 5.7.4, which also addresses the related CVE-2026-20265 domain-allowlist issue.
  • Splunk publishes advisory SVD-2026-0614 disclosing the btool configuration helper OS command injection (CVE-2026-20266, CVSS 9.1).
  • Vulnerability identified and reported internally by Gabriel Nitu of Splunk (credited in SVD-2026-0614).
  • Third-party vulnerability trackers (CIRCL Vulnerability-Lookup, ThreatINT) aggregate CVE-2026-20266 for community consumption.
  • French national CERT (ANSSI) tracks the issue via advisory CERTFR-2026-AVI-0774.

Sources cited

Previous and next in vulnerability

AI-drafted from 8 cited sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats