Detect CVE-2026-33646: Mise Arbitrary Code Execution via Tera Template Injection in .tool-versions in IBM QRadar
Detects exploitation of CVE-2026-33646, a critical trust bypass vulnerability in mise (formerly rtx) versions prior to 2026.3.10. Attackers can embed Tera template directives inside .tool-versions files to achieve arbitrary code execution when mise processes the file, bypassing trust checks. CVSS 9.6. PoC public.
MITRE ATT&CK
- Tactic
- Execution Persistence Defense Evasion
QRadar Detection Query
SELECT
DATEFORMAT(starttime, 'YYYY-MM-dd HH:mm:ss') AS event_time,
logsourcename(logsourceid) AS log_source,
username,
sourceip,
"EventID",
LOWER("TargetFilename") AS target_file,
"CommandLine" AS command_line
FROM events
WHERE
LOGSOURCETYPENAME(devicetype) IN ('Microsoft Windows Security Event Log', 'Linux Auth', 'Sysmon')
AND (
(LOWER("TargetFilename") LIKE '%.tool-versions'
AND ("CommandLine" LIKE '%{%%' OR "CommandLine" LIKE '%{{%'))
OR
(LOWER("CommandLine") LIKE '%mise install%'
OR LOWER("CommandLine") LIKE '%mise trust%'
OR LOWER("CommandLine") LIKE '%mise exec%'
OR LOWER("CommandLine") LIKE '%mise run%')
)
AND LOGSOURCE_STARTTIME > DATEADD(MINUTE, -60, NOW())
ORDER BY starttime DESC
LAST 3600 SECONDS QRadar AQL query identifying .tool-versions file activity with Tera template markers and adjacent mise command execution within a one-hour rolling window.
Data Sources
Required Tables
False Positives & Tuning
- Automated deployment tooling writing .tool-versions and invoking mise in CI pipelines
- Developer workstations with complex mise configurations that include bracket-style version specifiers
- Security testing environments validating mise configurations
Other platforms for CVE-2026-33646
Testing Methodology
Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1Inject Tera system() call into .tool-versions and invoke mise install
Expected signal: File write event for .tool-versions, followed by mise process launch, followed by child process executing 'id' or shell writing to /tmp/mise-pwned.txt
- Test 2Malicious .tool-versions via Git Clone Simulation
Expected signal: Directory creation, .tool-versions file write by shell (not interactive mise), then mise process launch with install argument
- Test 3mise trust bypass via template in project-local .tool-versions
Expected signal: osascript child process spawned from mise with suspicious arguments, .tool-versions read by mise process
- Test 4Enumerate environment variables via Tera template injection
Expected signal: File write of .tool-versions, mise process launch, child write to /tmp/mise-env-leak.txt containing environment variable value
Unlock Pro Content
Get the full detection package for CVE-2026-33646 including response playbook, investigation guide, and atomic red team tests.